Skip to content

Instantly share code, notes, and snippets.

@notsobad
Last active December 19, 2025 07:07
Show Gist options
  • Select an option

  • Save notsobad/d8c1ad9ca2011a16425c4cfbc23a847d to your computer and use it in GitHub Desktop.

Select an option

Save notsobad/d8c1ad9ca2011a16425c4cfbc23a847d to your computer and use it in GitHub Desktop.
tls抓包

如果程序中访问了某一个域名,可以修改host, 之后可以抓这个ip的流量

59.63.226.17 api.trustoken.cn

在wireshark中进行配置,首选项-协议-TLS下,设置pre-master-secret log文件,如/tmp/sslkeys.log。 假如程序中有访问TLS内容,可以如下方式启动:

SSLKEYLOGFILE=/tmp/sslkeys.log python -m aipyapp

浏览器也可以用这种方式启动.

SSLKEYLOGFILE=/tmp/ssl-key.log /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

在wireshark中抓取host 59.63.226.17 and port 443即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment