mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1798] Major bug in raw-md5-opencl #1202
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magnumripper on GitHub (Oct 3, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1798
Originally assigned to: @sayan1an on GitHub.
This was with
7869a019eor so, running Titan X.Wall clock time was 9:39 for a total wall clock speed of 1283 Mp/s.
oclHashcat does the exact same task a little faster (7:20, wall clock 8:03) and ends at 1762 Mp/s (wall clock 1538 Mp/s). What's more important, the number of cracked hashes differ: It cracks 883802 of them.
While investigating that, the first thing I noticed was we actually only got 883802 entries in JtR's pot file. Second, I also found that a few hundred hashes differed in the pot files, for example:
"-" is JtR and is incorrect. "+" is oclHashcat. Position of error varies but it is always in second word.
I haven't checked other formats for similar bug.
@magnumripper commented on GitHub (Oct 3, 2015):
Oh BTW I haven't yet tried any other device or driver version. It could be a driver bug of some sort.
@sayan1an commented on GitHub (Oct 4, 2015):
Please give me the recipe to generate 25m hashes that you're using.
@magnumripper commented on GitHub (Oct 4, 2015):
Not sure where I got them (might be from https://www.korelogic.com/InfoSecSouthwest2012_Ripe_Hashes.html) but you could generate them from rockyou.lst or whatever. That's 14M hashes, if you need more just generate md4 too and use as "uncrackable" ones for md5.
@magnumripper commented on GitHub (Oct 4, 2015):
It seems I can't reproduce this on super.
@magnumripper commented on GitHub (Oct 4, 2015):
I need to revisit that machine I used and see what driver version it had.
@magnumripper commented on GitHub (Oct 4, 2015):
I don't even get those "128 bit add overflow. in file:bt_hash_type_128.c, line:32." at all now - was something changed? I did not use the same hash file now though, maybe the one I used had some odd property.
@magnumripper commented on GitHub (Oct 4, 2015):
With another file, I could reproduce on super:
You can copy the file from ~magnum/PUBLIC/25m_md5.in, it's from that "InfoSecSouthwest" stuff. It contains LOTS of crap (garbage, hexified text etc) which explains why your hash table complains. Still, I get an other output than I got on that other host.
@sayan1an commented on GitHub (Oct 4, 2015):
While, 'Progress is too slow!! trying next table size.' is acceptable but 'Error building tables: Loaded hash Idx:9046928, No. of Collosions:2' is not. I'll investigate and fix.
@magnumripper commented on GitHub (Oct 4, 2015):
I now confirmed same problem exist using the Tahiti, so it's not a driver bug. Also, it seems it's the very same candidates that gets the wrong hash recorded. Yet the output from Tahiti and the output from Titan X is not exactly the same.
@magnumripper commented on GitHub (Oct 4, 2015):
I tried testing MD4 as well but for some reason the speed is only 10% of raw-md5?
@magnumripper commented on GitHub (Oct 4, 2015):
This is interesting: The nvidia just stores some hashes with some bits flipped, like this:
...while the AMD stores the correct one and a number of incorrect ones:
Even stranger, the above only happens for the "test" hash. All other hashes are just incorrectly reported for AMD just like for nvidia. And this happens only for about 30 hashes out of about a million cracked. AND it's the same 30 that are failing.
@sayan1an commented on GitHub (Oct 5, 2015):
I have found the issue. But I intend to merge hash checking for md4/md5/nt before fixing it. It's just that I don't check full hash on gpu. Only the first two words are checked. I'm more worried about the errors like 'Error building table' which you reported in your first test.
@sayan1an commented on GitHub (Oct 5, 2015):
Is this the result of a single session? What I don't understand in the first place is how 'test' password is generated so many times ?
@magnumripper commented on GitHub (Oct 5, 2015):
Yeah it is from a single session. That hash is also among the test vectors... could that somehow interfere?
@magnumripper commented on GitHub (Oct 5, 2015):
I had a look at my original "25m_md5.in". It turns out that file contained a whole lot of pure garbage, like:
Removing all hashes with six or more 0's or f's in a row (there were 14300 of them which is more than 20x more than statistically plausible if I did the math right), plus running with --reject-printable1 (which rejected 2300 more lines of garbage data) fixed the problem (no more "add overflow"). Just doing either of these things was not enough, I had to do both.
So to sum it up, the "add overflow" part of this issue is probably not something you need to address - it was simply bad input and I reckon a few hash buckets were over-booked or something like that. Even core complained with "Warning: excessive partial hash collisions detected".
1 The --reject-printable option will reject any hash where the full decoded binary (in this case 16 bytes) passes isprint(), which is highly unlikely for a real hash...
@magnumripper commented on GitHub (Oct 15, 2015):
@Sayantan2048 if you won't fix this shortly, can you please point me to how to fix it? I don't like having this bug in here for long.