Fiddler (六) 最常用的快捷键

使用QuickExec

Fiddler2成了网页调试必备的工具,抓包看数据。Fiddler2自带命令行控制,并提供以下用法。

Fiddler的快捷命令框让你快速的输入脚本命令。

键盘快捷键

按ALT+Q课迅速将焦点定位到快捷命令框。若Fiddler不在活跃状态(后台运行),可按Ctrl+Alt+F先行激活Fiddler(切换至Fiddler面板)
在QuickExec框,按CTRL + I插入会话列表中当前选定的会话的URL

默认命令

?sometext

当您键入一些字符串,如sometext ,Fiddler将突出会话所在的URL中包含sometext的请求 。此时按Enter键将高亮选中所有匹配的会话

 

1

?searchtext

1

选择请求响应大小大于size字节的会话

 

1

>40000 //选择大小超过40kb的响应

 

<size

选择请求响应大小小于size字节的会话

 

1

<5k //选择小于5kb的响应

 

=status、  =method

选择响应状态=status 或请求方法=method的会话

 

1

2

=301 //选择301重定向响应

=POST //选择POST方式的请求

2

@host

选择会话中域名包含host的会话,此时按Enter键可高亮所有匹配的结果

 

1

@baidu.com //选择 www.baidu.com, map.baidu.com, 等等

3

bold

预先设置会话加粗:标记任何URL包含了目标字符串的后续请求
tip:再次输入bold取消设置

 

1

2

bold /index.php

bold        //调用不带任何参数的命令来清除上一设置

 

bpafter

设置中断RequestURI中包含指定字符串的任何响应
tip:再次输入bpafter取消设置

 

1

2

bpafter /favicon.ico

bpafter       //取消设置

 

bps

中断与设置的状态代码匹配的响应

 

1

2

bps 404

bps        //取消设置

 

bpv or bpm

对指定的HTTP方法创建请求断点。设置此命令将清除该命令的任何以前的值,不带参数调用它会禁用断点

 

1

2

bpv POST

bpv        //取消设置

 

bpu

对包含指定字符串的URI创建请求断点。设置此命令将清除该命令的任何以前的值,不带参数调用它会禁用断点

 

1

2

bpu /index.php

bpu        //取消设置

 

cls or clear

清空会话列表

 

1

cls

 

dump

打包所有会话成zip归档文件并转存在C:\

 

1

dump

 

g or go

恢复所有设置断点的会话

 

1

g

 

help

打开帮助页面(即本文英文版)

 

1

help

 

hide

隐藏Fiddler界面,系统后台运行

 

1

hide

 

urlreplace

以一个不同的字符串替换URL中任何字符串。设置此命令将清除该命令的任何以前的值,不带参数调用它,将取消更换

 

1

2

urlreplace SeekStr ReplaceWithStr

urlreplace        //取消设置

 

start

注册成为系统代理

 

1

start

 

stop

取消注册为系统代理

 

1

stop

 

show

将Fiddler从系统托盘中恢复,从ExecAction.exe获取更多有用的触发规则

 

1

show

 

select MIME

选择Content- Type头中包含指定字符串的响应,可用于选择文件格式等

 

1

2

3

select image

select css

select htm

 

select HeaderOrFlag PartialValue

选择已命名的header或SessionFlag包含指定字符串的响应

 

1

2

3

4

5

select ui-comments slow

select ui-bold *     <-- unless preceded by a slash, * 表示任意值

select ui-comments \*     <-- Find comments with a *

select @Request.Accept html     <-- Find requests with Accept: html

select @Response.Set-Cookie domain <- Find responses that Set-Cookie on a domain

 

allbut or keeponly

隐藏Content-Type头中除了包含指定字符串的所有会话,用于筛选

 

1

2

allbut html

allbut java

 

quit

退出Fiddler

 

1

quit

 

!dns hostname

进行目标域名的DNS查找,并将结果显示在LOG选项卡上

 

1

2

!dns www.baidu.com

!nslookup www.baidu.com

)3Z~5L`[P${H(9G_DQV7_MS

!listen PORT [CERTHOSTNAME]

在另一个端口增设一个监听器,选择安全的HTTPS证书

 

1

2

3

!listen 8889

!listen 4443 localhost

!listen 444 secure.example.com

 

附:

CommandActionSample usage
?sometextAs you typesometext, Fiddler will highlight sessions where the URL containssometext.  Hit Enter to set focus to the selected matches.?searchtext
>sizeSelect sessions where response size is greater thansize bytes.>40000 <-- Select responses over 40kb
<sizeSelect sessions where response size is less thansize bytes.<5k <-- Select responses under 5kb
=status
=method
Select sessions whereresponse status =status orrequest method =method.=301 <-- Select 301 redirect responses
=POST <-- Select POST requests
@hostSelect sessions where the request host contains host. Hit Enter to set focus to the selected matches.@msn.com <-- Select www.msn.com, login.msn.com, etc
boldMark any future sessions in bold if the url contains the target stringbold /bar.aspx

bold        <-- Call with no parameter to clear

bpafterBreak any response where the RequestURI contains the specified stringbpafter /favicon.ico

bpafter        <-- Call with no parameter to clear

bpsBreak any response where the status code matchesbps 404

bps        <-- Call with no parameter to clear

bpv or bpmCreate 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

bpv        <-- Call with no parameter to clear

bpuCreate 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 /myservice.asmx

bpu        <-- Call with no parameter to clear

cls or clearclear the session listcls
dumpdump all sessions to a zip archive in C:\dump
g or goResume all breakpointed sessionsg
helpshow this pagehelp
hideHide Fiddler in System trayhide
urlreplaceReplace 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 SeekStr ReplaceWithStr

urlreplace        <-- Call with no parameters to clear

startRegister as the system proxystart
stopUnregister as the system proxystop
showRestore Fiddler from system tray -- more useful when triggering rules from ExecAction.exe (see below)show
select MIMESelect any session where the response Content-Type header contains the specified string.select image

select css

select htm

selectHeaderOrFlagPartialValueSelect any session where the named Header or SessionFlag contains the specified string.select ui-comments slow

select ui-bold *     <-- unless preceded by a slash, * means any value

select ui-comments \*     <-- Find comments with a *

select @Request.Accept html     <-- Find requests with Accept: html

select @Response.Set-Cookie domain <- Find responses that Set-Cookie on a domain
allbut or keeponlyHide all sessions except those where Content-Type header contains the specified string.allbut xml

allbut java

quitShutdown Fiddler.quit
!dns hostnamePerform a DNS lookup of the target host and show the results on the LOG tab!dns www.example.com

!nslookup www.example.com
!listen PORT [CERTHOSTNAME]Set up an additional listener on another port, optionally secured by a HTTPS certificate!listen 8889

!listen 4443 localhost

!listen 444 secure.example.com

 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值