当前位置:网站首页>使用 Fiddler Hook 报错:502 Fiddler - Connection Failed
使用 Fiddler Hook 报错:502 Fiddler - Connection Failed
2022-07-24 14:32:00 【Yy_Rose】
一般使用 Fiddler 插件进行 Hook 操作的流程如下: 
添加好代码后,F12 启动抓包,然后如下清除浏览器 Cookies,刷新页面即可完成注入:

但是这时并没有 Hook 住并打印数据,查看 Console 发现有如下报错 Fiddler - Connection Failed :

以上显示 Fiddler 连接失败,但是查看 Fiddler 中的抓包情况,也都是正常的,后来发现是开启了 Stream(流模式)的问题:

- 流模式(Streaming):Fiddler 会即时将 HTTP 响应的数据返回给应用程序,更接近真实浏览器的性能,时序图更准确,但是不能控制响应。
缓冲模式(Buffering):直到 HTTP 响应完成时才将数据返回到应用程序,可以控制响应,修改响应数据。
综上:开启流模式无法控制响应,修改相应数据,而 Hook 程序是在系统还没有调用函数执行前,就先捕获该消息,得到程序的控制权,改变函数的执行行为,在原方法前后加入自定义方法,从而实现对方法的重写,相当于修改了数据,所以,Hook 操作的时候不能开启 Stream!
边栏推荐
- Date processing bean
- Usage differences of drop, truncate and delete
- Default color setting in uiswitch off state
- mysql
- Research Summary / programming FAQs
- Production environment tidb cluster capacity reduction tikv operation steps
- AtCoder Beginner Contest 261 F // 树状数组
- Notes on the use of IEEE transaction journal template
- OC sets the image fillet, and the image is not deformed
- 栈与队列——225. 用队列实现栈
猜你喜欢

VSCode如何调试Nodejs

Detailed explanation of IO model (easy to understand)

Under multi data source configuration, solve org.apache.ibatis.binding Bindingexception: invalid bound statement (not found) problem

Don't lose heart. The famous research on the explosive influence of Yolo and PageRank has been rejected by the CS summit

Notes on the use of IEEE transaction journal template

Kotlin class and inheritance

正则表达和绕过案例

Production environment tidb cluster capacity reduction tikv operation steps

关于构建网络安全知识库方向相关知识的学习和思考

LeetCode高频题56. 合并区间,将重叠的区间合并为一个区间,包含所有区间
随机推荐
对话框管理器第二章:创建框架窗口
The server switches between different CONDA environments and views various user processes
Dialog manager Chapter 2: create frame window
Data analysis and mining 1
CSDN垃圾的没有底线!
Was installer startup error
PIP source switching
Similarities and differences between nor flash and NAND flash
SQL Server syntax - create database
AtCoder Beginner Contest 261 F // 树状数组
Solve the problem that uni starter can log in to wechat with local functions, but fails to log in with cloud functions
Learn science minimize
Rasa 3.x 学习系列-Rasa [3.2.4] - 2022-07-21 新版本发布
VS编译后的应用缺少dll
Beijing all in one card listed and sold 68.45% of its equity at 352.888529 million yuan, with a premium rate of 84%
Stack and queue - 225. Implement stack with queue
Where can Huatai Securities open an account? Is it safe to use a mobile phone
"After 00" is coming! Digital data ushers in a new generation of "codeless" forces
2022年IAA行业品类发展洞察系列报告·第二期
达梦实时主备集群搭建