From e43c58950845751def8c789d849ae82827aa347e Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Wed, 28 Aug 2024 02:25:17 +1000 Subject: [PATCH] mitmproxy: update page (#13514) mitmproxy: edit page --- pages/common/mitmproxy.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/common/mitmproxy.md b/pages/common/mitmproxy.md index 78aa60d8fd..81123a53ca 100644 --- a/pages/common/mitmproxy.md +++ b/pages/common/mitmproxy.md @@ -1,21 +1,29 @@ # mitmproxy > An interactive man-in-the-middle HTTP proxy. -> See also: `mitmweb`. -> More information: . +> See also: `mitmweb` and `mitmdump`. +> More information: . -- Start `mitmproxy` with default settings: +- Start `mitmproxy` with default settings (will listen on port `8080`): `mitmproxy` - Start `mitmproxy` bound to a custom address and port: -`mitmproxy --listen-host {{ip_address}} --listen-port {{port}}` +`mitmproxy --listen-host {{ip_address}} {{--listen-port|-p}} {{port}}` - Start `mitmproxy` using a script to process traffic: -`mitmproxy --scripts {{path/to/script.py}}` +`mitmproxy {{--scripts|-s}} {{path/to/script.py}}` - Export the logs with SSL/TLS master keys to external programs (wireshark, etc.): `SSLKEYLOGFILE="{{path/to/file}}" mitmproxy` + +- Specify mode of operation of the proxy server (`regular` is the default): + +`mitmproxy {{--mode|-m}} {{regular|transparent|socks5|...}}` + +- Set the console layout: + +`mitmproxy --console-layout {{horizontal|single|vertical}}`