2016-01-28 21:14:24 +00:00
|
|
|
# mitmproxy
|
|
|
|
|
|
|
|
> An interactive man-in-the-middle HTTP proxy.
|
2023-05-22 03:20:15 +01:00
|
|
|
> See also: `mitmweb`.
|
|
|
|
> More information: <https://docs.mitmproxy.org/stable/concepts-options>.
|
2016-01-28 21:14:24 +00:00
|
|
|
|
2023-05-22 03:20:15 +01:00
|
|
|
- Start `mitmproxy` with default settings:
|
2016-01-28 21:14:24 +00:00
|
|
|
|
|
|
|
`mitmproxy`
|
|
|
|
|
2023-05-22 03:20:15 +01:00
|
|
|
- Start `mitmproxy` bound to a custom address and port:
|
2016-01-28 21:14:24 +00:00
|
|
|
|
2023-05-22 03:20:15 +01: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 13:54:33 +01:00
|
|
|
|
|
|
|
- Export the logs with SSL/TLS master keys to external programs (wireshark, etc.):
|
|
|
|
|
|
|
|
`SSLKEYLOGFILE="{{path/to/file}}" mitmproxy`
|