fiddler bpu bpafter拦截指定多个URL请求
在fiddler中用bpu / bpafter命令拦截请求时,每次只能拦截一个URL。
如输入命令:
bpu http://www.xxx.com/aaa/bbb
如果再输入命令:
bpu http://www.xxx.com/aaa/ccc
第一条就不会拦截了,fiddler本身的bpu/bpafter拦截只能是一个。
如果想同时拦截指定的多个链接,需要修改脚本了。
在fiddler中 ctrl+r 打开脚本,修改bpu 和 bpafter命令:
如示例:
//内容为空格,和bpu命令用空格分割保持一致 public static var bpRequestURIs:String[] = [" "," "," "," "," "," "," "," "," "," "]; public static var bpResponseURIs:String[] = [" "," "," "," "," "," "," "," "," "," "];
因修改处比较多,就不一一列出来了,修改后的文件已打包放到最后了,可以下载直接替换。
PS:知道有些人不放心,害怕代码怎么怎么样,你可以和原始代码对比下
PPS:如果你真这么想了,就以小人之心,度君子之腹了
Ctrl + s 保存,然后回到fiddler界面。
在命令处输入:
bpu http://www.xxx.com/aaa http://www.xxx.com/bbb
注意:两个链接中间要用“空格”隔开。
然后回车执行命令即可同时拦截了,bpafter命令同样如此。
有 0 位网友评论: