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