Networking – How to decrypt WPA2 encrypted packets using Wireshark

decryptwireless-networkingwiresharkwpa2-psk

I am trying to decrypt my WLAN data with Wireshark. I have already read and tried eveything on this page but without any success (well, I tried the example dump on that page and succeeded, but I fail with my own packets).

I caught the four-way handshake from another client connecting to the network.

My network info is as follows:

  • WPA2-PSK Personal with AES encryption
  • SSID: test
  • Passphrase: mypass
  • The above info would give this preshared key: 58af7d7ce2e11faeab2278a5ef45de4944385f319b52a5b2d82389faedd3f9bf

In Wireshark in the Preferences–>IEEE 802.11 I have set this line as Key 1:

wpa-psk:58af7d7ce2e11faeab2278a5ef45de4944385f319b52a5b2d82389faedd3f9bf

I have tried the different options of "Ignore the protection bit" but none works.

What could I have missed?

EDIT
This is a really STRANGE thing! I can now decrypt the packets that are going from/to my other laptop. But the packets that go from/to my iPad are NOT decrypted. Why can not the packets from my iPad be decrypted? It is on the same network.

Best Answer

WPA uses a nonce (random number used just for this session) to provide freshness (so the same key isn't used every time). Unlike WEP, the messages for different hosts are encrypted using a different key. Your iPad is using a completely different key from your laptop to en/decrypt the packets (these keys are generated from the permanent master key and other info each time you connect to the network). See this wikipedia article for further details and as a starting point.

Related Question