burp suite
The class-leading vulnerability scanning, penetration testing, and web app security platform.
Configuring burp suite to work as Android proxy
Configure a dedicated proxy listener in Burp
In Burp, open the Settings dialog.
Go to Tools > Proxy.
Under Proxy Listeners, click Add.
On the Binding tab, set Bind to port to any available port.
Set Bind to address to All interfaces.
Click OK and confirm your entries when prompted.
Optional: Transparent Proxy (for DNS spoofing)
Proxy listener Bind to port 80.
Request Handling > Check Support invisible proxying.
Same process for port 443.
Configure Android to proxy traffic through Burp
On your Android device, go to the network and internet settings.
Open the network details for the Wi-Fi network that you want to use for testing.
Enter edit mode.
In the advanced settings, choose the option to configure a proxy manually.
Set the Proxy hostname to the IP address of the machine you're using to run Burp.
Set the Proxy port to the port you assigned to the new proxy listener you configured in Burp. For more information, see Configure a dedicated proxy listener in Burp
Save your changes and then connect to the Wi-Fi network. Your device's web traffic is now proxied through Burp.
Add Burp's CA certificate to your device's trust store (user way)
In Burp, open the Settings dialog.
Go to Tools > Proxy.
Under Proxy Listeners, click Import / export CA certificate.
In CA Certificate dialog, select Export > Certificate in DER format and click Next.
Enter a filename and location for the certificate. Note that you need to explicitly include the .der file extension.
Click Next. The dialog indicates that the certificate was successfully exported.
Add the certificate to your device's trust store. The process for doing this varies depending on the device or emulator you're using, as well your Android OS version. You can find detailed, third-party instructions on how to do this online.
Install Burp's CA certificate as system
Install the proxy certificate as a regular user certificate.
Ensure you are root (
adb root
), and execute the following commands inadb shell
Install System Certs on Android 14
This method also requires root access. First install your proxy certificate as a regular user cert. Then run the following script created by Tim Perry from HTTP Toolkit (credits https://app.hextree.io/):
IPtables to route traffic through Burp
Example commands:
References
Last updated