mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2535] batch hashes cracking issue #1667
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#1667
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 @watanuoli on GitHub (May 9, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2535
Originally assigned to: @magnumripper on GitHub.
I came across the situation as follows:
Adding two oldoffice type of files and extract the hashes into the a.enc file(2 lines).
6digits.doc:.............
8digits.doc:............
Then I run 2 commands with the separate rules against them. e.g. 6-digits and 8-digits
If I run the 8-digits rules first and cracked 8-digits.doc, then the following command for 6-digits rules report there's no hash left to crack.
If I run the 6-digits command first and then 8-digits commands, all the hashes can be cracked.
Does it caused be the issue of the mechanism of checking the batch hashes crack status?
@magnumripper commented on GitHub (May 9, 2017):
I haven't seen that before. Perhaps your two hashes are "too similar" for JtR to see the difference in all cases - but that would be a bug of course. Would it be possible for you to share the a.enc file? I believe that file is totally free from actual document contents, it's only meta data.
@watanuoli commented on GitHub (May 9, 2017):
@watanuoli commented on GitHub (May 9, 2017):
8.doc password: 56547313
6.doc password: 954124
@watanuoli commented on GitHub (May 9, 2017):
reproduce step:
The first command using 6-digits rules, The second command use 8-digits rules but can not find the hash left to be cracked.
@magnumripper commented on GitHub (May 9, 2017):
Thanks, I can reproduce the problem. Will look into it.
@magnumripper commented on GitHub (May 10, 2017):
@jfoug I'm pretty sure the problem is I got some detail wrong when switching to dyna salt in oldoffice. That's the very commit when this problem was introduced. I just can't see the dang bug. I was always very very confused by the pointer-to-pointer-to-now-you-lost-me involved with dyna salt.
And it's awfully strange: If no hashes are cracked, I can either crack both in one session, in any order. Or I can crack the length-6 one first, then in another session crack the length-8 one. But if cracking just the length-8 hash in a session, subsequent sessions say both are cracked.
And to add further to the weirdness, here's what a
--show leftlooks like after cracking only the length-6 hash:In the last case, both entries show the salt of the length-8 hash.
@magnumripper commented on GitHub (May 11, 2017):
Fixed now. It had nothing to do with dyna salt, it was the use of source() in a salted format. That simply doesn't work.
@watanuoli kudos for a perfect example so we could reproduce the problem.
@watanuoli commented on GitHub (May 12, 2017):
@magnumripper It works! Thanks for your fix.
@solardiz commented on GitHub (May 12, 2017):
On Thu, May 11, 2017 at 12:27:29PM -0700, magnum wrote:
Maybe we can and should have that detected by self-tests? Is this as simple as "source && salt_size"?
@magnumripper commented on GitHub (May 12, 2017):
Did so in same fix ;-)