没有不值得去解决的问题,也没有不值得去学习的技术!

How to Capture Android App Traffic After Installing Fiddler on Windows 10

It was finally determined that there is an issue with the interface response data.

1. Open the URL: https://www.telerik.com/download/fiddler and download FiddlerSetup.exe. See Figure 1.

Open the URL: https://www.telerik.com/download/fiddler and download FiddlerSetup.exe
Figure 1

2. The current issue is that in the Android APP, when calling the interface to fetch list data, individual data items in the list intermittently appear and disappear. It is currently uncertain whether this is an issue with the interface response data or an Android APP caching issue. Therefore, I decided to use packet capture to determine whether the interface response data is changing. See Figure 2.

The current issue is that in the Android APP, when calling the interface to fetch list data, individual data items in the list intermittently appear and disappear. It is currently uncertain whether this is an issue with the interface response data or an Android APP caching issue. Therefore, I decided to use packet capture to determine whether the interface response data is changing.
Figure 2

3. Reference URL: https://www.jianshu.com/p/6858a25674b4 . Configure Fiddler to capture HTTPS requests from mobile phones. Set Fiddler to allow remote connections. Tools – Options – HTTPS. Check: Decrypt HTTPS traffic, Ignore server certificate errors (unsafe). See Figure 3.

Reference URL: https://www.jianshu.com/p/6858a25674b4 . Configure Fiddler to capture HTTPS requests from mobile phones. Set Fiddler to allow remote connections. Tools - Options - HTTPS. Check: Decrypt HTTPS traffic, Ignore server certificate errors (unsafe).
Figure 3

4. Configure Fiddler to capture HTTPS requests from mobile phones. Configure the connection to allow remote computers to connect. Tools – Options – Connections. Check: Allow remote computers to connect. Restart Fiddler to apply the settings. See Figure 4.

Configure Fiddler to capture HTTPS requests from mobile phones. Configure the connection to allow remote computers to connect. Tools - Options - Connections. Check: Allow remote computers to connect. Restart Fiddler to apply the settings.
Figure 4

5. Set up the phone proxy. The phone and the computer must be on the same local area network, so run cmd as an administrator on the computer and execute the command ipcofig to check the IPv4 address. See Figure 5.

Set up the phone proxy. The phone and the computer must be on the same local area network, so run cmd as an administrator on the computer and execute the command ipcofig to check the IPv4 address.
Figure 5
Plaintext
C:\WINDOWS\system32>ipconfig

Windows IP Configuration


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix . . . . . . . :
   Link-local IPv6 Address . . . . . . . . : fe80::2d68:f64b:1495:466f%17
   IPv4 Address . . . . . . . . . . . . : 172.29.4.35
   Subnet Mask  . . . . . . . . . . . . : 255.255.255.0
   Default Gateway. . . . . . . . . . . . . : 172.29.4.1

Wireless LAN adapter WLAN:

   Media State  . . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix . . . . . . . :

Wireless LAN adapter Local Connection* 3:

   Media State  . . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix . . . . . . . :

Wireless LAN adapter Local Connection* 2:

   Media State  . . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix . . . . . . . :

Ethernet adapter Bluetooth Network Connection:

   Media State  . . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix . . . . . . . :


6. Open the Wi-Fi currently connected on the phone and modify the network settings. Change Proxy: None to Proxy: Manual. The Hostname is the IPv4 address just checked in the computer terminal, and the Port is 8888. Click Save. See Figure 6.

Open the Wi-Fi currently connected on the phone and modify the network settings. Change Proxy: None to Proxy: Manual. The Hostname is the IPv4 address just checked in the computer terminal, and the Port is 8888. Click Save.
Figure 6

7. Download and install the Fiddler certificate. Use the phone browser to visit http://[Computer IPv4 Address]:[Fiddler Port Number], such as http://172.29.4.35:8888. Download the certificate. See Figure 7.

Download and install the Fiddler certificate. Use the phone browser to visit http://[Computer IPv4 Address]:[Fiddler Port Number], such as http://172.29.4.35:8888. Download the certificate.
Figure 7
Plaintext

Fiddler Echo Service

GET / HTTP/1.1
Host: 172.29.4.35:8888
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,und;q=0.7

This page returned a HTTP/200 response
Originating Process Information: chrome:21976
To configure Fiddler as a reverse proxy instead of seeing this page, see Reverse Proxy Setup
You can download the FiddlerRoot certificate

8. Right-click the file: FiddlerRoot.cer, and install the certificate. See Figure 8.

Right-click the file: FiddlerRoot.cer, and install the certificate.
Figure 8

9. It was finally determined that there is an issue with the interface response data. See Figure 9.

It was finally determined that there is an issue with the interface response data.
Figure 9

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系