mitmproxy
Interactive HTTPS proxy for security testing and traffic inspection
Recon & OSINT5 commands
#proxy#mitm#intercept#python
Installation
1Install via pip
2Verify installation
pip install mitmproxy
# Verify
mitmproxy --versionBasic Usage
Intercept, inspect, and modify HTTP/HTTPS traffic
# Start the terminal-based proxy
mitmproxy
# Start the web-based proxy UI
mitmweb
# Start in transparent proxy mode
mitmproxy --mode transparent
# Run as reverse proxy
mitmproxy --mode reverse:https://example.comCommand Reference
5 commands
1Terminal-based interactive proxy
mitmproxy2Web-based proxy UI
mitmweb3Command-line non-interactive proxy
mitmdump4Proxy mode (regular, transparent, reverse)
--mode5Listen port (default 8080)
-pWhen to Use
1
Intercepting and analyzing HTTP/HTTPS traffic2
Mobile application security testing3
API endpoint discovery4
Modifying requests/responses in transitNotes & Tips
1
Requires installing the mitmproxy CA certificate on the target device2
Supports Python scripting for automation3
Can decrypt HTTPS traffic with certificate pinning bypassCommon Errors & Solutions
SSL certificate errors
Install the mitmproxy CA certificate on the client device
Connection refused
Check if the port is available and firewall is not blocking