如果程序中访问了某一个域名,可以修改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即可。