1. 安装john

点击(此处)折叠或打开

  1. apt-get install john
2. 生成要破解的文件。

点击(此处)折叠或打开

  1. unshadow /etc/passwd /etc/shadow > ./file_crack
3. 下载字典

点击(此处)折叠或打开

  1. wget http://downloads.skullsecurity.org/passwords/john.txt.bz2
4. 开始破解,这时候奇怪的事情发生了。

点击(此处)折叠或打开

  1. root@ubuntu:~/.john# john --wordlist=/usr/share/john/password.lst ./file_crack
  2. Loaded 2 password hashes with 2 different salts (crypt, generic crypt(3) [?/64])
  3. Press 'q' or Ctrl-C to abort, almost any other key for status
  4. 0g 0:00:00:28 100% 0g/s 123.6p/s 247.2c/s 247.2C/s !@#$%..sss
  5. Session completed
  6. root@ubuntu:~/.john# john --show ./file_crack
  7. 0 password hashes cracked, 2 left
  8. root@ubuntu:~/.john# ^C
  9. root@ubuntu:~/.john# john --wordlist=john.txt.bz2 file_crack
  10. Loaded 2 password hashes with 2 different salts (crypt, generic crypt(3) [?/64])
  11. Press 'q' or Ctrl-C to abort, almost any other key for status
  12. 0g 0:00:00:00 100% 0g/s 62.12p/s 124.2c/s 124.2C/s BZh91AY&SYU??.?
  13. Session completed
  14. root@ubuntu:~/.john#
  15. root@ubuntu:~/.john# john --show ./file_crack
  16. 0 password hashes cracked, 2 left
5.问题到底出在哪里?

10-12 15:09
查看更多