将清理后的 .cap 文件转换为 Hashcat 22000 格式
在本步骤中,你将把清理后的 .cap 文件转换为 Hashcat 可用于破解的格式。
Hashcat 不能直接使用 .cap 文件。它需要提取握手数据并以特定方式进行格式化。对于 WPA/WPA2,这是 Hashcat 模式 22000。我们将使用 hcxtools 套件中的一个工具 hcxpcapngtool 来执行此转换。
命令语法是:
hcxpcapngtool -o <output_hash_file> <input_cleaned.cap>
让我们将 wpa_cleaned.cap 文件转换为一个名为 wpa.hc22000 的 Hashcat 兼容文件。
hcxpcapngtool -o wpa.hc22000 wpa_cleaned.cap
该工具将输出转换摘要:
reading from wpa_cleaned.cap
summary:
file name....................: wpa_cleaned.cap
file type....................: pcap
file hardware information....: 802.11
file network type............: DLT_IEEE802_11 (105)
packets inside...............: 4
skipped packets..............: 0
packets with FCS.............: 0
beacons (with ESSID inside)..: 0
probe requests...............: 0
probe responses..............: 0
association requests.........: 0
association responses........: 0
reassociation requests.......: 0
reassociation responses......: 0
authentications (OPEN SYSTEM): 2
authentications (BROADCOM)...: 0
EAPOL packets................: 2
EAPOL PMKIDs.................: 0
EAPOL M1s....................: 1
EAPOL M2s....................: 1
EAPOL M3s....................: 0
EAPOL M4s....................: 0
best handshakes..............: 1 (ap-less: 0)
1 handshake(s) written to wpa.hc22000
一个新文件 wpa.hc22000 已被创建。让我们使用 cat 命令查看其内容。
cat wpa.hc22000
输出将是单一的长行文本。这是 Hashcat 可以理解的哈希值。
WPA*02*...long string of characters...
此文件现在已准备好与 Hashcat 一起用于密码破解尝试。