BrowseSecurity & networking tools
mitmproxy
An interactive TLS-capable intercepting proxy for HTTP/1, HTTP/2 and WebSockets with console, command-line and web interfaces.
Tested on Linux
Use it
Linux x86_64
uv tool install mitmproxy
uv tool install mitmproxy
Check that it works
mitmdump --versionThe output should contain “Mitmproxy: 12.3.1”.
First thing to try
mkdir -p /tmp/www && cd /tmp/www && echo hello-mitm > index.html && python3 -m http.server 8000 --bind 127.0.0.1mitmdump --listen-host 127.0.0.1 -p 8080 -w /tmp/flows.mitmcurl -sS -x http://127.0.0.1:8080 http://127.0.0.1:8000/index.html && curl -sS -x http://127.0.0.1:8090 http://127.0.0.1:8000/index.htmlsleep 2 && mitmdump -n -r /tmp/flows.mitmRun mitmproxy to open the interactive console, or mitmdump or mitmweb for the command-line and web interfaces.
What it does
- Capture HTTP traffic from the command lineTested
How to use it
- Start the proxy and save traffic to a file:
mitmdump --listen-host 127.0.0.1 -p 8080 -w <file> - Send requests through the proxy, for example
curl -x http://127.0.0.1:8080 <url> - Read the saved traffic back:
mitmdump -n -r <file>
- Start the proxy and save traffic to a file:
- Inspect traffic in a web interfaceTested
How to use it
- Start the web proxy:
mitmweb --listen-host 127.0.0.1 -p 8090 --web-host 127.0.0.1 --web-port 8081 --no-web-open-browser --set web_password=<password> - Send requests through the proxy, for example
curl -x http://127.0.0.1:8090 <url> - Open http://127.0.0.1:8081 to view the captured flows, or fetch them with
curl "http://127.0.0.1:8081/flows?token=<password>"
- Start the web proxy:
- Intercept TLS HTTP traffic in a consoleNot tested
How far pickfit got
Linux x86_64
- Installs
- Starts
- 2 of 3 features work
- Works offline
Good for
- intercept and inspect HTTP and WebSocket traffic
- dump HTTP traffic on the command line
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its service answers requests
- Replayed from scratch
- Works offline
- Checked on 15 Nov 2026
- Version 12.3.1
Differences the test machine hit
- README: mitmweb is a web-based interface for mitmproxy.
In the test: mitmweb 12 protects its UI with a token/password; I set --set web_password=pickfit and passed ?token=pickfit to reach the /flows API. Also pass --no-web-open-browser when no browser is available.