http packet capture real notes (11) Fiddler phone capture environment

1.PC side settings

(1) installation https certificate

Click: tools-options-https, and select the check Capture HTTPS CONNECTs (capture HTTPS connections) and Decrypt HTTPS traffic (HTTPS request decryption), the certificate install; is selected from the pop-up dialog boxes two Yes, then check the 'ignore server certificate errors', ignore certificate errors; fiddler restart to take effect

(2) allow the phone to connect remotely

Fiddler default does not allow other devices to connect, and if you want to capture traffic data on your phone, you need to configure to allow remote connections

Click: tools-options-Connections, check Allow remote cpmputers to connect

(3) to obtain its IP where the fiddler

In the ipconfig cmd command line input;

Can be displayed in the upper right corner of the online fiddler

 

2. The mobile terminal configuration

(1) Access network: to ensure mobile phones and computers equipped with fiddler are in the same local area network, the phone can ping the computer (notebook and the mobile phone with a unified wifi)

(2) certificate installed on the phone: mobile phone input http: // computer ip: 8888 / , click FiddlerRoot certificate to download and install;

(3) set the phone proxy server settings -> wifi-> Click the wireless network has been connected -> find HTTP proxy (Configuration proxy) -> Click on 'manually', Server: PC input terminal ip address, port: port input fiddler, identification without opening, click on the 'memory' can be.

(4) verify that the configuration is successful: open a mobile terminal app, you can see some of the http request, the configuration was successful.

 

3. After setting the phone agent, you can not access the network

Open the Registry (In the Run box enter regedit) to create a QWORD in \ SOFTWARE \ Microsoft \ under Fiddler2 HKEY_CURRENT_USER, value is set to 80 (decimal);

Find OnBeforeRequest method, add the corresponding code:

if (oSession.host.toLowerCase() == "webserver:8888") {
oSession.host = "webserver:80";
}

 

4. Set only accept remote requests

Published 47 original articles · won praise 1 · views 3719

Guess you like

Origin blog.csdn.net/pdd51testing/article/details/104919788