Linux command
mitmweb 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start mitmweb with default settings
mitmweb
Specify proxy and web interface ports
mitmweb --listen-port [8080] --web-port [8081]
Save intercepted flows to a file
mitmweb -w [flows.mitm]
Load previously saved flows
mitmweb -r [flows.mitm]
Run in upstream proxy mode
mitmweb --mode upstream:[http://proxy:8080]
Run in transparent proxy mode
mitmweb --mode transparent
Run in reverse proxy mode
mitmweb --mode reverse:[https://target.example.com]
Disable auto-opening the browser
mitmweb --no-web-open-browser
说明
mitmweb is the web-based interface for mitmproxy. It intercepts, inspects, modifies, and replays HTTP/HTTPS traffic through a browser-based UI. The web interface provides flow listing, detail views, and interactive request/response editing. By default, mitmweb starts a proxy on port 8080 and a web interface on port 8081. It supports the same proxy modes as mitmproxy: regular, transparent, SOCKS5, reverse proxy, upstream proxy, and WireGuard. Clients must be configured to use the proxy, and for HTTPS interception, the mitmproxy CA certificate must be installed on the client. Visit http://mitm.it through the proxy to download certificates.
参数
- --web-port _PORT_
- Port for the web interface (default: 8081).
- --web-open-browser
- Automatically open a browser on startup (default: true).
- --no-web-open-browser
- Do not automatically open a browser.
- --listen-port _PORT_
- Proxy listen port (default: 8080).
- -w _FILE_
- Write flows to file.
- -r _FILE_
- Read flows from file.
- --mode _MODE_
- Proxy mode: regular, transparent, socks5, reverse:SPEC, upstream:SPEC, wireguard.
- --set _OPTION=VALUE_
- Set an arbitrary option (e.g., --set ignore_hosts=example.com).
- -s _SCRIPT_
- Run a Python addon script.
- --ssl-insecure
- Do not verify upstream server SSL/TLS certificates.
- --help
- Display help information.
FAQ
What is the mitmweb command used for?
mitmweb is the web-based interface for mitmproxy. It intercepts, inspects, modifies, and replays HTTP/HTTPS traffic through a browser-based UI. The web interface provides flow listing, detail views, and interactive request/response editing. By default, mitmweb starts a proxy on port 8080 and a web interface on port 8081. It supports the same proxy modes as mitmproxy: regular, transparent, SOCKS5, reverse proxy, upstream proxy, and WireGuard. Clients must be configured to use the proxy, and for HTTPS interception, the mitmproxy CA certificate must be installed on the client. Visit http://mitm.it through the proxy to download certificates.
How do I run a basic mitmweb example?
Run `mitmweb` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --web-port _PORT_ do in mitmweb?
Port for the web interface (default: 8081).