首页 > 编程语言 > 详细

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

时间:2019-05-31 17:07:32      阅读:1724      评论:0      收藏:0      [点我收藏+]

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

 

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

原文:https://www.cnblogs.com/khaha/p/10955420.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!