Mitm配置二次代理
主要是最近要抓取一些国外的app数据,配合python,所以需要代理
mitmproxy的官方文档
1usage: mitmproxy [options] 2 3optional arguments: 4 5-h, --help show this help message and exit 6 7--version show version number and exit 8 9--options Show all options and their default values 10 11--commands Show all commands and their signatures 12 13--confdir PATH Path to the mitmproxy config directory 14 15--set option[=value] Set an option. When the value is omitted, booleans are 16 17set to true, strings and integers are set to None (if 18 19permitted), and sequences are emptied. Boolean values 20 21can be true, false or toggle. 22 23-q, --quiet Quiet. 24 25-v, --verbose Increase log verbosity. 26 27--mode MODE, -m MODE Mode can be "regular", "transparent", "socks5", 28 29"reverse:SPEC", or "upstream:SPEC". For reverse and 30 31upstream proxy modes, SPEC is host specification in 32 33the form of "http[s]://host[:port]".
可以通过“upstream:SPEC”的方式来启动upstream模式,SPEC是主机代理模式,主机规范:
1http[s]://host[:port],代理写法如下: 2 3mitmdump --mode upstream:https://127.0.0.1:1087/ -s test.py