ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.51k stars 181 forks source link

Support for importing Charles JSON format files #931

Open danimal opened 3 years ago

danimal commented 3 years ago

Proxyman version? (Ex. Proxyman 1.4.3)

2.29.0 (22900)

macOS Version? (Ex. mac 10.14)

11.4

Steps to reproduce

  1. Open Charles Proxy on iOS
  2. Capture traffic
  3. Export session as a .chlsj JSON-formatted Charles file
  4. Open ProxyMan
  5. Select File > Open… and select the chlsj file from the file browser
  6. The chlsj file is unable to be selected.

Expected behavior

Proxyman currently supports reading in chls files which are binary-formatted Charles files. It can also convert them to HAR files for sharing with other users. The chlsj JSON-formatted files should be able to be read into Proxyman in addition to the binary formatted files.

In the course of work someone will share a chlsj file that was captured on an iOS device. To use Proxyman with this file I have to open the file in Charles and export it in chls format. Unfortunately this causes a crash in Proxyman (see the chls exported from a chlsj and the crash attatched in the zip file).

Screenshots (optional)

Files

Proxyman_issue_2021-07-09.zip

NghiaTranUIT commented 3 years ago

Thanks for opening the ticket and the attached file. It definately helps me to reproduce the bug @danimal 🙌

I'm working on it now 👍

NghiaTranUIT commented 3 years ago

Hey @danimal please check out this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.29.0_Import_chlsj_files.dmg

What's new

Notes

This version will require you to update a new Helper Tool (v1.3) https://github.com/ProxymanApp/Proxyman/issues/923

Screen Shot 2021-07-10 at 15 27 55

Please let me know if it works for you @danimal 😄

danimal commented 3 years ago

@NghiaTranUIT Thanks for the really quick reply! Both the chlsj and the exported chls from a chlsj work great! I was even able to open a 4.5GB chlsj file we gathered from on-device testing. Thank you again for the quick work.

I also really appreciate the Helper Tool upgrade message on app launch. Great work.

NghiaTranUIT commented 3 years ago

Glad to know that it works for you 💯 🎉

bkniffler commented 2 years ago

This alone is a reason for me to get the license and support further development. Prefer charles on iOS (to be fair, its been a while since I tried proxyman iOS, will give it another shot), but proxyman mac app is just SO much better than charles as a viewer and recorder, keep it up guys!

NghiaTranUIT commented 2 years ago

Thank you so much for supporting Proxyman team @bkniffler ❤️

You might check out this iOS Tutorial to know how to set up properly: https://proxyman.io/posts/2021-10-17-Getting-Started-With-Proxyman-For-iOS 👍

bkniffler commented 2 years ago

Oh yes, now I remember, I wasn't able to enable ssl for ALL domains. When I need https sniffing, I usually want all domains intercepted, enabling on domain level after the request was already made is a bit annoying (especially since I don't know all the domains that I'll need beforehand). I think there was some wildcard option, but it didn't work for me.