Skip to main content

Overview

Evil Twin attacks involve creating a rogue AP that impersonates a legitimate network. Clients probing for a known network can be lured to connect to the fake AP, exposing their handshake, credentials, or session tokens.

Capture Handshake from Offline Network

If a network is not currently in range but clients are probing for it, hostapd-mana can impersonate the AP and capture the WPA2 handshake when a client connects. hostapd.conf:
Launch the rogue AP:
Stop with CTRL+C when AP-STA-POSSIBLE-PSK-MISMATCH appears, the handshake is captured.

Crack Captured Handshake with Hashcat

Convert .hccapx to mode 22000 format:
Legacy mode (if 22000 is unavailable):

Captive Portal Attack (eaphammer)

Clients probing for open networks can be directed to a rogue AP with a captive portal that steals credentials via a fake login page.
Deauthenticate the target client in parallel to force reconnection:

Hostile Portal Attack (eaphammer + Responder)

Captures NTLMv2 hashes from Windows clients by serving a hostile portal that triggers automatic authentication.
Deauthenticate in parallel:
Extract and crack the NTLMv2 hash:

MAC Spoofing to Bypass Captive Portal

If a captive portal requires authentication but a connected client already has an active session, spoofing their MAC bypasses the portal. Identify a connected client MAC via airodump-ng, then:
Reconnect with wpa_supplicant and request an IP: