HttPeek
iOS/macOS HTTP(S)/SSL Network Traffic Peeker
Worked for NSURLConnection/NSURLSession/SSLRead/SSLWrite network traffic.
Download
https://github.com/Yonsm/HttPeek/raw/master/Release/HttPeek.dylib
FAQ
How to track AppStore's traffic on iOS?
- Install OpenSSH from Cydia;
- Install adv-cmds from Cydia;
- ps ax|grep itunesstored
- killall -s KILL xxxx(itunesstored's pid)
Now itunesstored will restart automatically with injection of HttPeek.dylib.
How to peek HTTP(S) on macOS
-
Download https://github.com/Yonsm/HttPeek/raw/master/Release/HttPeex.dylib to a folder (e.g. /Applications/HttPeex.dylib);
-
Launch your process with HttPeex.dylib inserted:
DYLD_PRINT_LIBRARIES=1 X=1 DYLD_INSERT_LIBRARIES=/Applications/HttPeex.dylib /Applications/QQ.app/Contents/MacOS/QQ
But it could not work for "library validated process" (e.g. System Apps).
How to debug HttPeex on macOS
-
Edit scheme on Xcode;
-
Run -> Info -> Executable: Ask on Launch;
-
Run -> Info -> Arguments -> Environment Variables:
DYLD_PRINT_LIBRARIES=1
X=1
DYLD_INSERT_LIBRARIES=$CODESIGNING_FOLDER_PATH
-
Just Run & Debug, select any application you want to peek.