码迷,mamicode.com
首页 > Windows程序 > 详细

windows下使用Wireshark调试chrome浏览器的HTTP/2流量

时间:2017-06-22 14:47:37      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:fan   profile   ogr   pre   window   protocol   自己的   use   nbsp   

1.在Wireshark官网(https://www.wireshark.org/#download)下载对应的Wireshark安装包,进行安装

2.增加系统环境变量设置(计算机 -- 右键 -- 属性--高级系统设置--高级--环境变量--系统变量--新建)

变量名:SSLKEYLOGFILE

变量值:%USERPROFILE%\sslkeysENV.pms

3.在CMD使用命令行启动chrome浏览器

> "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --ssl-key-log-file=%USERPROFILE%\sslkeysARG.pms

4.设置Wireshark

(1)打开Wireshark--编辑--首选项--Protocols--SSL

(2)设置(Pre)-Master-Secret log filename

C:\Users\fanyegong\sslkeysARG.pms   (使用自己的用户名替换fanyegong)

(3)设置SSL debug file (此步骤可选)

C:\Users\fanyegong\ssl.log

5.此时便可以在Wireshark中查看http2的流量了

 

windows下使用Wireshark调试chrome浏览器的HTTP/2流量

标签:fan   profile   ogr   pre   window   protocol   自己的   use   nbsp   

原文地址:http://www.cnblogs.com/fanyegong/p/7064824.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!