2020-07-15 15:43:14 +00:00
# Burp Suite Configuration for Android
2021-11-30 16:46:07 +00:00
**This tutorial was taken from:** [**https://medium.com/@ehsahil/basic-android-security-testing-lab-part-1-a2b87e667533** ](https://medium.com/@ehsahil/basic-android-security-testing-lab-part-1-a2b87e667533 )****
2020-07-15 15:43:14 +00:00
## Add a proxy in Burp Suite to listen.
Address: **192.168.56.1** & Port: **1337**
Choose _**All Interfaces**_ option.
2021-10-18 11:21:18 +00:00
![](https://miro.medium.com/max/700/1\*0Bn7HvqI775Nr5fXGcqoJA.png)
2020-07-15 15:43:14 +00:00
## **Adding listener in Android device.**
2021-10-18 11:21:18 +00:00
Setting → Wifi →WiredSSID (Long press)
2020-07-15 15:43:14 +00:00
Choose Modify network → Check Advance options.
Select Proxy to the manual
2021-10-18 11:21:18 +00:00
![](https://miro.medium.com/max/700/1\*gkDuYqWMldFuYguQuID7sw.png)
2020-07-15 15:43:14 +00:00
Testing connection over http and https using devices browser.
2021-10-18 11:21:18 +00:00
1. http:// (working) tested — [http://ehsahil.com ](http://ehsahil.com )
2020-07-15 15:43:14 +00:00
2021-11-30 16:46:07 +00:00
![](https://miro.medium.com/max/700/1\*LJ2uhK2JqKYY\_wYkH3jwbw.png)
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
2\. https:// certificate error — https://google.com
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
![](https://miro.medium.com/max/700/1\*M-AoG6Yqo21D9qgQHLCSzQ.png)
2020-07-15 15:43:14 +00:00
## **Installing burp certificate in android device.**
Download burp certificate. — Use your desktop machine to download the certificate.
2021-10-18 11:21:18 +00:00
[https://burp ](http://burp )
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
![](https://miro.medium.com/max/700/1\*f4LjnkNs7oA1f4XokEeiTw.png)
2020-07-15 15:43:14 +00:00
Click on **CA certificate download the certificate.**
The downloaded certificate is in cacert.der extension and Android 5.\* does not recognise it as certificate file.
2021-11-30 16:46:07 +00:00
You can download the cacert file using your desktop machine and rename it from cacert.der to cacert.crt and drop it on Android device and certificate will be automatically added into **file:///sd\_card/downloads.**
2020-07-15 15:43:14 +00:00
**Installing the downloaded certificate.**
Settings →Security →Install certificate from SD cards
Now, goto: sdcard →Downloads → Select cacert.crt
Now, Name it as anything “portswigger”
2021-10-18 11:21:18 +00:00
![](https://miro.medium.com/max/700/1\*lDtlQ1FfcHEytrSZNvs2Mw.png)
2020-07-15 15:43:14 +00:00
You also need to setup the PIN before adding certificate. Verifying the installed certificate using trusted certificates.
Trusted certificates →Users
2021-10-18 11:21:18 +00:00
![](https://miro.medium.com/max/700/1\*dvEffIIS0-dPE6q3ycFx3Q.png)
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
After installing Certificate SSL endpoints also working fine tested using → [https://google.com ](https://google.com )
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
![](https://miro.medium.com/max/700/1\*lt0ZvZH60HI0ud1eE9jAnA.png)
2020-07-15 15:43:14 +00:00
{% hint style="info" %}
2021-10-18 11:21:18 +00:00
After installing the certificate this way Firefox for Android won't use it (based on my tests), so use a different browser.
2020-07-15 15:43:14 +00:00
{% endhint %}