Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15612ff7dd252089cae4a504e2ae00f3@smtp.hushmail.com>
Date: Tue, 10 Sep 2013 21:48:33 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: mask mode bug

On 10 sep 2013, at 20:40, magnum <john.magnum@...hmail.com> wrote:
> On 10 sep 2013, at 18:53, Sayantan Datta <std2048@...il.com> wrote:
>> This issues is fixed on fx 8120, A4500M(CPU) and HD7670M. Please test it on 650M too. 
> 
> Excellent, all issues I knew of is gone now *except* one little detail...

After more testing, here's some other issues:

The following makes little sense because it's no mask, just a static word. Yet it should work and not segfault:
$ GWS=$((0x10000)) ../run/john test.hash -form:raw-md5-opencl -ses:masktest -prog=10 -mask=password

Here's some max length tests (will probably wrap horribly in mail):
$ echo -n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | md5 > maxlen.hash 
$ rm -f test.pot && GWS=$((0x10000)) ../run/john -pot:test.pot maxlen.hash -form:raw-md5-opencl -ses:masktest -prog=10 -mask=?a?a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Device 1: GeForce GT 650M 
Local worksize (LWS) 64, global worksize (GWS) 65536
Loaded 1 password hash (Raw-MD5-opencl [MD5 OpenCL (inefficient, development use only)])
Using kernel md5_ccc...
Press 'q' or Ctrl-C to abort, almost any other key for status
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (?)
1g 0:00:00:00 1.470g/s 139.7p/s 1260Kc/s 1260KC/s 

That works fine. Now a mask at first position and another in middle:
$ rm -f test.pot && GWS=$((0x10000)) ../run/john -pot:test.pot maxlen.hash -form:raw-md5-opencl -ses:masktest -prog=10 -mask=?aaa?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Device 1: GeForce GT 650M 
Local worksize (LWS) 64, global worksize (GWS) 65536
Loaded 1 password hash (Raw-MD5-opencl [MD5 OpenCL (inefficient, development use only)])
Using kernel md5_ccc...
Press 'q' or Ctrl-C to abort, almost any other key for status
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (?)
1g 0:00:00:00 1.587g/s 150.7p/s 14325c/s 14325C/s aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.. aa~aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Use the "--show" option to display all of the cracked passwords reliably
Session completed

That worked fine too. Now mask in end of static stuff:
$ rm -f test.pot && GWS=$((0x10000)) ../run/john -pot:test.pot maxlen.hash -form:raw-md5-opencl -ses:masktest -prog=10 -mask=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa?a?a?a

The above hangs until watchdog reboots my laptop.

Mask somewhere in the middle:
$ rm -f test.pot && GWS=$((0x10000)) ../run/john -pot:test.pot maxlen.hash -form:raw-md5-opencl -ses:masktest -prog=10 -mask=a?a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Device 1: GeForce GT 650M 
Local worksize (LWS) 64, global worksize (GWS) 65536
Loaded 1 password hash (Raw-MD5-opencl [MD5 OpenCL (inefficient, development use only)])
Using kernel md5_ccc...
Press 'q' or Ctrl-C to abort, almost any other key for status
0g 0:00:00:00 0g/s 130.1p/s 12363c/s 12363C/s a  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..a  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Session completed

The above fails to find the password.

magnum

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.