- Follow the instructions to install mitmproxy and launch either
mitmproxy
ormitmweb
. If you plan on sniffing traffic from a macOS VM, it is probably preferable to install mitmproxy on the host OS. - Change your proxy settings in macOS to use your local IPv4 address with port 8080 (by default).
System Settings
→Network
→Advanced
→HTTP
andHTTPS
proxies
- Install the mitmproxy certificate by navigating to http://mitm.it/
- Disable SSL verification.
- On mitmweb, this is toggled in
Options
→Don't verify server certificates
- On mitmweb, this is toggled in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Accept CD Wifi (Czech railways) on the command line (if you hate clicking). | |
# http://cdwifi.cz | |
# | |
# Put the script to ~/bin/cdwifi and make sure that export it's on the path: PATH=$PATH:~/bin | |
# Note that if you have a custom DNS set (eg. 8.8.8.8 or 1.1.1.1) they don't resolve | |
# cdwifi.cz. If you don't want to use their DNS set via DHCP for all your traffic | |
# the workaround here is to query their DNS server at the gateway just | |
# for this request. | |
# |