Setup mitmproxy
Table of contents:
Setup mitmproxy
What is mitmproxy? It is a free and open source interactive HTTPS proxy. It is a console tool that allows interactive examination and modification of HTTP traffic. It differs from mitmdump in that all flows are kept in memory, which means that it's intended for taking and manipulating small-ish samples. It has a web interface that allows you to browse the traffic that has been intercepted.
Visit the official website
Prerequisites
- Homebrew
- Firefox browser
Installation
brew install mitmproxy
Start mitmproxy
mitmproxy -p 9992
Start mitmweb
mitmweb -p 9992
Start mitmdump
mitmdump -p 9992
Mitmproxy setup process
- Open firefox browser (it can managa security certificates out of the system trust store)
- Install FoxyProxy add-on
- Open FoxyProxy and in options set the proxy to Type: HTTP, Hostname: localhost, Port: 9992 and save it with your desired name
- Enable the proxy through FoxyProxy
- Visit http://mitm.it and download the certificate for Firefox
- Open Preferences -> Privacy & Security -> View Certificates -> Authorities -> Import and import the certificate, and allow it to identify websites
- Visit neosb.net and see the request in mitmproxy or mitmweb
Conclusion
You have successfully setup mitmproxy on your system. You can now intercept and modify HTTP/S traffic.
Comments:
Make first impression!