美文网首页
Wireshark https抓包-macOS

Wireshark https抓包-macOS

作者: 埃尔温薛定谔不养猫 | 来源:发表于2020-11-20 17:01 被阅读0次

在终端执行命令,打开新的 Chrome 浏览器

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

打开 Wireshark ,Wireshark - Perferences - Protocols - TLS ,在 (Pre)-Master-Secret log filename 输入 /tmp/.ssl-key.log


image.png

然后就可以抓到 https 包了。

异常情况我没遇到过.. 先记录
出现 Opening in existing browser session.
解决方式:关闭掉用命令启动的 Chrome,然后重新运行 Chrome 启动命令

$ ps -ef | grep /tmp/.ssl | awk 'NR==1{print $2}' | xargs  kill -9
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/tmp/chrome --ssl-key-log-file=/tmp/.ssl-key.log

相关文章

网友评论

      本文标题:Wireshark https抓包-macOS

      本文链接:https://www.haomeiwen.com/subject/wjtjiktx.html