#John the Ripperphp
##John 包描述mysql
John the Ripper 既功能豐富又運行快速。 它在一個程序中結合了幾種破解模式,而且能夠根據您的特定需求進行全面地配置(你甚至可使用支持C的子集的內置編譯器來設計一個自定義的破解模式)。 此外,John可使用幾種不一樣的平臺,使您可以在任何地方使用相同的破解方法(您甚至能夠繼續進行已經在另外一個平臺上啓動的破解會話)。linux
革新的是,John 支持(並自動檢測)如下 Unix crypt(3)散列類型:基於DES的傳統類型,「bigcrypt」,基於DES擴展的BSDI,基於MD5的FreeBSD(也用於Linux和Cisco IOS) 和基於Blowfish的OpenBSD(如今也在某些Linux發行版上使用,而且受Solaris的最新版本的支持),另外,還革新地支持Kerberos / AFS和Windows LM(基於DES)的散列,以及基於DES的跳碼。git
當在具備glibc 2.7+的Linux發行版上運行時,藉助可選的OpenMP並行化(須要GCC 4.2+,須要在編譯時經過取消註釋Makefile附近的正確的OMPFLAGS行來顯式啓用),John 1.7.6+還支持(和自動檢測)SHA-crypt哈希值(實際上由Fedora和Ubuntu的最新版本使用)。web
一樣,當運行在最新版本的Solaris上時,John 1.7.6+支持並自動檢測SHA-crypt和SunMD5散列,而且還可使用可選的OpenMP並行化(須要GCC 4.2+或最近的Sun Studio,須要在編譯時經過 對Makefile開頭附近對應的OMPFLAGS行取消註釋,並在運行時將OMP_NUM_THREADS環境變量設置爲所需的線程數的方式 來顯式啓用)。算法
John Ripper Pro增長了對Windows NTLM(基於MD4)和Mac OS X 10.4+鹽化SHA-1散列的支持。sql
「社區加強」-jumbo版本增長了許多更多密碼散列類型的支持,包括Windows NTLM(基於MD4),Mac OS X 10.4-10.6鹽化SHA-1散列,Mac OS X 10.7鹽化SHA-512散列,原始MD5和 SHA-1,任意的基於MD5的「Web應用程序」密碼哈希類型,SQL數據庫服務器(MySQL,MS SQL,Oracle)和某些LDAP服務器使用的哈希值,OpenVMS上使用的幾種哈希類型,Eggdrop IRC bot的密碼哈希 ,以及許多其餘散列類型,以及諸如OpenSSH私鑰,S / Key skeykeys文件,Kerberos TGT,PDF文件,ZIP(經典PKZIP和WinZip / AES)和RAR存檔之類的許多非散列。shell
與舊的破解工具不一樣,John一般不會使用crypt(3)風格的例程。 相反,它有本身的高度優化的模塊,用於不一樣的哈希類型和處理器架構。 使用的一些算法,如位圖DES,不能在crypt(3)API中實現; 他們須要一個更強大的界面,如John中使用的界面。 此外,還有幾種處理器架構的彙編語言程序,最重要的是x86-64和x86 with SSE2。數據庫
資料來源:http://www.openwall.com/john/doc/django
John the Ripper主頁|Kali John the Ripper倉庫
-做者:Solar Designer -許可證:GPLv2
##John 包中包含的工具 ###mailer - 給密碼被破解的用戶發送電子郵件
root@kali:~# mailer Usage: /usr/sbin/mailer PASSWORD-FILE
##john - John the Ripper密碼破解器
root@kali:~# john John the Ripper password cracker, ver: 1.7.9-jumbo-7_omp [linux-x86-sse2] Copyright (c) 1996-2012 by Solar Designer and others Homepage: http://www.openwall.com/john/ Usage: john [OPTIONS] [PASSWORD-FILES] --config=FILE use FILE instead of john.conf or john.ini --single[=SECTION] "single crack" mode --wordlist[=FILE] --stdin wordlist mode, read words from FILE or stdin --pipe like --stdin, but bulk reads, and allows rules --loopback[=FILE] like --wordlist, but fetch words from a .pot file --dupe-suppression suppress all dupes in wordlist (and force preload) --encoding=NAME input data is non-ascii (eg. UTF-8, ISO-8859-1). For a full list of NAME use --list=encodings --rules[=SECTION] enable word mangling rules for wordlist modes --incremental[=MODE] "incremental" mode [using section MODE] --markov[=OPTIONS] "Markov" mode (see doc/MARKOV) --external=MODE external mode or word filter --stdout[=LENGTH] just output candidate passwords [cut at LENGTH] --restore[=NAME] restore an interrupted session [called NAME] --session=NAME give a new session the NAME --status[=NAME] print status of a session [called NAME] --make-charset=FILE make a charset file. It will be overwritten --show[=LEFT] show cracked passwords [if =LEFT, then uncracked] --test[=TIME] run tests and benchmarks for TIME seconds each --users=[-]LOGIN|UID[,..] [do not] load this (these) user(s) only --groups=[-]GID[,..] load users [not] of this (these) group(s) only --shells=[-]SHELL[,..] load users with[out] this (these) shell(s) only --salts=[-]COUNT[:MAX] load salts with[out] COUNT [to MAX] hashes --pot=NAME pot file to use --format=NAME force hash type NAME: afs bf bfegg bsdi crc32 crypt des django dmd5 dominosec dragonfly3-32 dragonfly3-64 dragonfly4-32 dragonfly4-64 drupal7 dummy dynamic_n epi episerver gost hdaa hmac-md5 hmac-sha1 hmac-sha224 hmac-sha256 hmac-sha384 hmac-sha512 hmailserver ipb2 keepass keychain krb4 krb5 lm lotus5 md4-gen md5 md5ns mediawiki mscash mscash2 mschapv2 mskrb5 mssql mssql05 mysql mysql-sha1 nethalflm netlm netlmv2 netntlm netntlmv2 nsldap nt nt2 odf office oracle oracle11 osc pdf phpass phps pix-md5 pkzip po pwsafe racf rar raw-md4 raw-md5 raw-md5u raw-sha raw-sha1 raw-sha1-linkedin raw-sha1-ng raw-sha224 raw-sha256 raw-sha384 raw-sha512 salted-sha1 sapb sapg sha1-gen sha256crypt sha512crypt sip ssh sybasease trip vnc wbb3 wpapsk xsha xsha512 zip --list=WHAT list capabilities, see --list=help or doc/OPTIONS --save-memory=LEVEL enable memory saving, at LEVEL 1..3 --mem-file-size=SIZE size threshold for wordlist preload (default 5 MB) --nolog disables creation and writing to john.log file --crack-status emit a status line whenever a password is cracked --max-run-time=N gracefully exit after this many seconds --regen-lost-salts=N regenerate lost salts (see doc/OPTIONS) --plugin=NAME[,..] load this (these) dynamic plugin(s)
##unafs - 對用戶弱口令進行警告的腳本
root@kali:~# unafs Usage: unafs DATABASE-FILE CELL-NAME
##unshadow - 結合passwd和shadow文件
root@kali:~# unshadow Usage: unshadow PASSWORD-FILE SHADOW-FILE
##unique - 從單詞列表中刪除重複項
root@kali:~# unique Usage: unique [-v] [-inp=fname] [-cut=len] [-mem=num] OUTPUT-FILE [-ex_file=FNAME2] [-ex_file_only=FNAME2] reads from stdin 'normally', but can be overridden by optional -inp= If -ex_file=XX is used, then data from file XX is also used to unique the data, but nothing is ever written to XX. Thus, any data in XX, will NOT output into OUTPUT-FILE (for making iterative dictionaries) -ex_file_only=XX assumes the file is 'unique', and only checks against XX -cut=len Will trim each input lines to 'len' bytes long, prior to running the unique algorithm. The 'trimming' is done on any -ex_file[_only] file -mem=num. A number that overrides the UNIQUE_HASH_LOG value from within params.h. The default is 21. This can be raised, up to 25 (memory usage doubles each number). If you go TOO large, unique will swap and thrash and work VERY slow -v is for 'verbose' mode, outputs line counts during the run ``` ##unshadow 使用示例 結合提供的passwd*(passwd)*和shadow*(shadow)*(shadow)並將它們重定向到一個文件*(> unshadowed.txt)*:
root@kali:~# unshadow passwd shadow > unshadowed.txt
##john 使用示例 使用一張單詞列表*(-wordlist = /usr/share/john/password.lst)*,應用修改的規則*(-rules)*並嘗試破解給定文件*(unshadowed.txt)*中的密碼散列:
root@kali:~# john --wordlist=/usr/share/john/password.lst --rules unshadowed.txt 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 Loaded 1 password hash (sha512crypt [64/64]) toor (root) guesses: 1 time: 0:00:00:07 DONE (Mon May 19 08:13:05 2014) c/s: 482 trying: 1701d - andrew Use the "--show" option to display all of the cracked passwords reliably
##unique使用示例 使用詳細模*(-v)*,讀取密碼列表*(-inp = allwords.txt)*,並只將惟一的單詞保存到文件*(uniques.txt)*中:
root@kali:~# unique -v -inp=allwords.txt uniques.txt Total lines read 6089 Unique lines written 5083
@(標籤)[passwords](http://tools.kali.org/tag/passwords) *** ##相關文章 [gpp-decrypt](http://tools.kali.org/password-attacks/gpp-decrypt) [WebScarab](http://tools.kali.org/web-applications/webscarab) [TrueCrack](http://tools.kali.org/password-attacks/truecrack)