Proxying Browser Traffic
NOTE
This tutorial is a continuation of Setup & Configuration. Ensure you have completed the previous steps before proceeding.
To proxy HTTP/HTTPS traffic generated by the Chrome application (the default mobile browser installed on Android devices):
Launch the device by clicking on the
button of its table row.On the device, navigate to the Settings interface and select
Network & internet.Click on the
Wi-Fisettings.Click on the
button of theAndroidWifiSSID.Click on the
button and expand theAdvanced optionsdrop-down menu.Click on the drop-down menu under Proxy and select
Manual.Set the Proxy hostname to
127.0.0.1, the Proxy port to8080, and clickSave.

- In the Projects interface of the Android Studio window, click on the
More Actionsbutton and selectSDK Manager.

Select
Android SDKfrom the Languages & Frameworks drop-down menu.Add the
platform-toolsdirectory (a subdirectory of the file system location stated in theAndroid SDK Locationfield) to your system's PATH environment variable.

- Open a terminal and execute the
adbtool withdevicesto ensure the device is listed.
adb devices- Execute the
adbtool with the device ID as the value of the-sargument andreverse tcp:8080 tcp:8080to forward traffic to Caido.
adb -s <device-id> reverse tcp:8080 tcp:8080With Caido running, navigate to
http://127.0.0.1:8080/ca.crtin your device's browser.Click on
Downloadto download Caido's CA certificate.Click on
Closein the notification window and navigate to the Settings interface.In the
Search settingsinput field, search for and selectInstall a certificate.Select
CA certificate.In the security notification screen click on
Install anywayand select Caido'sca.crtfile.
TIP
To verify the addition of the certificate:
On the device, navigate to the Settings interface.
In the
Search settingsinput field, search for and selectTrusted credentials.Click on
Trusted credentialsand locateCaidoin the User tab certificate list.
Once the certificate has been installed, navigate to any domain using either the http:// or https:// scheme and view the HTTP History traffic table in Caido to inspect the traffic.
NOTE
If traffic is not appearing in the HTTP History table in Caido, try:
Disabling
Mobile datausage.Disabling any VPN connections.
Setting the Wi-Fi Proxy hostname to
10.0.2.2.
