一、版本
1、本机版本(MAC)
➜ main git:(master) ✗ mitmdump --version
Mitmproxy: 4.0.4
Python: 3.6.0
OpenSSL: OpenSSL 1.1.0i 14 Aug 2018
Platform: Darwin-18.2.0-x86_64-i386-64bit
2、线上版本(ubuntu16.04)
线上使用了虚拟环境(virtualenv)
(venv) ➜ main git:(master) ✗ mitmdump --version
Mitmproxy: 4.0.4
Python: 3.6.5
OpenSSL: OpenSSL 1.1.0i 14 Aug 2018
Platform: Linux-4.4.0-117-generic-x86_64-with-debian-stretch-sid
二、参数
使用示例:
mitmdump -s miti_script_wx.py -p 12345 -k
参数解释:
1、-s 指定脚本
2、-p 指定端口
3、-k --ssl-insecure, -k Do not verify upstream server SSL/TLS certificates.
三、HTTPS
需要连接上代理,然后用google浏览器访问 mitm.it ,下载证书并安装。
四、其他技巧
1、block some request
def request(context, flow):
flow.kill()
2、get client ip
flow.client_conn.ip_address
网友评论