惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
S
Securelist
MyScale Blog
MyScale Blog
Jina AI
Jina AI
罗磊的独立博客
The Cloudflare Blog
美团技术团队
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
雷峰网
雷峰网
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
博客园 - 聂微东
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
T
Tailwind CSS Blog
Attack and Defense Labs
Attack and Defense Labs
博客园_首页
Latest news
Latest news
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Hacker News
The Hacker News
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
U
Unit 42
D
Docker
Webroot Blog
Webroot Blog
N
Netflix TechBlog - Medium
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 最新话题
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
B
Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Security Latest
Security Latest
V2EX - 技术
V2EX - 技术
N
News | PayPal Newsroom
Microsoft Security Blog
Microsoft Security Blog

博客园 - 孤峰皓月

OD 基础 Fiddler 抓取Https时 显示 Tunnel to 443 的解决方案 Fiddler 模拟器抓包,SSL抓包不到 新浪微博视频批量上传社区投稿教程 windows 2008 R2 设置 discuz 伪静态 微信小程序-布局 微信小程序,体验版加载不了网络数据 微信小程序: 使用本地缓存 微信小程序 自定义组件. 小程序学习一些小技巧 微信小程序基础学习笔记4 微信小程序基础学习笔记3:API 微信小程序基础学习笔记2:数据绑定相关 微信小程序基础学习笔记1 HttpWebRequest.GetRequestStream方法timeout【第3次操作时就超时】的原因及解决办法 cad 已知拱高弦长求弧长 MySQL直接将数据库的文件夹从服务器复制到本地,打开表提示需要修复 “is marked as crashed and should be repaired ” 富文本编辑器,webbrowser控件 document.execCommand() 解析 Visual studio 2010 工具箱名称不显示的原因
Fiddler 抓取Https时 显示 Tunnel to 443 的解决方案2
孤峰皓月 · 2021-09-10 · via 博客园 - 孤峰皓月

------------恢复内容开始------------

设置好Fiddler,部分https抓包时,显示 Tunnel to 443,注意不是全部,如果是全部显示Tunnel to 443,那需要把证书推送到系统证书里面。

1.打开 Fiddler ,找到 FiddlerScript标签,Go to: 这里选 OnBeforeRequest

.

 

在这个方法的末尾加上如下代码:

var hosts = 'zkd.me develop.dog';
         FiddlerApplication.Log.LogFormat("Logger session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
        if(hosts.indexOf(oSession.host) > -1){
            FiddlerApplication.Log.LogFormat("Capture session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
            if(oSession.HTTPMethodIs('CONNECT')){
                FiddlerApplication.Log.LogString('create fake tunnel response');
                oSession['x-replywithtunnel'] = 'FakeTunnel';
                return;
            }
 
            if (oSession.isHTTPS){
                FiddlerApplication.Log.LogString('switch https to http request');
                oSession.fullUrl = oSession.fullUrl.Replace("https://","http://");
                oSession.port = 80;
            }   
 
            FiddlerApplication.Log.LogFormat("Processed session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
        }
        FiddlerApplication.Log.LogFormat("Logger session {0}, Url: {1}, isHttps: {2}, port: {3}", oSession.id, oSession.fullUrl, oSession.isHTTPS, oSession.port);
 
var hosts = 'zkd.me develop.dog'; 
这里需要改成我们自己的要抓包的域名

2.修改好后,一定要点 Save Script 这个按钮,要不然改了没用

//如何让HTTP请求和HTTPS请求显示不一样的颜色?

if(oSession.isHTTPS && oSession.url.indexOf(oSession.host)> -1){
oSession["ui-color"] = "blue";
}
if(!oSession.isHTTPS && oSession.url.indexOf(oSession.host)> -1){
oSession["ui-color"] = "green";
}
 

参考自:https://blog.csdn.net/amrenyu/article/details/80745674

------------恢复内容结束------------