openwall / john-tests

Test Suite for John the Ripper
24 stars 15 forks source link

bcrypt-opencl fails on TS #80

Closed claudioandre-br closed 7 years ago

claudioandre-br commented 7 years ago

http://www.openwall.com/lists/john-dev/2017/02/24/1

The Problem (1500 is expected)

Execute john: ../run/john -ses=tst-  -dev=7 -pot=tst-.pot BF_tst.in --wordlist=tst-pw-40.dic -form=bcrypt-opencl 2>&1 >/dev/null

Cmd_data = 
Device 7: GeForce GTX TITAN
Press 'q' or Ctrl-C to abort, almost any other key for status
300g 0:00:00:04 DONE (2017-03-01 00:24) 63.55g/s 6.567p/s 65.67c/s 9851C/s GPU:48C Skippin� an�*..12qw34er

To confirm the problem goes away when I change the wordlist, run:

../run/john -ses=tst-  -dev=7 -pot=tst-.pot BF_tst.in --wordlist=pw.dic -form=bcrypt-opencl

So, a fix is needed on TS. Something like this does the trick:

sed -i -e 's/40,Bcrypt/1000,Bcrypt/g' /jtrts.dat
magnumripper commented 7 years ago

But this worked before, didn't it? I wonder what caused this.

claudioandre-br commented 7 years ago

Since I put TS on CI recently, I'm can't say too much about bcrypt.

And note I'm running TS for OpenCL. In fact, I suppose I never did this before.

magnumripper commented 7 years ago

OK sed -i -e 's/40,Bcrypt/200,Bcrypt/g' jtrts.dat is enough. I will commit that.

magnumripper commented 7 years ago

I see now 200 is the number used for CPU format also.

$ grep Bcrypt jtrts.dat
,(X),(core),200,Bcrypt,pw,BF_tst.in,bcrypt,N,X,(1500),(1500)
,(X),(core),200,Bcrypt_broken,pw,BFx_tst.in,bcrypt,N,X,(1500),(1500)
(opencl)(gpu),(X),(core),200,Bcrypt-opencl,pw,BF_tst.in,bcrypt-opencl,Y,X,(1500),(1500)
(opencl)(gpu),(X),(core),200,Bcrypt_broken-opencl,pw,BFx_tst.in,bcrypt-opencl,Y,X,(1500),(1500)