Scripts for mitmproxy to serve files from local drive
Instructions for Mac OS X
-
Get mitmproxy
brew install mitmproxy -
Clone this repo
git clone https://github.com/Olegas/mitmscripts.git -
Set desired adapter in
.adapterfile. If you use ethernet connection setADAPTER="Ethernet", in case WiFi is used - setADAPTER="Wi-Fi" -
Run mitm (it will activate proxy, run mitm, and after you quit mitm will deactivate proxy)
./run_mitm.sh -
Point your browser to mitm.it and follow the instructions how to install certificate to SSL interception
Open local_proxy.py with your favorite text editor and configure hosts and replacements variables.
See comments for more info.
Just run ./proxy_off.sh. Also you can always disable it using system preferences app.
If you already have active Cisco AnyConnect session - disconnect it before starting and configuring mitm. Changes made to system proxy settings while AnyConnect session is active will not be used by clients until AnyConnect is disconnected and connected again.