Ethereal turn fiddler + simulator using a simple

https://www.cnblogs.com/hanyudanei/articles/10978809.html

 

Recently we have to debug debug end of the phone, and the front desk needs to cooperate. But the app request parameters, and something they can not get, do not want the pc directly using Google debugging can be obtained, then the front end of a small partner to their entire DevTools job debugging, is he the commissioning of contracted me, I installed on the phone, and then debug , adjusting for some time, the feeling is not convenient, this thing was first over the wall. Second, he gave me only debugging development version, have had to change their re-install the new version of the development, trouble, and later found the next, with a fiddler can capture, previously only had this job, never used,

Get more than an hour, I was not ready.

First, the next phone simulator, I use this phone lightning simulator, you can use other, similar.

Second, the next fiddler I do not say this. A bunch of online, as well as the finished version. Very good use.

Focus here.

Configuration fiddler

1. Open Fiddler, click Tools => Options ... to open the configuration options, switch to third tab page Connections, modify place as shown, the port number can be freely modified, used here in the 8888 default remember their own set the port number, followed by a place you want to use.

 
 
Secondly, the use ipconfig to see your current computer ip

3. Turn on the simulator, open the emulator settings, click on the wireless network and the WLAN.

 
WLAN settings

4. Press "53865" location (a different number may be different simulators) figures, select "Edit Network", check the "Advanced Options", select "Manual" option in the "agent" in the drop down box, modify place as shown, and click save when finished.

 The wife of a different name simulators wife name is not the same, it does not matter. Setting basically the same.

 

6 can be defined and the network request the right of the tab Composer:

 

 

 

5. We can also directly be left caught directly onto the network requests and then make the appropriate changes composer to test different parameters of the function of the interface is normal. This step is not necessary. You can understand the next

 

 

 

7、在filter标签中我们可以设置不同的过滤规则对抓取的包进行过滤:这步也非必须看个人实际情况

 

 8.重新启动Fiddler,可以不用重启模拟器,若不重启Fiddler,会造成浏览器无法访问的显现。
以上的设置会在你的fiddler收到请求
 
 

抓APP上的HTTPS请求

1.如果app都是http请求,是不需要安装证书,能直接抓到的,如果是https请求,这时候手机就需要下载证书了。

2.打开手机浏览器输入:http://xx.xx.xx.xx:8888 ,这个中间的host地址就是前面查到的本机地址。

3.出现如下画面,点箭头所指的位置,点击安装就可以了。

 

 
 

设置过滤

1.手机上设置代理后,这时候fiddler上抓到的是pc和app所有的请求,如果pc上打开网址,会很多,这时候就需要开启过滤功能了。

2.打开fiddler>Tools>Fiddler Options>HTTPS>...from remote clients only,勾选这个选项就可以了

...from all processes :抓所有的请求

...from browsers only :只抓浏览器的请求

...from non-browsers only :只抓非浏览器的请求

...from remote clients only:只抓远程客户端请求

 

 

以上这些设置可以在模拟器上,也可以在手机上。上面的这些是我参考别的博客整理的。我自己只配置了模拟器上抓包,有什么错误,还望大家指出学习。

 

Guess you like

Origin www.cnblogs.com/python-xiakaibi/p/12362093.html