本文最后更新于 2025年11月9日 晚上
书接上文
,最近又发现了一个新的软件:hashcat,和
Aircrack-ng 里的 WPA 密码破解器相比,它的速度更快,功能更多,且支持 GPU
加速。这个项目的 Github 仓库
里写的对它自己的介绍也很自信: hashcat is the world's fastest and
most advanced password recovery utility ,哈哈。
把 cap 文件转换成 hashcat
支持的格式
1
| hcxpcapngtool -o Wi-Fi_capture-01.hc22000 Wi-Fi_capture-01.cap
|
使用 hashcat 破解密码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| hashcat -m 22000 -a 0 Wi-Fi_capture-01.hc22000 ~/phone_numbers_dict.txt
hashcat -m 22000 -a 3 Wi-Fi_capture-01.hc22000 ?l?l?l?d?d?d?d?d
hashcat -m 22000 -a 1 Wi-Fi_capture-01.hc22000 ~/phone_numbers_dict.txt ~/BaiJiaXing_pinyin.txt hashcat -m 22000 -a 1 Wi-Fi_capture-01.hc22000 ~/BaiJiaXing_pinyin.txt ~/phone_numbers_dict.txt
hashcat -m 22000 -a 6 Wi-Fi_capture-01.hc22000 ~/phone_numbers_dict.txt ?l?l hashcat -m 22000 -a 6 Wi-Fi_capture-01.hc22000 ~/phone_numbers_dict.txt ?u?u hashcat -m 22000 -a 7 Wi-Fi_capture-01.hc22000 ?l?l ~/phone_numbers_dict.txt hashcat -m 22000 -a 7 Wi-Fi_capture-01.hc22000 ?u?u ~/phone_numbers_dict.txt
hashcat -m 22000 -a 6 Wi-Fi_capture-01.hc22000 ~/phone_prefix_dict.txt ?d?d?d?d
|
常用参数释义:
1 2 3 4 5 6 7
| -w 2 -a 0 -a 1 -a 3 -a 6 -a 7 -D 1
|
掩码:
1 2 3 4 5 6 7 8
| - ?l = abcdefghijklmnopqrstuvwxyz - ?u = ABCDEFGHIJKLMNOPQRSTUVWXYZ - ?d = 0123456789 - ?h = 0123456789abcdef - ?H = 0123456789ABCDEF - ?s = «space»!" - ?a = ?l?u?d?s - ?b = 0x00 - 0xff
|