Start
# start (default port 8080)
$ mitmproxy
# web gui
$ mitmweb
# start proxy & save traffic
$ mitmdump -w cap.log
$ mitmpdump 'google\.com' # capture only specified host
--alow-hostslisten only for specified traffic i.egoogle\.com
Navigation
| Key | Info |
|---|---|
| Requests List | |
| Arrows (Up / Down) | Navigate through replies |
| Enter | Confirm / Enter |
| R | Reply request (re-send request) |
| Request Details | |
| Arrows (Left / Right) | Change Active tabs |
| ? | Help |
| I | Intercept Regex |
| E | Edit Request |
| Q | Previous Menu |
| A | Sent Request |
Intercept Requests
Press I after starting mitmproxy and type command
# Regex based on URL
~u RegexHere
RED colored requests are intercepted enter into it and press E to modify request content