首页 > Web开发 > 详细

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

时间:2020-03-31 22:16:27      阅读:101      评论:0      收藏:0      [点我收藏+]

1.设置环境变量

mkdir ~/tls && touch ~/tls/sslkeylog.log

#zsh
echo "\nexport SSLKEYLOGFILE=~/tls/sslkeylog.log" >> ~/.zshrc && source ~/.zshrc

#bash
echo "\nexport SSLKEYLOGFILE=~/tls/sslkeylog.log" >> ~/.bash_profile && . ~/.bash_profile

2.设置wireshark的解密密钥文件地址

技术分享图片

3.通过命令行启动chrome

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/tmp/chrome --ssl-key-log-file=~/tls/sslkeylog.log

4.抓包

技术分享图片

 

 

 

参考:https://imququ.com/post/http2-traffic-in-wireshark.html

 

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

原文:https://www.cnblogs.com/fanyegong/p/12608983.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!