Files
tldr/pages/common/mitmproxy.md
Fazle Arefin e43c589508 mitmproxy: update page (#13514)
mitmproxy: edit page
2024-08-27 18:25:17 +02:00

30 lines
836 B
Markdown

# mitmproxy
> An interactive man-in-the-middle HTTP proxy.
> See also: `mitmweb` and `mitmdump`.
> More information: <https://docs.mitmproxy.org/stable/>.
- Start `mitmproxy` with default settings (will listen on port `8080`):
`mitmproxy`
- Start `mitmproxy` bound to a custom address and port:
`mitmproxy --listen-host {{ip_address}} {{--listen-port|-p}} {{port}}`
- Start `mitmproxy` using a script to process traffic:
`mitmproxy {{--scripts|-s}} {{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 {{--mode|-m}} {{regular|transparent|socks5|...}}`
- Set the console layout:
`mitmproxy --console-layout {{horizontal|single|vertical}}`