centos6.5安装john-1.8.0
系统环境:CentOS release 6.5
john版本:john-1.8.0
官方网站:http://www.openwall.com/john/
安装:
cd /usr/local/src
wget http://www.openwall.com/john/j/john-1.8.0.tar.gz
tar -xf john-1.8.0.tar.gz
cd john-1.8.0/src/
yum -y install gcc gcc-c++ make
make
make linux-x86-64
ls john-1.8.0/run/
使用:
useradd bristol
echo 123456 | passwd --stdin bristol
cp /etc/passwd /etc/shadow .
/usr/local/src/john-1.8.0/run/unshadow passwd shadow > mypasswd
/usr/local/src/john-1.8.0/run/john mypasswd
输出结果,可以看到bristol的密码.
Loaded 2 password hashes with 2 different salts (crypt,generic crypt(3) [?/64])
Press ‘q‘ or Ctrl-C to abort,almost any other key for status
123456 bristol