安装
mitmproxy = MITM(Man-in-the-middle attack) Proxy
pip install mitmproxy
brew install mitmproxy
mitmproxy --version
# Mitmproxy: 5.1.1
# Python: 3.8.2
# OpenSSL: OpenSSL 1.1.1g 21 Apr 2020
# Platform: macOS-10.15.4-x86_64-i386-64bit
配置
关闭其他代理工具!!!
networksetup -setwebproxy "Wi-Fi" 127.0.0.1 8080
networksetup -getwebproxy "Wi-Fi"
# Enabled: Yes
# Server: 127.0.0.1
# Port: 8080
# Authenticated Proxy Enabled: 0
networksetup -setsecurewebproxy "Wi-Fi" 127.0.0.1 8080
networksetup -getsecurewebproxy "Wi-Fi"
# Enabled: Yes
# Server: 127.0.0.1
# Port: 8080
# Authenticated Proxy Enabled: 0
代理
下载安装并信任证书
mitmproxy
? => 帮助菜单
q => 返回/退出
ctrl + f => 前翻页
ctrl + b => 后翻页
f => 筛选过滤 ("baidu.com" => enter => "ctrl + w" => enter)
r => 重放请求
enter => 查看详情
tab => 切换详情
网友评论