fiddler phone capture configuration

Use fiddler to perform packet capture on the phone in the following steps:

  1. fiddler mounted on the computer;

  2. fiddler computer to install a certificate configuration;

  3. The end of the phone with the laptop connected to the same local area network, manually configured proxy;

  4. The mobile terminal mounting fiddler certificate;

principle:

  In the machine opens up an http proxy server, then it will forward all http requests and responses. Fiddler is a proxy server in the form of web work, it uses the proxy address: 127.0.0.1, port: 8888. Network requests go fiddler, fiddler from intercepting data, due to the fiddler act as an intermediary role, it can be decrypted https. Therefore, it is more than the average firebug or chrome packet capture tool comes to be easy to use and more. Not only that, it can also support advanced features replay request, the phone can also support applications http packet capture. This article is the mobile phone packet capture.

The following steps explain each:

1. fiddler mounted on the computer.

  This step can Baidu, slightly.

2. fiddler on the computer to install the certificate, configure it.

  1) HTTPS Configuration: Open fiddler, open Tools → Options → HTTPS

   

 

   2) Connections Configuration: Open Tools → Options → CONNECTIONS, port number 8888 is provided to allow remote connection:

     

 

 3. The end of the phone with the laptop connected to the same local area network, manual proxy configuration.

  1) The mobile phone and laptop wireless network connection to the next with a wifi.

  2) check the computer's ip address, and set the phone proxy ip address into the computer. After computer start typing cmd in the Search box, press Enter, type ipconfig at the command line:

         

 

   The red line in FIG ip address is a computer, arranged to open the WiFi → → → connected wireless network configure the proxy server address set to the computer ip address, port number is set to be disposed on the fiddler 8888:

     

 

 4. The end of the phone installation fiddler certificate.

  End mobile phone with a browser to access http: // IP: port, port access to install a certificate with a computer port and fiddler settings. Under normal circumstances it is accessible, if the browser on your phone can not access, the need for fiddler on the computer the following modifications:

  1)在开始的查找菜单中输入regedit打开注册表,在HKEY_CURRENT_USER\SOFTWARE\Microsoft\Fiddler2下创建一个DWORD,值设置为80(十进制):

       

 

   2)编写FiddlerScript rule,点击Rules > Customize Rules,用ctr+f查找到OnBeforeRequest方法添加以下代码:

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

      

 

  进行完以上设置后,保存更改,重启fiddler。

  重新在手机浏览器上刷新url,可以发现能访问到fiddler的证书了:

  

 

  点击下载fiddler证书,安装完成后在手机上进行数据访问,可以看到fiddler中有抓取到对应的数据了。

 

Guess you like

Origin www.cnblogs.com/May-study/p/11529007.html