John the Ripper 是一款用于密码破解的强大工具,支持多种密码哈希算法。以下是一些 John the Ripper 的常用操作:
-
破解密码哈希:
- 使用
john命令和-format选项指定哈希算法,然后提供包含哈希值的文件。
john --format=md5 hashes.txt - 使用
-
使用字典攻击:
- 使用
-wordlist选项指定字典文件进行攻击。
john --format=md5 --wordlist=wordlist.txt hashes.txt - 使用
-
使用规则进行破解:
- 使用
-rules选项指定规则文件,可以应用不同的规则来生成密码组合。
john --format=md5 --wordlist=wordlist.txt --rules=all hashes.txt - 使用
-
强制使用单个 CPU:
- 使用
--fork=0选项强制john使用单个 CPU。
john --fork=0 --format=md5 --wordlist=wordlist.txt hashes.txt - 使用
-
查看进度:
- 使用
-show选项可以查看当前破解的进度。
john --show hashes.txt - 使用
-
保存破解结果:
- 使用
-save选项将破解结果保存到文件中。
john --format=md5 --wordlist=wordlist.txt --rules=all --save=results.txt hashes.txt - 使用
-
增加破解尝试次数:
- 使用
--incremental选项以增量模式破解密码。
john --format=md5 --incremental hashes.txt - 使用
-
使用 GPU 进行加速:
- 如果系统支持 GPU,可以使用
--gpu选项来启用 GPU 加速。
john --format=md5 --wordlist=wordlist.txt --gpu hashes.txt - 如果系统支持 GPU,可以使用
-
破解单个哈希值:
- 可以通过直接提供哈希值来破解单个密码。
john --format=md5 <<< "$hash"
本文详细介绍了JohntheRipper这款密码破解工具,涵盖了使用方法如指定哈希算法、字典攻击、规则应用、CPU/GPU加速以及查看进度和保存结果等操作。
1万+

被折叠的 条评论
为什么被折叠?



