Skip to content

抓包工具

mitmproxy

sh
# 安装
pip install mitmproxy

#启动
mitmdump -p 8889 -s proxy.py

proxy.py脚本

python
def response(flow):
    if 'https://aweme-eagle.snssdk.com/aweme/v1/feed/' in flow.request.url:
        print('====feed===========================')
        print(flow.response.headers)
        print(flow.response.body)
        print('====feed end===========================')

    if  'https://aweme-eagle.snssdk.com/aweme/v1/user/?user_id' in flow.request.url:
        print('====user===========================')
        print(flow.response.body)
        print(flow.response.body)
        print('====user end===========================')
  • MitmProxy:运行 mitmproxy 后访问 http://mitm.it,下载对应系统的证书。