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:
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:
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:
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:
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
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.
After downloading it go and upload it to your Google Drive then proceed to download the file back on your phone:
After that go to settings and search for the word ‘certification’ on the search bar:
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.
Now you have to go back to the main page of Android Studio and click on Tool >> SDK Manager
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:
Cool now let’s see if it is working !!!
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:
Thta is it for today guys, hope I have helped you somehow, as always, have a wonderful day !!!
Istvan out 📱