Skip to content

Instantly share code, notes, and snippets.

@iragsdale
Created July 1, 2015 20:01
Show Gist options
  • Save iragsdale/e93ad1307c290df5ae0e to your computer and use it in GitHub Desktop.
Save iragsdale/e93ad1307c290df5ae0e to your computer and use it in GitHub Desktop.
Testing sslsplit
# enable port forwarding
sysctl net.inet.ip.forwarding=1
sysctl net.inet.ip.fw.enable=1
sysctl net.inet.ip.fw.verbose=1
# divert traffic
echo rdr pass on en0 proto tcp from 192.168.33.241/32 to any port 143 -> 127.0.0.1 port 10143 >> ./pfrules
echo rdr pass on en0 proto tcp from 192.168.33.241/32 to any port 993 -> 127.0.0.1 port 10993 >> ./pfrules
pfctl -ef ./pfrules
# launch sslsplit
sslsplit -k ~/.mitmproxy/mitmproxy-ca.pem -l connect.log -L connectdata.log ssl 127.0.0.1 10993 tcp 127.0.0.1 10143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment