Fiddler命令备忘

web调试——fiddler

Fiddler是一款免费的web调试工具,适用于任何浏览器、任何系统以及任何平台。通常我用fiddler进行抓包、请求截断、请求重放等对系统进行调试和分析。下面记录一下常用的fiddler命令,以供参考。

Fiddler命令

Fiddler提供通过QuickExec执行一系列命令。在fiddler启用的状态,通过alt+q快捷键,将焦点聚在QuickExec Box。

?sometext

在QuickExec Box中输入“?任何字符串”,fiddler会高亮含有输入字符串的会话;按下enter会聚焦含有输入字符串的会话。

 

?Check:筛选含有Check字符串的会话。

>size或<size

输入>size(或<size),回车,筛选出响应数据大于(或小于)输入字节的会话。

注意:size单位为字节,也可直接输入>5K来筛选响应数据大于5K的会话。

=status或=method

=301:筛选http状态码为301的会话

=POST:筛选请求方式为POST的会话

@host

@alicdn.com:筛选www.alicdn.com、login.alicdn.com等类似会话

bold

bold  /login:加粗含有/login的会话

 

bpafter

Break any response where the RequestURI contains the specified string

 

bpafter /login:截断请求url含有/login的会话响应

bpafter:清除bpafter xxx效果

 

bps

Break any response where the status code matches

 

bps 404:截断http状态码为404的会话响应

bps:清除bps xxx效果

bpv或bpm

Create a request breakpoint for the specified HTTP method. Setting this command will clear any previous value for the command; calling it with no parameter will disable the breakpoint.

 

bpv POST:post请求增加断点

bpv:清除所有bpv xxx效果

bpu

Create a request breakpoint for URIs containing the specified string. Setting this command will clear any previous value for the command; calling it with no parameter will disable the breakpoint.

bpu /login:请求URI含/login增加断点

bpu:清除bpu /login效果

 

注意:为请求增加断点和截断响应是不同的概念。

cls或clear

clear the session list

清除会话列表

dump

dump all sessions to a zip archive in C:\

将所有会话转存在c盘

g或go

Resume all breakpointed sessions

恢复所有断点会话(断点不会消失,只是本次跳过所有断点)

help

查看所有命令

hide

最小化fiddler

urlreplace

Replace any string in URLs with a different string. Setting this command will clear any previous value for the command; calling it with no parameter will cancel the replacement.

 

urlreplace login login2:将url中login替换为login2

urlreplace :清除urlreplace xxx yyy效果

start

Register as the system proxy

将fiddler作为系统代理

stop

Unregister as the system proxy

取消fiddler作为系统代理

!dns hostname

Perform a DNS lookup of the target host and show the results on the LOG tab

执行域名解析,并在“日志”选项卡上显示结果

 

!listen port [certhostname]

Set up an additional listener on another port, optionally secured by a HTTPS certificate

在另一个端口上设置其他侦听器,可选择通过HTTPS证书加以保护

select MIME

Select any session where the response Content-Type header contains the specified string.

select text/html: 选中响应头中content-type包含text/html的会话

allbut or keeponly 

Hide all sessions except those where Content-Type header contains the specified string.

allbut text/html:只保留响应头中content-type包含text/html的会话

 

 

官方参考:

http://docs.telerik.com/fiddler/knowledgebase/quickexec

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值