1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/mitmproxy.md

30 lines
836 B
Markdown
Raw Normal View History

2016-01-28 16:14:24 -05:00
# mitmproxy
> An interactive man-in-the-middle HTTP proxy.
> See also: `mitmweb` and `mitmdump`.
> More information: <https://docs.mitmproxy.org/stable/>.
2016-01-28 16:14:24 -05:00
- Start `mitmproxy` with default settings (will listen on port `8080`):
2016-01-28 16:14:24 -05:00
`mitmproxy`
- Start `mitmproxy` bound to a custom address and port:
2016-01-28 16:14:24 -05:00
`mitmproxy --listen-host {{ip_address}} {{-p|--listen-port}} {{port}}`
- Start `mitmproxy` using a script to process traffic:
`mitmproxy {{-s|--scripts}} {{path/to/script.py}}`
- Export the logs with SSL/TLS master keys to external programs (wireshark, etc.):
`SSLKEYLOGFILE="{{path/to/file}}" mitmproxy`
- Specify mode of operation of the proxy server (`regular` is the default):
`mitmproxy {{-m|--mode}} {{regular|transparent|socks5|...}}`
- Set the console layout:
`mitmproxy --console-layout {{horizontal|single|vertical}}`