Files
tldr/pages.zh/common/mitmproxy.md

29 lines
820 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mitmproxy
> 一个交互式的中间人HTTP代理。
> 另见:`mitmweb` 和 `mitmdump`。
> 更多信息:<https://docs.mitmproxy.org/stable/>。
- 使用默认设置启动 `mitmproxy`(将监听端口 `8080`
`mitmproxy`
- 启动绑定到自定义地址和端口的 `mitmproxy`
`mitmproxy --listen-host {{ip_address}} {{-p|--listen-port}} {{port}}`
- 使用脚本处理流量启动 `mitmproxy`
`mitmproxy {{-s|--scripts}} {{path/to/script.py}}`
- 将带有SSL/TLS主密钥的日志导出到外部程序wireshark等
`SSLKEYLOGFILE="{{path/to/file}}" mitmproxy`
- 指定代理服务器的操作模式(`regular` 是默认模式):
`mitmproxy {{-m|--mode}} {{regular|transparent|socks5|...}}`
- 设置控制台布局:
`mitmproxy --console-layout {{horizontal|single|vertical}}`