fiddler is a free grab, debug tool, smaller than wireshark, and more concise, this section describes how to crawl the Android phone http and HTTPS packets via WiFi.
First, connect the Android phone
1.1, mobile phone-side configuration
After the computer configured WiFi, the mobile phone needs to set the current WiFi agent, and this proxy address can be through the computer's "ipconfigThe command gets as shown in:
The above 192.168.191.1 is the IP address of the machine, and then in the mobile phone side of the WiFi advanced Settings to the proxy address set to the query to the IP, the port number of its own definition, a moment to use, IP proxy mode modified to DHCP as shown in the following:
At this point, the settings for crawling the phone-side HTTP package are complete (the packet crawling HTTPS is described later)。
1.2, PC-side configuration
It also requires some simple configuration after the computer starts fiddler.
After opening the options interface, we see a lot of tab tabs inside, and wemain Settings "Connections" tab。
In the "Connections" tab, we need to set a port number, which is the mobile phone to set the WiFi agent custom Port , we set 6666, and then tick "Allow remote computers to Connect option, at which point you must restart Fiddler to take effect .
At this point, when you operate the phone, you can see it on the fiddler in the grab, as shown in:
1.3, HTTPS capture packet configuration
The above configuration can catch HTTP packets, if you need to crawl HTTPS packets, you need additional configuration, still divided into the PC and mobile phone side.
1.3.1, PC-side configuration HTTPS
The PC side needs to configure HTTPS configuration, and the PC's Fiddler root certificate needs to be exported (subsequent installation to the mobile phone side).
Open the Options menu of Fiddler, go to the "HTTPS" tab page and configure the following:
1, tick "Decrypt HTTPS Traffic"option
2. Select the drop-down list "From remote clients only"option
3, tick "Ignore Server Certificate Errors"option
4. Through the "Actions" button Select "Export Root Certificate to Desktop"Export the certificate to the desktop of your computer, the default file name is"Fiddlerroot.cer"
After selecting the interface as shown:
1.3.2, mobile Terminal installation certificate
The phone side needs to install the certificate that was just fiddler exported, first put the certificate on the phone's internal or external memory card, and then install the certificate from the phone's " Install from storage device " menu. :
Second, fiddler commonly used functions
2.1. View the contents of the grab Bag
After the above operation, you can see the phone's HTTP and HTTPS packets in Fiddler, as shown in:
Click on a package, you can see the details of the package in the "Inspectors" tab on the right, the tab is divided into the upper and lower parts, the above is the request details sent, the lower part is the response details given by the server , and fiddler will automatically request/ The response resolves to the format of the response (Text\image\json\xml, etc.):
2.2, check the status of the packet capture
Click on a package that can be on the right side of the "Statisticstab to see some of the status of the package, including send time, server response time, DNS resolution time, and so on:
You can also select multiple packages at the same time to view the status of the entire selection collection :
2.3. Set Filter
Fiddler can set a rich filter to filter the package to be crawled, can be in the "Filterstab in the toolbar to configure:
2.4. Analog send, repeat send
Fiddler can be Passed "Composer"The function simulates sending the request, the user can manually enter it, or drag the captured package directly into the tab to copy it, and then click"Executebutton to send the request:
It is worth mentioning that if you want to send a package n times in a row, you can also click on the right button on the package, and thenhold down SHIFT and click "Reissue requests"button to set the number of times to send repeatedly:
About Fiddler We introduce here, the next section to introduce the simple use of loadrunner.
Android Phone using Fiddler method Introduction (original)