Break SSL Protection Using SSLStrip and Backtrack 5

Break SSL Protection Using SSLStrip and Backtrack 5


Type : Tutorial

Level : Medium, Advanced

Some people asks "Are you sure SSL(Secure Socket Layer) port 443 can be hacked and we know the password sent over the network??"… to break ssl protection using sslstrip?

What is SSL?

For more information about this, you can see my previous tutorial about SSL and HTTPS.

actually if you see my explanation about SSL in my previous post, when we try to break the encryption it’s a little bit hard to break, but here in this tutorial I will explain how to break the SSL encryption without breaking the SSL encryption using Man in the Middle Attack :-).

Man in the Middle Attack

What is Man in the Middle Attack? I also have already write down about this in my previous post about "Hacking Facebook Using Man in the Middle Attack"

Requirement :

1. Linux OS

2. Arpspoof

3. IPTables

4. SSLStrip

5. NetStat

All of this requirements maybe have other dependencies with other packages, I suggest you to use Backtrack Linux for more easier to do this tutorial, because all of the requirement package already installed inside Backtrack Linux(except SSLStrip).

Perform the Attack – Man in the Middle Attack

1. Set your Linux box to make it can forward every incoming port(enable port forwarding).

echo ’1’ > /proc/sys/net/ipv4/ip_forward

This code will let your Linux Backtrack have ability to forward every packet that was not intended for your machine.

2. Know your network gateway

netstat -nr

Break SSL Protection Using SSLStrip and Backtrack 5

For example i’ve already know that my gateway address is

3. Use ARP spoof to perform Man in the Middle Attack

arpspoof -i eth0

a. Change "eth0" to your network card that currently connected to the network. Usually it is eth0 or wlan0.

b. Change "" to your network default gateway.

c. In this tutorial I use arpspoof to entire network. Be careful if your network have a large user connected to it, because it will crash your network and bring your network down.

SSL Strip

Created by Moxie Morlinspike who provides a demonstration of the HTTPS stripping attacks that presented at Black Hat DC 2009. It 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. –Taken from author website

This all happens on the fly, and is practically will invisible to users. The only way to notice is by checking the URL in the address bar where normally it would display HTTPS, it will now display HTTP instead.

Install SSL Strip (optional)

1. Download SSL Strip

2. tar zxvf sslstrip-0.9.tar.gz

3. cd sslstrip-0.9

4. python install

Break SSL Protection Using SSLStrip and Backtrack 5

1. We need to set up a firewall rule (using iptables) to redirect requests from port 80 to port 8080 to ensure our outgoing connections (from SSL Strip) get routed to the proper port.

iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080

2. After finished set up iptables, the next step we need to redirect all network HTTP traffic through our computer using ARPSpoof (don’t forget to enable IP forwarding)

echo ’1’ > /proc/sys/net/ipv4/ip_forward
arpspoof -i eth0

Break SSL Protection Using SSLStrip and Backtrack 5

3. When everything running well, you will see that ARPSpoof capturing network traffic, then the next step you need to start your SSL Strip by opening new terminal(CTRL+ALT+T)

sslstrip -l 8080

"-l" tells the system to listen on specified port.

Break SSL Protection Using SSLStrip and Backtrack 5

Above picture tells that SSL Strip already running and waiting for victim opening SSL URL such as (;; etc)

As a victim I will try to open When I open the page, what I see is looks like below picture

Backtrack 5 SSL Strip tutorial

The URL changed into HTTP. 🙂

4. After SSL Strip capturing enough data, to stop ARPSpoof and SSL Strip just hit CTRL + C. After you stop it, the whole network will be down and cannot be accessed for a while(it shouldn’t take long time), this can happen because ARPSpoof didn’t automatically repopulate the ARP tables with router proper MAC address.

5. Inside the SSL Strip folder there will be a new file created "sslstrip.log" that stores all information that already captured over the HTTP protocol and even the HTTPS. Just take a look to the file using your favorite text editor. Below picture is the content of my sslstrip.log :that already captured victim data when they open

Break SSL Protection Using SSLStrip and Backtrack 5

You can see the plain data of username and password there.


Prevention of SSL Strip Attack

1. If you are on public network (internet cafe, unsecured hotspot, etc) minimalize login into your personal account.

2. Use SSH Tunneling (You can see the tutorial here).

3. Keep your eyes open.

This fake URL address  Break SSL Protection Using SSLStrip and Backtrack 5

Different with this one Break SSL Protection Using SSLStrip and Backtrack 5


Remember This !

Be wise to use this application, and don’t get shocked if this application also can help you go to jail faster if you use for an unintended purpose by law.

Regards : Vishnu Valentino

Share this article if you found it was useful:

Blogger at

See all posts by || Visit Website :