john the ripper跑多核多cpu

本文涉及的产品
RDS MySQL DuckDB 分析主实例,基础系列 4核8GB
RDS DuckDB + QuickBI 企业套餐,8核32GB + QuickBI 专业版
RDS MySQL DuckDB 分析主实例,集群系列 4核8GB
简介: 普通的john只能跑一个core,有人写了个mpi补丁,能跑满多个核心。   参考 http://hkashfi.

普通的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的测试结果

[root@156 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结果

[root@S3 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
  • 相关实践学习
    每个IT人都想学的“Web应用上云经典架构”实战
    本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
    MySQL数据库入门学习
    本课程通过最流行的开源数据库MySQL带你了解数据库的世界。   相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情: https://www.aliyun.com/product/rds/mysql 
    目录
    相关文章
    |
    NoSQL Redis 开发工具
    Redis性能优化问题之检查 Redis 实例是否启用了透明大页机制,如何解决
    Redis性能优化问题之检查 Redis 实例是否启用了透明大页机制,如何解决
    |
    分布式计算 并行计算 Hadoop
    【云计算与大数据计算】分布式处理CPU多核、MPI并行计算、Hadoop、Spark的简介(超详细)
    【云计算与大数据计算】分布式处理CPU多核、MPI并行计算、Hadoop、Spark的简介(超详细)
    1197 0
    |
    缓存 Linux 芯片
    多核CPU的运行模式详解
    多核CPU的运行模式详解
    1074 0
    多核CPU的运行模式详解
    |
    缓存 iOS开发 芯片
    CPU多核增20%符预期,GPU大涨50%达3万分,苹果M2跑分曝光
    CPU多核增20%符预期,GPU大涨50%达3万分,苹果M2跑分曝光
    817 0
    |
    调度
    【高并发】为何在32位多核CPU上执行long型变量的写操作会出现诡异的Bug问题?看完这篇我懂了!
    我们在32位多核CPU的计算机上以多线程的方式读写long类型的共享变量时,线程已经将变量成功写入了内存,但是重新读取出来的数据和之前写入的数据不一致,这到底是为什么呢?
    531 0
    【高并发】为何在32位多核CPU上执行long型变量的写操作会出现诡异的Bug问题?看完这篇我懂了!
    |
    调度
    【高并发】32位多核CPU并发读写long型数据为何会出现诡异问题?看完这篇我懂了!
    诡异的问题 我们在32位多核CPU的计算机上以多线程的方式读写long类型的共享变量时,线程已经将变量成功写入了内存,但是重新读取出来的数据和之前写入的数据不一致,这到底是为什么呢? 原因分析
    729 0
    【高并发】32位多核CPU并发读写long型数据为何会出现诡异问题?看完这篇我懂了!
    |
    监控 Go Python
    使用go语言及Python语言实战把多核CPU跑满
    一直有个疑问,Python及go能不能把多核CPU跑满,实践一把吧
    2037 0
    |
    缓存
    关于多核 CPU 自旋锁 (spinlock) 的优化
    CPU的总线为铜薄膜,虽然摩尔定律使单位面积晶体管的密度不断增加,但是对于连接导线的电阻却没有明显的下降,导线的RC延迟几乎决定现有CPU性能,因此我们会看到传输数据在CPU的角度来看是个极为沉重的负担。我们看到intel 为了引入更多的CPU核心,从Skylake开始芯片总线由上一代的 ring-bus 转变为 2D-mesh, 虽然2D-mesh为数据提供了更多的迁移路径减少了数据堵塞,但也同
    11893 0
    |
    Linux
    如何利用多核CPU来加速你的Linux命令
    本文介绍利用多核CPU来加速你的Linux命令 — awk, sed, bzip2, grep, wc等等。
    1172 0
    如何利用多核CPU来加速你的Linux命令
    |
    应用服务中间件 nginx Unix
    nginx 关联多核CPU绑定
    Syntax: worker_cpu_affinity cpumask ...; Default: — Context: ...
    3069 1

    热门文章

    最新文章