DEPRECATED: Now merged as part of the official Mitmproxy Docker images
Containerized mitmproxy, man-in-the-middle proxy:
- Small: Using Alpine Linux.
- Simple: Exposes default port, easy to extend.
- Secure: Runs as non-root UID/GID
7799(selected randomly to avoid mapping to an existing user).
$ docker run --rm -it [-v $PWD:/home/mitmproxy/.mitmproxy] -p 8080:8080 wernight/mitmproxy
The volume mount is optional: It's to use the generated self-signed certificates.
You can also start mitmdump by just adding that to the end of the command-line.
Once started, you can set your application/browser proxy:
- Protocol:
HTTP - Server:
localhost - Port:
8080
For example:
$ http_proxy=http://localhost:8080/ curl http://google.com
$ https_proxy=http://localhost:8080/ curl -k https://google.com
To use it for Android, first install the mitmproxy generated certificate, then set the Android Wi-Fi proxy.
Improvement ideas and pull requests are welcome via Github Issue Tracker.