一、安装John the Ripper
下载:wget http://www.openwall.com/john/k/john-1.9.0.tar.gz
解压:tar -xvf john-1.8.0.tar.gz
进入src目录:cd john-1.9.0/src
make
根据自己的系统版本进行选择

编译成功会在run目录下生成john可执行文件

二、破解过程
使用 ./unshadow 把想破解的 shadow 文件和 passwd 文件导入到 run 目录下的 new.txt:

对文件进行破解:./john new.txt

查看存储的破解结果:cat john.pot

本文介绍了如何下载、编译并使用John the Ripper工具来破解Linux系统的shadow和passwd文件。通过运行'unshadow'命令合并文件,然后利用john进行暴力破解。最后,通过'john.pot'查看破解结果。
4413





