pwnWifi is a bash script designed to automate Wi-Fi penetration testing using various attack modes. The script leverages tools like aircrack-ng
, macchanger
, hcxdumptool
, and hashcat
to perform handshake and PKMID attacks on Wi-Fi networks.
- Handshake Attack: Captures WPA/WPA2 handshakes and attempts to crack them using a wordlist.
- PKMID Attack: Performs a client-less attack to capture PMKID hashes and attempts to crack them.
Before running the script, ensure you have the following tools installed:
aircrack-ng
macchanger
xterm
hcxdumptool
hashcat
rockyou.txt
wordlist (commonly found in/usr/share/wordlists/
)
To install the necessary dependencies, you can use the following commands:
sudo apt-get update
sudo apt-get install aircrack-ng macchanger xterm hcxdumptool hashcat -y
If you do not have the wordlist rockyou.txt
:
Run the script with root privileges:
sudo ./pwnWifi.sh -a [Attack Mode] -n [Network Interface]
-a
: Attack mode (Handshake
orPKMID
)-n
: Network interface name (e.g.,wlan0
)
sudo ./pwnWifi.sh -a Handshake -n wlan0
To display the help panel, use the -h
option:
sudo ./pwnWifi.sh -h
This script is intended for educational purposes only. Unauthorized use of this script to attack networks without permission is illegal and unethical. Use responsibly.
- Osman Tunahan ARIKAN | Cyber Security Expert