Skip to content

Instantly share code, notes, and snippets.

@Cypheriel
Cypheriel / $mitmproxy for macOS internal services.md
Last active June 4, 2024 17:12
Guide for installing and setting up both mitmproxy and Frida mainly for use with sniffing HTTP(S) traffic internal to macOS.

Install mitmproxy

  1. Follow the instructions to install mitmproxy and launch either mitmproxy or mitmweb. If you plan on sniffing traffic from a macOS VM, it is probably preferable to install mitmproxy on the host OS.
  2. Change your proxy settings in macOS to use your local IPv4 address with port 8080 (by default).
    • System SettingsNetworkAdvancedHTTP and HTTPS proxies
  3. Install the mitmproxy certificate by navigating to http://mitm.it/
  4. Disable SSL verification.
    • On mitmweb, this is toggled in OptionsDon't verify server certificates

Install Frida

@bzamecnik
bzamecnik / cdwifi.sh
Last active June 28, 2024 20:47
Accept ČD Wifi on the command line (if you hate clicking). http://cdwifi.cz
#!/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.
#