How to: sniff (and decrypt) wifi packets

13 06 2011

Wifi networks are “better” for sniffing than switched ones, because you can capture every packet without any particular attacks (see ManInTheMiddle) modulo information loss.

Software:
- aircrack-ng suite (precisely airodump-ng)
- wireshark

Requirement:
- bssid, channel and encryption key of network (is your conscience clear?)
- wireless card that works in monitor mode

Enable monitor mode:

airmon-ng start <interface>

Start sniffing:

airodump-ng <monitorif> -c <channel> -d <bssid> -w <filename>

When you have captured enough packets, it’s wireshark time!
Open the .cap file with wireshark:

wireshark filename.cap

Go to:
Edit -> Preferences -> Protocols

Search:
IEEE 802.11

Check “Enable decryption“.

Specify the encryption key in the respective field.
Be careful with syntax! See this page:

http://wiki.wireshark.org/HowToDecrypt802.11

Click “Apply” then “OK“.
Now you can understand why open networks are so dangerous!

For lamers:
No, you can’t (well, not so easily) retrieve crypted data!
For this, there are various attack that I’ll not teach :-)

For geek:
See http POST command and guess what happens when you login at an insecure webpage.


Azioni

Informazione

2 risposte

13 06 2011
Vittorio Monaco

Ciao, colgo il tuo invito alle correzioni, visto che anch’io ho conseguito il FCE tempo addietro :D
anzichè switched, direi ‘wired’ per intendere le reti cablate.. e in ogni caso dopo ci va ‘ones’, come pronome per indicare che sempre di reti si tratta
(wifi networks are better for sniffing than wired ones)

without any particular attack..

mentre non ho capito che intendi con ‘modulo information lossy’…

When you’ve captured enough packets, anzichè when you captured, che indica un passato

See this page: anzichè see that page, dato che la pagina è indicata immediatamente dopo..

Now you can understand ‘why’ wireless networks are so dangerous, anzichè because

Forse ritengo più corretto dire (well, not so easily) anzichè (or better, not so easily)

Anzichè think what happens direi ‘imagine what happens’ or ‘wonder what happens’ o ancora più ad indicare il significato.. ‘guess what happens’..

Per il resto direi che va bene… stai seguendo un corso per il First o studi autonomamente?

13 06 2011
Six110

anzichè switched, direi ‘wired’ per intendere le reti cablate

Intendo proprio switched! Anche una rete composta da hub è cablata!

modulo information lossy

Dall’aritmetica modulare… leggilo come “a parte la perdita di informazione”

Grazie delle altre correzioni, come vedi ho aggiornato la pagina!

Seguirò il corso per il first l’anno prossimo, per adesso sto cercando di riprendere manualità, visto che sono abituato solo a leggere.

Lascia un Commento

Fill in your details below or click an icon to log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s




Iscriviti

Get every new post delivered to your Inbox.

Join 409 other followers