Capture network requests and responses using the Frida framework in Objective-C and Swift.
frida --usb --attach-frontmost --load network-request-capture.js --no-pause
This command will attach the script to the frontmost app and begin capturing network requests and responses.
It should be noted that spawning migth be a smarter choice here as it is more likely that more requests are fired at app launch.
To customize which network request methods are captured, you can set the following flags in the main function:
captureVolley
: Set totrue
to capture network requests using Volley (Android only).captureAFNetworking
: Set totrue
to capture network requests using AFHTTPSessionManager (Objective-C and Swift).captureAlamoFire
: Set totrue
to capture network requests using AlamoFire (Objective-C and Swift).
You can also modify the main function to specify which app to attach to by using the --pid
flag and the PID of the app, or by using the --spawn
flag and the app's package name.
- Capture network requests and responses using NSURL (Objective-C and Swift)
- Capture network requests and responses using NSURLConnection (Objective-C and Swift)
- Capture network requests and responses using AFHTTPSessionManager (Objective-C and Swift)
- Capture network requests and responses using AlamoFire (Objective-C and Swift)
- Capture network requests using Volley (Android only)
- [~] Capture URLResponse (Objective-C and Swift)
- Capture SQLite local transactions
- Perform statistical analysis for recurrent Requests/Sessions