Teach you how to use Fiddler to grab mobile phone data packets (iOS Android)

This article mainly teaches you how to use Fiddler to grab data packets on the mobile phone, including the configuration and grabbing on iOS and Android.

One, Fiddler download and install

Visit Fiddler official website: https://www.telerik.com/download/fiddler

Here will ask to fill in some things, just fill in some

Download page

After the download is complete, just install it

2. Computer configuration

1. https configuration

Tools-->Options-->HTTPS Enter the configuration page

Refer to the figure below for configuration

https configuration

2. Certificate configuration

Click on the above page Actionsbutton, select the second option, the security certificate is exported to the desktop

Export security certificate

After exporting, such a thing will appear on the page

Security certificate

Double-click it to install the certificate

Certificate installation

Directly the next step -> the next step to install

Next step

After the installation is successful, there will be a prompt:

Successful installation

3. Connection configuration

Tools-->Options-->Connections Enter the configuration page

Refer to the screenshot below for configuration

Connection configuration

After the configuration is complete, restart Fiddler

Three, mobile phone configuration

1. Check the computer network IP address

Open the CMD window and enter ipconfig

[liuhao.haha] ➤ ipconfig

Windows IP 配置

以太网适配器 VMware Network Adapter VMnet1:

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::601b:2a02:aea2:7a4b3
   IPv4 地址 . . . . . . . . . . . . : 192.168.22.1
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . :

以太网适配器 VMware Network Adapter VMnet8:

   连接特定的 DNS 后缀 . . . . . . . :
   本地链接 IPv6 地址. . . . . . . . : fe80::b07b:19b2:6d5f:25d3)
   IPv4 地址 . . . . . . . . . . . . : 192.168.233.1
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . :

无线局域网适配器 WLAN 2:

   连接特定的 DNS 后缀 . . . . . . . : lan
   本地链接 IPv6 地址. . . . . . . . : fe80::e1b8:429f:6251:3b445
   IPv4 地址 . . . . . . . . . . . . : 192.168.2.238
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . : 192.168.2.1

If like me, there are many results

What if I don't know which is the local computer network?

Open the control panel and search for the adapter :

control panel

Open view network link

Internet connection

Here you can see that the name of the connected wireless network corresponds to: WLAN 2

Then, the local IP address corresponds to: 192.168.2.238

2. Phone settings (Android)

2.1 Network proxy settings

Open the WLAN in the phone settings, and long press the connected wireless network

Select edit network

Then check the advanced options

Select the proxy as manual , fill in the proxy server as your computer IP, and fill in the port 8888 just set

carry out

2.2 Certificate download and installation

Android configuration

Open the mobile browser and visit 192.168.2.238:8888

Under normal circumstances, you can enter the following page

Click the link at the bottom to download the certificate

Certificate download page

After the certificate is downloaded, the installation page will pop up

When installing, the name can be filled in

Install the certificate

It should be noted that the purpose here is a drop-down box

I don’t know the difference, we can download it twice on the same page

Install one for each of the two purposes, with different names

At this point, the mobile terminal is set up

The operation process of different mobile phones may be different

But similar

3. Phone settings (iOS)

3.1 Network proxy settings

iOS device enters phone settings: wireless LAN

Click the symbol on the far right of the connected wireless network to enter the network settings

Wireless local area network

Similarly, choose to manually configure the proxy

And enter the IP and port

Manual proxy configuration

3.2 Certificate download

After the setting is complete, open the browser in the same way and visit 192.168.2.238:8888

Under normal circumstances, you can enter the following page

Click the link at the bottom to download the certificate

Download certificate

Unlike Android, iOS is only download here, and installation needs to be carried out in the phone settings

Download completed

3.3 Certificate installation

Settings -> General -> Description file and device management

Then you will see the downloaded certificate

Certificate installation

Click to proceed and follow the prompts to install

3.4 The certificate is fully trusted (important)

Settings -> General -> About this machine -> Certificate trust settings

Set Fidder's certificate to full trust

complete trust

If this step is missing, some apps will not be able to connect to the Internet

Four, capture

After so many configurations, we can finally start capturing packets

At this time, visit Baidu homepage through mobile browser

We can see many request packets on Fiddler

data pack

to sum up

At this point, the work is over.

It can be seen that the settings on iOS are more complicated than those on Android, which also reflects that iOS is more secure.

This article mainly teaches you how to use Fiddler to capture data packets on the mobile phone.

As for how to parse the data packet, or how to use Fiddler, it is not the content of this article.

reference

1、https://blog.csdn.net/qq_36350532/article/details/79848686
2、https://testerhome.com/topics/15200

Your attention is my greatest encouragement!

Guess you like

Origin blog.csdn.net/bruce_6/article/details/100772783