fanyegong

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

 

分类:

技术点:

相关文章:

  • 2021-10-29
  • 2021-06-09
  • 2021-10-25
  • 2021-08-01
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2021-07-13
  • 2021-10-02
  • 2021-12-07
相关资源
相似解决方案