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

2023-04-12编程技术306843

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.ufcn.cn/tutorials/2454072.html

如非特殊说明,本站内容均来自于网友自主分享,概不代表本站观点,如有任何问题我们都将在收到反馈后的第一时间进行处理!