mitmproxy
An interactive man-in-the-middle HTTP proxy. tldr-pages
On several platforms
Several platforms
Start mitmproxy with default settings (will listen on port 8080)
mitmproxyIdentifyStart mitmproxy bound to a custom address and port
mitmproxy --listen-host ip_address --listen-port portIdentifyStart mitmproxy using a script to process traffic
mitmproxy --scripts path/to/script.pyIdentifyExport the logs with SSL/TLS master keys to external programs (wireshark, etc.)
SSLKEYLOGFILE="path/to/file" mitmproxyIdentifySpecify mode of operation of the proxy server (regular is the default)
mitmproxy --mode regularIdentifySet the console layout
mitmproxy --console-layout horizontalIdentifySave all proxied traffic to a file for later analysis
mitmproxy --save-stream-file path/to/dump.mitmIdentifyReplay a previously saved HTTP flow file
mitmproxy --no-server --rfile path/to/dump.mitmIdentify