tldr/pages/common/mitmproxy.md

22 lines
567 B
Markdown
Raw Normal View History

2016-01-28 21:14:24 +00:00
# mitmproxy
> An interactive man-in-the-middle HTTP proxy.
> See also: `mitmweb`.
> More information: <https://docs.mitmproxy.org/stable/concepts-options>.
2016-01-28 21:14:24 +00:00
- Start `mitmproxy` with default settings:
2016-01-28 21:14:24 +00:00
`mitmproxy`
- Start `mitmproxy` bound to a custom address and port:
2016-01-28 21:14:24 +00:00
`mitmproxy --listen-host {{ip_address}} --listen-port {{port}}`
- Start `mitmproxy` using a script to process traffic:
`mitmproxy --scripts {{path/to/script.py}}`
- Export the logs with SSL/TLS master keys to external programs (wireshark, etc.):
`SSLKEYLOGFILE="{{path/to/file}}" mitmproxy`