官網地址: https://mitmproxy.org/
github地址: https://github.com/mitmproxy
pypi地址: https://pypi.org/project/mitmproxy/
1. 普通安裝使用
pip3 install mitmproxy
2、設置瀏覽器代理,端口8080,也可自定義
火狐瀏覽器
谷歌瀏覽器
3、後臺啓動,進入腳本路徑,啓動mitmdump -s Record.py
4、瀏覽器打開要測試網址進行任意點擊
5、檢查生成文件
6、代碼
7、安裝XlsxWriter模塊
pip3 install XlsxWriter
命令行常用參數:
-p 指定端口號
-w outfile 將日誌輸出到本地文件
--ignore all hosts with https/ssl 忽略https 證書錯誤 (--ignore-hosts ".*443$")
-s 加載自定義python腳本