Sniffing & Spoofing
mitmproxy is an interactive, SSL/TLS-capable intercepting HTTP proxy. It allows users to inspect, modify, and replay web traffic flowing through an application layer proxy.
sudo apt install mitmproxy
mitmproxy
mitmproxy is an interactive SSL/TLS-capable man-in-the-middle HTTP proxy. It allows security researchers to intercept, inspect, modify, and replay web traffic for testing and debugging purposes.
With support for inline Python scripting, transparent proxying, and multiple interface modes, mitmproxy is an essential tool for web application security testing, API analysis, and traffic manipulation.
mitmproxyLaunch interactive proxy - Initialize console interface on the default port 8080mitmproxy -p 8888Custom port - Bind the proxy server listener to port 8888 instead of the defaultmitmdump -w traffic.flowDump to file - Record streamed connection properties to a flow file quietly without the console UImitmdump -r traffic.flowRead flow - Open and replay traffic data saved inside a structured flow filemitmwebWeb interface - Launch a browser-based graphical console dashboard to review intercepted trafficmitmdump -s script.pyInline scripting - Pass Python scripts to automatically intercept, process, and alter running traffic statesmitmproxy --mode transparentTransparent mode - Configure traffic interception without requiring explicit client proxy configurationsmitmproxy --ignore-hosts "^example\.com:443quot;Ignore traffic - Bypass specific destination domains entirely to exclude them from interception workflowsmitmproxy -p 8080Custom portmitmweb --web-port 8081Web UI port - Launch the browser dashboard on a custom portmitmproxy --mode reverse:https://example.comReverse proxy - Front a specific upstream server for API testingmitmdump -s addon.py -w out.flowScript + save - Run a Python addon while recording all flowsmitmproxy --set block_global=false --mode transparentTransparent tuning - Allow non-local clients in transparent modemitmdump "~u /api/" -w api.flowFilter capture - Record only flows whose URL matches a filterIntercept and decrypt SSL/TLS traffic.
Modify requests and responses in real-time.
Replay captured requests for testing.
Analyze and debug REST/GraphQL API calls.
Displays an organized list of web transactions, allowing you to drill down into the headers, parameters, and payloads. It offers real-time editing capabilities.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.