A detailed introduction to Fiddler

The difference between Fiddler and other packet capture tools

1. Although Firebug can capture packets, it is not powerful enough to analyze the detailed information of http requests. The function of simulating http requests is not enough, and firebug often requires "modification without refresh". If the page is refreshed, all modifications will not be saved;
 2. Wireshark is a general packet capture tool, but it is relatively large. For the application of http request, is it overkill?
 3. Httpwatch is also a commonly used http packet capture tool, but only supports IE and firefox browsers (other browsers may have corresponding plug-ins);
and Fiddler is an HTTP proxy that uses the local 127.0.0.1:8888. Anything that can be set Fiddler can be used by browsers and applications with an HTTP proxy of 127.0.0.1:8888.

How Fiddler works

	Fiddler是位于客户端和服务器端的HTTP代理,也是目前最常用的http抓包工具之一 。 它能够记录客户端和服务器之间的所有 HTTP请求,可以针对特定的HTTP请求,分析请求数据、设置断点、调试web应用、修改请求的数据,甚至可以修改服务器返回的数据。

Since it is a proxy, that is to say: all requests from the client must go through Fiddler first, and then forwarded to the corresponding server. On the contrary, all responses from the server will also go through Fiddler and then sent to the client, so the web client and server The request is shown in Figure 1:
 insert image description here
  the proxy is a checkpoint set between the client and the server. After the client sends the request data first, the proxy server will intercept the data packet, and the proxy server will pretend to be the client to send the data to Server; in the same way, the server returns the corresponding data, and the proxy server also intercepts the data and returns it to the client.

Installation of Fiddler

Installation address
link: https://pan.baidu.com/s/1-UQHt2n40Dv6VuvUBde9hg
Extraction code: mh9v After
the download is complete, in addition to selecting the path, go directly to the next step

Configure fiddler

1. Enable the configured interception of Http requests
Click Tools>Fiddler Options>HTTPS to check to capture https connections to ignore service certificate errors
insert image description here
2. Click Tools>Fiddler Options>Connections to allow remote connections
insert image description here
3. Install the fiddler certificate
and check the above click Yes, A prompt to install the certificate will pop up, click Yes to install
insert image description here

Server-side packet capture process

process:

Open the browser "enter www.baidu.com" enter the Baidu page and enter 12306 "open Fiddler" find the rhetorical path by viewing the requested path parameters "successfully complete the packet capture process
insert image description here

Enter www.baidu.com
insert image description here
to successfully enter the baidu page and enter the 12306
insert image description here
request how to view the url parameters
insert image description here

filter

insert image description here
Click Filters "Select UseFilters" Select -No Zone Filter - No need to associate with the external network, Intranet "Select show only the following Hosts "Enter the conditions to be filtered in the filter box, such as "www.baidu.com;"" Click the browser to refresh

insert image description here
Successfully get the filtered address
insert image description here

Fiddler breakpoints

process

First enter Baidu access 12306 "then select Rules" Automatic Breakpoirts "select Beform Requests" click and refresh the page "successfully enter the breakpoint to find the corresponding url, modify the text to be modified to achieve redirection" and finally click run to completion to complete a breakpoint operation

insert image description here

Find the url and modify the parameters to realize the redirection operation
Please add image description

weak net

First, Rules>Customize Rules>Enter the page ctrl+F to search for m_si>Set the extension time of the request response>Click Rules to select Performance>Simulate Modem speeds
insert image description here

insert image description here

insert image description here
Turn off the weak network and
click on Rules to select Performance>Simulate Modem speeds

Virtual machine using Fiddler

After downloading the thunderbolt simulator in the winds system, connect to the same wifi to view the wifi ipv4 (172.20.10.2) port 8888 of the winds system. After the
insert image description here
connection is successful, visit 172.20.10.2:8888 to download the certificate
Click FiddlerRoot certificate to download the certificate

insert image description here
insert image description here
insert image description here
insert image description here

insert image description here
Successfully visited www.baid.com to the 12306 website through Baidu
insert image description here

Successfully implemented tests with simulator and Fiddler

Guess you like

Origin blog.csdn.net/weixin_44826661/article/details/123824202