I highly recommend you use something like "CharlesProxy" (or similar). Remember two things when setting up the proxy server (I hope this is the application you are developing, otherwise make sure you do this, it could be ILEGAL):
1 - If you want to attack from your Android / iOS phone to a proxy server installed on your local computer, you need a proxy server that will be configured to use local IP: PORT (which means that CharlesProxy must be configured as an address like 192.168 .xx if using a normal Wi-Fi network). Then, the Android / iOS phone should set the proxy to the same IP: PORT 2 - If the application uses https, there are several ways to manage HTTPS connections:
a) If your application accepts ALL certificates, this is not a problem for any proxy server to capture and decrypt information. b) If your application accepts only system (and trusted) certificates, you need to export the charlesproxy certificate to your Android phone and add it to the list of trusted user certificates.
c) If your application correctly performs βAttach a certificateβ, you will not be able to capture traffic if you do not have a private certificate for your server and you add it both to your phone and to the proxy server configuration.
Hope this helps!
zapotec
source share