1、Filters-标记域名:

2、Composer-发送请求:

3、模拟响应:
a、404页面
b、502页面


4、模拟弱网:
a、开启弱网模式:Rules-Perfomance-勾选Simulate Modem Speed

b、限速:Rules-Customize Rules-开启FiddlerScript-搜索m_SimulateModem
if (m_SimulateModem) {
// Delay sends by 300ms per KB uploaded.
oSession["request-trickle-delay"] = "300";
// Delay receives by 150ms per KB downloaded.
oSession["response-trickle-delay"] = "150";
}
5、显示时间(Time Taken)
a、Rules-Customize Rules-开启FiddlerScript-class Handlers中增加如下代码
function BeginRequestTime(oS: Session)
{ if (oS.Timers != null) { return oS.Timers.ClientBeginRequest.ToString(); } return String.Empty; }
public static BindUIColumn("TimeTaken/ms" ,120) function TimeTaken(oS: Session): String{
var sResult = "0";
var t1_ms = oS.Timers.ClientBeginResponse.ToUniversalTime().Millisecond;
var t1_m = oS.Timers.ClientBeginResponse.ToUniversalTime().Minute;
var t1_s = oS.Timers.ClientBeginResponse.ToUniversalTime().Second;
var t1 = t1_m*60*1000 + t1_s*1000 + t1_ms ;
var t2_ms = oS.Timers.ClientDoneRequest.ToUniversalTime().Millisecond;
var t2_m = oS.Timers.ClientDoneRequest.ToUniversalTime().Minute; var t2_s = oS.Timers.ClientDoneRequest.ToUniversalTime().Second;
var t2 = t2_m*60*1000 + t2_s*1000 + t2_ms ;
if(t1 >= t2){
var t3 = t1 - t2;
sResult = t3.toString(); } return sResult; }
function CalcTimingCol(oS: Session){ var sResult = String.Empty; if ((oS.Timers.ServerDoneResponse > oS.Timers.ClientDoneRequest))
{ sResult = (oS.Timers.ServerDoneResponse - oS.Timers.ClientDoneRequest).ToString(); } return sResult; }
6、显示server ip
a、Rules-Customize Rules-开启FiddlerScript-main中增加如下代码
FiddlerObject.UI.lvSessions.AddBoundColumn("ServerIP", 120, "X-HostIP");
7、点击session,定位到对应的tab
a、在quick exec命令框中执行如下命令,则每次点击session请求定位到WebForms:
PREFS SET fiddler.ui.inspectors.request.alwaysuse "WebForms"
b、在quick exec命令框中执行如下命令,则每次点击session响应定位到json:
PREFS SET fiddler.ui.inspectors.response.alwaysuse "json"
8、bpu篡改请求
bpu +空格 + 请求的URL + 回车
9、bpafter篡改响应
bpafter + url + 回车
10、快捷键:
AIt + q:定位到快捷输入框
Ctrl+i:已选中请求,将请求输入到快捷输入框
11、重复请求:
选中一个请求-右键-Replay-Reissue Sequentially-输入次数
12、设置请求颜色:
Rules-Customize Rules-开启FiddlerScript-OnBeforeRequest中增加如下代码
if (oSession.uriContains(".baobaobooks.com")) { oSession["ui-color"] = "Green"; }
参考:https://www.cnblogs.com/jinjiangongzuoshi/p/5272787.html
https://www.toutiao.com/a6971807016595489317/?log_from=45dc24d1efeac_1635556337148
https://www.toutiao.com/i6969192258843263519/?group_id=6969192258843263519
网友评论