Mitmproxy(Mitmdump) 二次代理使用方式启动python

Mitm配置二次代理

主要是最近要抓取一些国外的app数据,配合python,所以需要代理

mitmproxy的官方文档

usage: mitmproxy [options]

optional arguments:

-h, --help            show this help message and exit

--version            show version number and exit

--options            Show all options and their default values

--commands            Show all commands and their signatures

--confdir PATH        Path to the mitmproxy config directory

--set option[=value]  Set an option. When the value is omitted, booleans are

set to true, strings and integers are set to None (if

permitted), and sequences are emptied. Boolean values

can be true, false or toggle.

-q, --quiet          Quiet.

-v, --verbose        Increase log verbosity.

--mode MODE, -m MODE  Mode can be "regular", "transparent", "socks5",

"reverse:SPEC", or "upstream:SPEC". For reverse and

upstream proxy modes, SPEC is host specification in

the form of "http[s]://host[:port]".    

可以通过“upstream:SPEC”的方式来启动upstream模式,SPEC是主机代理模式,主机规范:

http[s]://host[:port],代理写法如下:
mitmdump --mode upstream:https://127.0.0.1:1087/ -s test.py

 

posted on 2019-05-31 15:20  Haha.chen  阅读(1887)  评论(0编辑  收藏  举报

导航