john the ripper跑多核多cpu
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
普通的john只能跑一個core,有人寫了個mpi補丁,能跑滿多個核心。
參考 http://hkashfi.blogspot.com/2008/12/how-to-make-johntr-use-all-of-your-cpu.html
其他參考 http://openwall.info/wiki/john/parallelization
john平行計算的集中在 http://download.openwall.net/pub/projects/john/contrib/parallel/
打補丁的指引 http://openwall.info/wiki/john/how-to-extract-tarballs-and-apply-patches
操作如下:
裝mpi環境 用epel源
yum install mpich2* -y
wget http://www.bindshell.net/tools/johntheripper//john-1.7.3.1-all-2-mpi8.tar.gz
tar zxf john-1.7.3.1-all-2-mpi8.tar.gz ; cd john* ; cd src
make generic
echo MPD_SECRETWORD=secret > /etc/mpd.conf
chmod 600 /etc/mpd.conf
mpd –daemon
mpirun -np 8 /root/temp/john-1.7.3.1-mpi8/run/john /root/temp/shadow
非MPI的測試結果
[[email protected] run]# ./john –test
Benchmarking: Traditional DES [128/128 BS SSE2]… DONE
Many salts: 1974K c/s real, 1974K c/s virtual
Only one salt: 1692K c/s real, 1692K c/s virtual
Benchmarking: BSDI DES (x725) [128/128 BS SSE2]… DONE
Many salts: 64384 c/s real, 63746 c/s virtual
Only one salt: 62720 c/s real, 62720 c/s virtual
Benchmarking: FreeBSD MD5 [32/32]… DONE
Raw: 6397 c/s real, 6397 c/s virtual
Benchmarking: OpenBSD Blowfish (x32) [32/32]… DONE
Raw: 393 c/s real, 393 c/s virtual
Benchmarking: Kerberos AFS DES [48/64 4K MMX]… DONE
Short: 320256 c/s real, 320256 c/s virtual
Long: 983552 c/s real, 983552 c/s virtual
Benchmarking: LM DES [128/128 BS SSE2]… DONE
Raw: 10829K c/s real, 10829K c/s virtual
Benchmarking: NT MD4 [128/128 SSE2 + 32/32]… DONE
Raw: 14093K c/s real, 14093K c/s virtual
Benchmarking: Mac OS X 10.4+ salted SHA-1 [32/32]… DONE
Many salts: 2685K c/s real, 2685K c/s virtual
Only one salt: 2373K c/s real, 2349K c/s virtual
Benchmarking: M$ Cache Hash [Generic 1x]… DONE
Many salts: 12868K c/s real, 12868K c/s virtual
Only one salt: 4836K c/s real, 4884K c/s virtual
Benchmarking: Apache MD5 [32/32]… DONE
Raw: 6403 c/s real, 6403 c/s virtual
Benchmarking: HMAC MD5 SSE2 [hmac-md5 SSE2]… DONE
Raw: 3757K c/s real, 3757K c/s virtual
Benchmarking: Post.Office MD5 [STD]… DONE
Many salts: 2547K c/s real, 2547K c/s virtual
Only one salt: 2354K c/s real, 2354K c/s virtual
Benchmarking: Raw MD5 SSE2 [raw-md5 SSE2 16x4]… DONE
Raw: 10018K c/s real, 10018K c/s virtual
Benchmarking: md5_gen(0): md5($p) (raw-md5) SSE2 [md5-gen SSE2 16x4]… DONE
Raw: 10874K c/s real, 10874K c/s virtual
Benchmarking: md5_gen(1): md5($p.$s) (joomla) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 7200K c/s real, 7200K c/s virtual
Only one salt: 5814K c/s real, 5814K c/s virtual
Benchmarking: md5_gen(2): md5(md5($p)) (e107) SSE2 [md5-gen SSE2 16x4]… DONE
Raw: 4215K c/s real, 4215K c/s virtual
Benchmarking: md5_gen(3): md5(md5(md5($p))) SSE2 [md5-gen SSE2 16x4]… DONE
Raw: 2619K c/s real, 2619K c/s virtual
Benchmarking: md5_gen(4): md5($s.$p) (OSC) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 9244K c/s real, 9244K c/s virtual
Only one salt: 7171K c/s real, 7171K c/s virtual
Benchmarking: md5_gen(5): md5($s.$p.$s) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 8191K c/s real, 8191K c/s virtual
Only one salt: 6528K c/s real, 6528K c/s virtual
Benchmarking: md5_gen(6): md5(md5($p).$s) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 12354K c/s real, 12354K c/s virtual
Only one salt: 3626K c/s real, 3626K c/s virtual
Benchmarking: md5_gen(7): md5(md5($p).$s) (vBulletin) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 12467K c/s real, 12467K c/s virtual
Only one salt: 3672K c/s real, 3672K c/s virtual
Benchmarking: md5_gen(8): md5(md5($s).$p) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 3962K c/s real, 3962K c/s virtual
Only one salt: 3539K c/s real, 3539K c/s virtual
Benchmarking: md5_gen(9): md5($s.md5($p)) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 6175K c/s real, 6175K c/s virtual
Only one salt: 3620K c/s real, 3620K c/s virtual
Benchmarking: md5_gen(10): md5($s.md5($s.$p)) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 3716K c/s real, 3716K c/s virtual
Only one salt: 3390K c/s real, 3390K c/s virtual
Benchmarking: md5_gen(11): md5($s.md5($p.$s)) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 3839K c/s real, 3839K c/s virtual
Only one salt: 3448K c/s real, 3448K c/s virtual
Benchmarking: md5_gen(14): md5($s.md5($p).$s) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 5638K c/s real, 5638K c/s virtual
Only one salt: 3430K c/s real, 3430K c/s virtual
Benchmarking: md5_gen(17): phpass ($P$ or $H$) SSE2 [md5-gen SSE2 16x4]… DONE
Many salts: 7920 c/s real, 7920 c/s virtual
Only one salt: 8000 c/s real, 8000 c/s virtual
Benchmarking: PHPass MD5 SSE2 [phpass-MD5 SSE2]… Using phpass mode, by linking to md5_gen(17) functions DONE
Many salts: 8000 c/s real, 8000 c/s virtual
Only one salt: 8000 c/s real, 8000 c/s virtual
Benchmarking: IPB2 MD5 [Invision Power Board 2.x salted MD5]… DONE
Many salts: 2145K c/s real, 2145K c/s virtual
Only one salt: 1317K c/s real, 1317K c/s virtual
Benchmarking: Raw SHA-1 SSE2 [raw-sha1 SSE2]… DONE
Raw: 6749K c/s real, 6816K c/s virtual
Benchmarking: Kerberos v4 TGT [krb4 DES]… DONE
Raw: 1538K c/s real, 1538K c/s virtual
Benchmarking: Kerberos v5 TGT [krb5 3DES (des3-cbc-sha1)]… DONE
Raw: 37337 c/s real, 36967 c/s virtual
Benchmarking: Netscape LDAP SHA SSE2 [SHA-1]… DONE
Raw: 7510K c/s real, 7510K c/s virtual
Benchmarking: Netscape LDAP SSHA SSE2 [salted SHA-1]… DONE
Many salts: 9694K c/s real, 9694K c/s virtual
Only one salt: 6472K c/s real, 6472K c/s virtual
Benchmarking: OpenLDAP SSHA [salted SHA-1]… DONE
Many salts: 2646K c/s real, 2646K c/s virtual
Only one salt: 2437K c/s real, 2437K c/s virtual
Benchmarking: Eggdrop [blowfish]… DONE
Raw: 17220 c/s real, 17220 c/s virtual
Benchmarking: Oracle [oracle]… DONE
Raw: 593890 c/s real, 593890 c/s virtual
Benchmarking: Oracle 11g [oracle11]… DONE
Many salts: 2670K c/s real, 2670K c/s virtual
Only one salt: 2349K c/s real, 2372K c/s virtual
Benchmarking: MYSQL [mysql]… DONE
Raw: 2252K c/s real, 2252K c/s virtual
Benchmarking: MySQL 4.1 double-SHA-1 SSE2 [mysql-sha1 SSE2]… DONE
Raw: 3948K c/s real, 3909K c/s virtual
Benchmarking: Lotus5 [Lotus v5 Proprietary]… DONE
Raw: 170479 c/s real, 170479 c/s virtual
Benchmarking: More Secure Internet Password [RSA MD defined by BSAFE 1.x - Lotus v6]… DONE
Many salts: 120013 c/s real, 120013 c/s virtual
Only one salt: 70956 c/s real, 70956 c/s virtual
Benchmarking: LM C/R DES [netlm]… DONE
Many salts: 322100 c/s real, 322100 c/s virtual
Only one salt: 317335 c/s real, 317335 c/s virtual
Benchmarking: NTLMv1 C/R MD4 DES [netntlm]… DONE
Many salts: 470999 c/s real, 470999 c/s virtual
Only one salt: 451851 c/s real, 451851 c/s virtual
Benchmarking: LMv2 C/R MD4 HMAC-MD5 [netlmv2]… DONE
Many salts: 399277 c/s real, 399277 c/s virtual
Only one salt: 391411 c/s real, 391411 c/s virtual
Benchmarking: NTLMv2 C/R MD4 HMAC-MD5 [netntlmv2]… DONE
Many salts: 334752 c/s real, 338100 c/s virtual
Only one salt: 362683 c/s real, 362683 c/s virtual
Benchmarking: HalfLM C/R DES [nethalflm]… DONE
Many salts: 779548 c/s real, 771829 c/s virtual
Only one salt: 768035 c/s real, 768035 c/s virtual
Benchmarking: MS-SQL SSE2 [ms-sql SSE2]… DONE
Many salts: 10431K c/s real, 10431K c/s virtual
Only one salt: 6848K c/s real, 6848K c/s virtual
Benchmarking: MS-SQL05 SSE2 [ms-sql05 SSE2]… DONE
Many salts: 10502K c/s real, 10502K c/s virtual
Only one salt: 6632K c/s real, 6632K c/s virtual
Benchmarking: EPiServer SID Hashes [SHA-1]… DONE
Many salts: 2958K c/s real, 2958K c/s virtual
Only one salt: 2821K c/s real, 2821K c/s virtual
Benchmarking: PHPS MD5 SSE2 [MD5(MD5($pass).$salt) SSE2]… Using phps mode, by linking to md5_gen(6) functions DONE
Many salts: 12364K c/s real, 12487K c/s virtual
Only one salt: 3650K c/s real, 3650K c/s virtual
Benchmarking: MYSQL_fast [mysql-fast]… DONE
Raw: 18439K c/s real, 18257K c/s virtual
Benchmarking: PIX MD5 SSE2 [pix-md5 SSE2]… DONE
Raw: 9688K c/s real, 9688K c/s virtual
Benchmarking: SAP CODVN G (PASSCODE) [sapg]… DONE
Many salts: 929750 c/s real, 929750 c/s virtual
Only one salt: 853711 c/s real, 853711 c/s virtual
Benchmarking: SAP BCODE [sapb]… DONE
Many salts: 1089K c/s real, 1089K c/s virtual
Only one salt: 922862 c/s real, 922862 c/s virtual
Benchmarking: Netscreen MD5 [NS MD5]… DONE
Raw: 2885K c/s real, 2885K c/s virtual
Benchmarking: HTTP Digest access authentication [HDAA-MD5]… DONE
Many salts: 1061K c/s real, 1061K c/s virtual
Only one salt: 1044K c/s real, 1044K c/s virtual
Benchmarking: generic crypt(3) [?/32]… DONE
Many salts: 112538 c/s real, 113664 c/s virtual
Only one salt: 113376 c/s real, 112253 c/s virtual
8核心MPI結果
[[email protected] run]# mpirun -np 8 ./john –test
Benchmarking: Traditional DES [32/32 BS]… DONE
Many salts: 2353K c/s real, 2371K c/s virtual
Only one salt: 2296K c/s real, 2298K c/s virtual
Benchmarking: BSDI DES (x725) [32/32 BS]… DONE
Many salts: 67648 c/s real, 67648 c/s virtual
Only one salt: 67298 c/s real, 67296 c/s virtual
Benchmarking: FreeBSD MD5 [32/32 X2]… DONE
Raw: 56907 c/s real, 56785 c/s virtual
Benchmarking: OpenBSD Blowfish (x32) [32/32]… DONE
Raw: 2939 c/s real, 2936 c/s virtual
Benchmarking: Kerberos AFS DES [24/32 128K]… DONE
Short: 1328K c/s real, 1329K c/s virtual
Long: 3537K c/s real, 3534K c/s virtual
Benchmarking: LM DES [32/32 BS]… DONE
Raw: 33897K c/s real, 33859K c/s virtual
Benchmarking: NT MD4 [32/32]… DONE
Raw: 68438K c/s real, 67810K c/s virtual
Benchmarking: Mac OS X 10.4+ salted SHA-1 [32/32]… DONE
Many salts: 19279K c/s real, 19262K c/s virtual
Only one salt: 19480K c/s real, 19480K c/s virtual
Benchmarking: M$ Cache Hash [Generic 1x]… DONE
Many salts: 91981K c/s real, 91882K c/s virtual
Only one salt: 40186K c/s real, 40249K c/s virtual
Benchmarking: Apache MD5 [32/32 X2]… DONE
Raw: 49909 c/s real, 50112 c/s virtual
Benchmarking: HMAC MD5 [hmac-md5]… DONE
Raw: 7697K c/s real, 7686K c/s virtual
Benchmarking: Post.Office MD5 [STD]… DONE
Many salts: 18317K c/s real, 18301K c/s virtual
Only one salt: 19929K c/s real, 19988K c/s virtual
Benchmarking: Raw MD5 [raw-md5]… DONE
Raw: 33391K c/s real, 33397K c/s virtual
Benchmarking: IPB2 MD5 [Invision Power Board 2.x salted MD5]… DONE
Many salts: 15534K c/s real, 15523K c/s virtual
Only one salt: 10868K c/s real, 10841K c/s virtual
Benchmarking: Raw SHA-1 [raw-sha1]… DONE
Raw: 18386K c/s real, 18419K c/s virtual
Benchmarking: Kerberos v5 TGT [krb5 3DES (des3-cbc-sha1)]… DONE
Raw: 266932 c/s real, 267030 c/s virtual
Benchmarking: Netscape LDAP SHA [SHA-1]… DONE
Raw: 20908K c/s real, 20908K c/s virtual
Benchmarking: Netscape LDAP SSHA [salted SHA-1]… DONE
Many salts: 20635K c/s real, 20614K c/s virtual
Only one salt: 22408K c/s real, 22464K c/s virtual
Benchmarking: Eggdrop [blowfish]… DONE
Raw: 124849 c/s real, 124756 c/s virtual
Benchmarking: Oracle [oracle]… DONE
Raw: 4242K c/s real, 4246K c/s virtual
Benchmarking: MYSQL [mysql]… DONE
Raw: 14830K c/s real, 14841K c/s virtual
Benchmarking: MySQL 4.1 double-SHA-1 [mysql-sha1]… DONE
Raw: 10194K c/s real, 10184K c/s virtual
Benchmarking: Lotus5 [Lotus v5 Proprietary]… DONE
Raw: 1062K c/s real, 1062K c/s virtual
Benchmarking: More Secure Internet Password [RSA MD defined by BSAFE 1.x - Lotus v6]… DONE
Many salts: 741904 c/s real, 742106 c/s virtual
Only one salt: 585792 c/s real, 584978 c/s virtual
Benchmarking: LM C/R DES [netlm]… DONE
Many salts: 1957K c/s real, 1962K c/s virtual
Only one salt: 2583K c/s real, 2577K c/s virtual
Benchmarking: NTLMv1 C/R MD4 DES [netntlm]… DONE
Many salts: 2903K c/s real, 2912K c/s virtual
Only one salt: 3720K c/s real, 3707K c/s virtual
Benchmarking: LMv2 C/R MD4 HMAC-MD5 [netlmv2]… DONE
Many salts: 2460K c/s real, 2464K c/s virtual
Only one salt: 3214K c/s real, 3210K c/s virtual
Benchmarking: HalfLM C/R DES [nethalflm]… DONE
Many salts: 4858K c/s real, 4858K c/s virtual
Only one salt: 6490K c/s real, 6484K c/s virtual
Benchmarking: MS-SQL [ms-sql]… DONE
Many salts: 17892K c/s real, 17912K c/s virtual
Only one salt: 21546K c/s real, 21530K c/s virtual
Benchmarking: MS-SQL05 [ms-sql05]… DONE
Many salts: 17977K c/s real, 18041K c/s virtual
Only one salt: 22539K c/s real, 22521K c/s virtual
Benchmarking: EPiServer SID Hashes [SHA-1]… DONE
Many salts: 18241K c/s real, 18243K c/s virtual
Only one salt: 23228K c/s real, 23228K c/s virtual
Benchmarking: PHPS MD5 [MD5(MD5($pass).$salt)]… DONE
Many salts: 21571K c/s real, 21509K c/s virtual
Only one salt: 14039K c/s real, 14084K c/s virtual
Benchmarking: MYSQL_fast [mysql-fast]… DONE
Raw: 118199K c/s real, 118324K c/s virtual
Benchmarking: PIX MD5 [pix-md5]… DONE
Raw: 22816K c/s real, 22817K c/s virtual
Benchmarking: SAP CODVN G (PASSCODE) [sapg]… DONE
Many salts: 5702K c/s real, 5694K c/s virtual
Only one salt: 6985K c/s real, 6977K c/s virtual
Benchmarking: SAP BCODE [sapb]… DONE
Many salts: 6807K c/s real, 6826K c/s virtual
Only one salt: 7608K c/s real, 7583K c/s virtual
Benchmarking: Netscreen MD5 [NS MD5]… DONE
Raw: 17558K c/s real, 17598K c/s virtual
順便推薦下openwall的私人字典 http://www.openwall.com/cgi/redirect.cgi?wordlists-dl-1 300 RMB左右,誰出手買了。
You get more content: the huge mangled wordlist is only available on the CD Immediate access to all of the wordlists: they’re uncompressed and usable right off the CD You save time, bandwidth, and hard drive space You can sleep well knowing that you’ve done your part to support the work on this collection As a bonus, the CD has a complete mirror of ftp.openwall.com, including John the Ripper password cracker; this makes for a total of over 600 MB of content