Skip to content

Instantly share code, notes, and snippets.

@sunnycmf
Forked from khapota/mitmproxy pf
Created May 9, 2016 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunnycmf/d7b2f6775dff71f88aad82ad9382d848 to your computer and use it in GitHub Desktop.
Save sunnycmf/d7b2f6775dff71f88aad82ad9382d848 to your computer and use it in GitHub Desktop.
/etc/pf.anchors/mitm
rdr pass on en0 inet proto tcp to any port 80 -> 127.0.0.1 port 8080
rdr pass on en0 inet proto tcp to any port 443 -> 127.0.0.1 port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment