Introduction Fiddler crawl Android Packet hope for everyone's work and learning is helpful!
-
PC on WiFi hotspot
First download a WiFi software on the computer, I use the cheetah WiFi, the computer turned on the WiFi hotspot, as shown:
- Set the proxy port for fiddler
Tools–> options-> Connections, set the proxy port: 8888, tick allow remote computers to connect, which allows the computer to connect fiddler as shown in:
Note: 8888 is the default port number, can be modified, but pay attention to two points, one is the local idle port, and the second is the mobile phone proxy settings to be consistent with the fiddler port.
- Set up network data to decrypt HTTPS
Tools–> options-> HTTPS, tick "Decrypt HTTPS traffic", "Ignore server certificate errors as shown:
- View the wireless network card IP for this computer
After setting up the above steps, you can see the IP of your native wireless card in fiddler (if not, restart Fiddler, or you can find your network card IP in cmd ipconfig, note: Be sure to turn on the local WiFi hotspot, as shown:
- You can also view the IP of the local NIC in cmd, enter the command: ipconfig, as shown in:
- The phone connects to the local WiFi and sets the agent
Each brand of mobile phone set WiFi may not be the same way, here in the case of Huawei Mobile phone, connect the phone to the PC WiFi, as shown in:
- Tick "Show advanced options", Agent Select "Manual", enter server hostname and server port->ip Select "DHCP"-Connect, complete the phone-side settings agent operation, as shown in:
Note: Server hostname: Fiddler is located on the computer IP (that is, after turning on WiFi, in the fiddler or CMD to see the Wireless network card IP address)
Server port: The port used by fiddler (that is, the number set in Options-> connections)
- Mobile Download Install fiddler certificate
After connecting the WiFi, the phone opens the browser input proxy ip+ port number (that is, the local wireless network card IP, is also the server host name set when the phone is connected to WiFi, here the ip+ port number is 192.168.191.1:8888), into fiddler Echo Service page, download the fiddler certificate, click Fiddlerroot Certificate, as shown in:
- After the download is complete, install the certificate as shown in the following:
- Running the phone app
After you set up the above steps, it means that you have set up, and when you access the app with your phone, you can see the packet that fiddler crawled to, as shown in: