Network Calls profiling for Mobile
Steps to intercept network calls:
- Download and install free version of burp (Location here: https://portswigger.net/burp/download.html)
- Launch the JAR and navigate to Start up.
- From menu tab select Proxy → Options
- In proxy Listeners section, click on Add
- Enter Bind to port value as 8080
- Choose Specific address and select your machine IP address. Press OK
- Click on HTTP history tab. Click on text: “Filter : Hiding CSS, image and general binary content”
- In Filter by MIME type, Select CSS, Images.
- Click on Filter tab again to close the window.
Steps to modify emulator settings:
- Start the android emulator
- After starting an android emulator, go to Settings->WiFi then click and hold the active wifi connection and select modify network.
- Click on “Show advanced options” and in proxy (by default it is set to none) click on the drop down menu and select manual and now you should see more options like Proxy hostname and proxy port.
In the host name put the IP address of the Host machine which is the IP address you entered in burp and port number was 8080 (port to which burp proxy is binded) and click on Save and now you will be able to intercept all the “HTTP” (unencrypted) traffic that is sent by the android applications.
Install Certificate on the device
1. change the proxy setting in the browser and set the host to localhost and port to 8080 and click on CA Certificate and it will download a CA certificate.
2. Rename the CA certificate to cacert.crt and push it to the emulator SDCARD using the following commands:
3. Now in the emulator / device go to Settings->Security in the Credential storage select “Install form SD Card” and then you can select the “cacert.crt” file present in the sd card and give the name cacert and click on OK.
It will ask you to set a lock screen click on ok and select a type of lock screen and confirm (don’t forget the lock screen pattern)
For iOS devices:
Setting the iOS Device Proxy
- Tap Settings > General > Network > Wi-Fi.
- Tap the Settings for the Wi-Fi network.
- Tap the Manual option in the HTTP Proxy section.
- In the Server box, type the IP address or hostname of your Fiddler instance.
- In the Port box, type the port Fiddler is listening on (usually 8080).