单词列表模式是最简单的破解模式。我们需要指定单词列表。 我们将根据默认规则损坏指定的单词列表。这意味着单词列表中的单词将因用法而改变。
null
单词表不应包含会降低效率的重复项。为了使事情更有效率,单词表可以以排序的方式提供。
排序字表
单词表可以像下面这样排序,以使John更快。
$ tr A-Z a-z < SOURCE | sort -u > TARGET
Linux示例
我们可以使用单词表来破解影子文件。
$ john --wordlist wordlist.txt unshadowed Warning: detected hash type "sha512crypt", but the string is also recognized as "crypt" Use the "--format=crypt" option to force loading these as that type instead Using default input encoding: UTF-8 Loaded 2 password hashes with 2 different salts (sha512crypt, crypt(3) $6$ [SHA512 128/128 SSE2 2x]) Press 'q' or Ctrl-C to abort, almost any other key for status 123456 (ismail)Session completed
- –单词表 将设置单词列表文件。 -w型 可以用作缩写。
从背景开始
破解密码需要花费大量时间。有时我们可能想关闭约翰跑步的终点站,但却想让约翰跑步。linux中的解决方案是在后台运行john,如下所示。
$ john --wordlist=all.lst --rules mypasswd &
- & 在后台运行john从终端分离
在后台运行时查看john的状态。
$ john --status 0g 0:00:00:03 2/3 0g/s 285.0p/s 285.0c/s 285.0C/s
- –状态 在背景中显示约翰的状态
相关文章: Linux SSH服务器(sshd)配置和安全选项示例
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END