Wi-Fi WPA Reconnaissance

4-Way handshake

  1. The AP sends the ANonce (authenticator nonce) in an EAPOL-key message to the client.
  2. The client generates an SNonce (Supplicant nonce), derives the Pairwise Transient Key (PTK) from the Pairwise Master Key (PMK) + ANonce + SNonce + AP MAC + Client MAC and sends the SNonce plus a MIC in an EAPOL-Key message to the AP.
  3. The AP derives the same PTK, to validate the message verifies the client's MIC, installs the PTK and sends an EAPOL-Key message with it's own MIC and key installation/ack flags to the client.
  4. The client verifies the AP MIC, installs the PTK and sends a final EAPOL-Key ACK to confirm successful key installation.

Pairwise Master Key

PMK = PBKDF2(HMAC-SHA, PSK, SSID, 4096, 256)

Pairwise Transient Key

PTK = PMK + ANonce + SNonce + AP MAC + Client MAC

Message Integrity Codes

MIC = HMAC-SHA1(PMK, ANonce || SNonce || AP MAC || Client MAC || Message Length)

Capture the PSK methods