Created
July 1, 2015 20:01
-
-
Save iragsdale/e93ad1307c290df5ae0e to your computer and use it in GitHub Desktop.
Testing sslsplit
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
# 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