Android phone using fiddler method to introduce _android

Source: Internet
Author: User

Fiddler is a free grab and debug tool, smaller and simpler than Wireshark, and this section describes how to crawl the Android phone's HTTP and HTTPS packets via WiFi.

First, connect the Android phone

1.1, mobile phone-side configuration

After the computer is configured with WiFi, the phone needs to set up the current WiFi agent, which can be obtained by the computer's "ipconfig" command, as shown in the following illustration:

The above 192.168.191.1 is the local IP address, and then in the mobile phone-side WiFi Advanced Settings to set the proxy address 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 illustration:

At this point, the capture of the handset-side HTTP package has been completed (the packet fetching HTTPS is described later ).

1.2, PC-side configuration

It also requires some simple configuration after the computer has started fiddler.

After opening the options interface, we see that there are many tab tabs in it, we mainly set the "Connections" tab.

In "Connections" tab, we need to set a port number, this port is the mobile phone to set up the WiFi agent when the custom port , just now we set 6666, and then tick "Allow remote computers to Connect "option, this prompt must restart Fiddler to be effective .


At this point, the operation of the mobile phone, you can see on the fiddler in the Grab bag, as shown in the following figure:

1.3, HTTPS grasp the package configuration

The above configuration can catch HTTP packet, if need to crawl HTTPS packet, need additional configuration, still be divided into PC end and handset end.

1.3.1, PC-side configuration HTTPS

The PC side needs to configure HTTPS configuration and will need to export the PC's Fiddler root certificate (later installed to the handset side).
Open the Fiddler Options menu and go to the "HTTPS" tab page and configure the following option:
1, check the "Decrypt HTTPS traffic" option
2, select the dropdown list of "fromremote clientsonly" option
3, check the "Ignore server certificate errors" option
4, through the "Actions" button Select "Export Root certificate to Desktop" Export the certificate to the computer desktop, the default file name is "fiddlerroot.cer"
The selected interface is shown in the following illustration:

1.3.2, mobile phone-side Installation Certificate

The handset side needs to install the certificate which just fiddler exports, first puts the certificate in the handset's built-in or the external memory card, then installs the certificate through the handset " installs from the storage device " menu. As shown in the figure:

Second, fiddler common functions

2.1, look at the contents of the grab Package

By doing so, you can see the HTTP and HTTPS packages of your phone in fiddler, as shown in the following illustration:

Click on a package, you can in the right side of the "Inspectors" tab to view the contents of the package, the tab is divided into two parts, the above section for the request details sent, the lower part of the server to give the response details , and fiddler will automatically request/ The response resolves to the format of the response (Text\image\json\xml, etc.), as shown in the figure:

2.2, check the status of the grab bag

Click on a package to see some of the status of the package on the "Statistics" tab on the right, including sending time, server response time, DNS resolution time, and so on, as shown in the figure:

You can also select multiple packages at the same time to view the status of the entire selection collection , as shown in the figure:

2.3. Set Filter

Fiddler can set up a rich filter to filter the packets to be crawled, which can be configured in the tab of "Filters", as shown in the figure:

2.4, Analog send, repeat send

Fiddler can simulate sending a request through "Composer" function, the user can enter manually by himself, or drag the captured package directly into the tab to copy it, then click the "Execute" button to send the request, as shown in the figure:

It is worth mentioning that if you want to send a package n times continuously, you can also set the number of repetitions by right-clicking on the package and then pressing SHIFT to click the "reissue Requests" button, as shown in the figure:

About Fiddler we first introduce here, the next section to introduce the simple use of LoadRunner introduction.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.