使用 --potfile-disable 从输入中移除已破解的哈希值
在此步骤中,你将了解 hashcat 如何自动避免重复破解哈希值,以及如何使用 --potfile-disable 标志来覆盖此行为。
首先,让我们看看当你再次尝试运行相同的破解任务时会发生什么。由于哈希值已存在于 potfile 中,hashcat 应该会识别这一点并立即完成。
hashcat -m 0 -a 0 hashes.txt wordlist.txt --force
注意输出。Hashcat 将报告所有哈希值都在 potfile 中找到,并且不会重新处理它们。
...
All hashes found in potfile!
NOTE: All hashes loaded from file hashes.txt are already cracked and were skipped.
To re-crack these hashes, you need to remove them from the potfile.
...
现在,如果你 想 重新破解哈希值,也许是为了基准测试目的或测试不同的攻击模式,该怎么办?你可以使用 --potfile-disable 标志。这会告诉 hashcat 完全忽略 potfile 的读取和写入。
再次运行命令,但这次添加该标志:
hashcat -m 0 -a 0 hashes.txt wordlist.txt --force --potfile-disable
这次,hashcat 将执行完整的破解操作,因为它会忽略 potfile。你将看到状态进度和最后的“Cracked”状态。
...
Session..........: hashcat
Status...........: Cracked
...
Cracked (1/1) hashes, (1/1) digests
...
--potfile-disable 是针对特定情况的特定工具。在大多数情况下,你希望利用 potfile 来节省时间。