etc/shadow 登陆口令破解
etc/shadow:
文件的格式为:
查看加密方式
authconfig --test | grep hashing

破解工具:
John the Ripper
John the Ripper是一个流行的口令破解工具,它支持Windows和Linux平台,是一个开源软件。(也有收费版本)
官方地址:http://www.openwall.com/john 可以复制下载链接使用wget下载。
第一步:wget https://www.openwall.com/john/k/john-1.9.0.tar.gz #下载安装包
第二步:tar -xvf john-1.9.0.tar.gz #解压
第三步:cd john-1.9.0/src
第四步:make #找到属于自己的系统

make clean linux-x86-64

第五步:cd ../run/ #编译好之后会产生john等文件
./unshadow /etc/passwd /etc/shadow > password.txt #将shadow文件导入password.txt,也可以直接复制shadow文件中所有字段或第2个字段
第六步:./john password.txt #对散列值进行破解

第七步:cat john.pot #查看破解结果

浙公网安备 33010602011771号