2016-01-28 15:36:32 -05:00
|
|
|
# mitmdump
|
|
|
|
|
|
|
|
> View, record, and programmatically transform HTTP traffic.
|
|
|
|
> The command-line counterpart to mitmproxy.
|
2023-11-19 22:07:13 +01:00
|
|
|
> More information: <https://docs.mitmproxy.org/stable/#mitmdump>.
|
2016-01-28 15:36:32 -05:00
|
|
|
|
|
|
|
- Start a proxy and save all output to a file:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`mitmdump {{[-w|--wfile]}} {{path/to/file}}`
|
2016-01-28 15:36:32 -05:00
|
|
|
|
|
|
|
- Filter a saved traffic file to just POST requests:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`mitmdump {{[-nr|--no-server --read-flows]}} {{input_filename}} {{[-w|--wfile]}} {{output_filename}} "{{~m post}}"`
|
2016-01-28 15:36:32 -05:00
|
|
|
|
|
|
|
- Replay a saved traffic file:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`mitmdump {{[-nc|--no-server --client-replay]}} {{path/to/file}}`
|
2025-06-14 19:19:17 +10:00
|
|
|
|
|
|
|
- Intercept DNS traffic (starts an intercepting DNS server on 127.0.0.1:53):
|
|
|
|
|
|
|
|
`sudo mitmdump {{[-m|--mode]}} dns`
|