How to set up Burp Suite to capture traffic from your smartphone emulator.

Hello everyone, today I am going to show you how to set up Burp Suite to capture traffic from a Smartphone emulator, by demonstrating how to properly set up the certificate, for your browser to interpret the Burp Proxy as trustful.

If you haven’t download the emulator yet I highly recommend Android Studio because it comes not only with an Android emulator but also with an interface to analyze apk files and modify them, you can download it from here . After going through the installation process, start a new project and click on the following icon:

Image

Now a new window will open showing to you different models of phones choose the one that fits your needs because some models may react differently to the same app:

Image

Click next and now they will ask the version of your system I would suggest the latest one because it is the most stable! Okay after downloading everything necessary click again on that Icon from before and your new phone will be waiting for you 🙂

Now turn on your phone by clicking on the green play icon, after it turns on, go and log in to your Google Drive account:

Image

From now on I suppose that you have Burp Suite already installed and that it is listening for host 127.0.0.1 on port 8080:

Image

After turning on burp go to your browser of preference ( I will be using Firefox ) and set its proxy to be 127.0.0.1:8080

Image

Now search for http://burp and download the certificate, the reason for us to be doing that on the browser instead of the android browser is that the http://burp doesn’t work on mobile.

Image

After downloading it go and upload it to your Google Drive then proceed to download the file back on your phone:

Image

After that go to settings and search for the word ‘certification’ on the search bar:

Image

Clink on CA Certificate and add cacert.der as a trustful certificate (it will say that your data won’t be private anymore, ignore this message and click on install anyway, select the file and that is it.

Image

Now you have to go back to the main page of Android Studio and click on Tool >> SDK Manager

Image

ALright now for the last step go to HTTP Proxy and set Host name as 127.0.0.1 and Port number as 8080 just like what we did for the browser:

Image

Cool now let’s see if it is working !!!

Image

Nice everything is working now, just before we end the post, if it has not worked for you make sure that the settings of the emulator is using the Android Studio HTTP proxy settings:

Image

Thta is it for today guys, hope I have helped you somehow, as always, have a wonderful day !!!

Istvan out 📱

Leave a Reply :)