[GH-ISSUE #697] FMT_NOT_EXACT --show only shows the last crack for each hash #345

Open
opened 2026-10-14 03:02:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @magnumripper on GitHub (Jul 20, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/697

$ cat test.in 
first:$crc32$4ff4f23f.ce6eb863
second:$crc32$fa455f6b.c59b2aeb

$ cat ../run/john.pot 
$crc32$fa455f6b.c59b2aeb:123456
$crc32$fa455f6b.c59b2aeb:bogus
$crc32$fa455f6b.c59b2aeb:fake

$ ../run/john --format=crc32 test.in --show=left
first:$crc32$4ff4f23f.ce6eb863
1 password hash cracked, 1 left

The above is true after 188fdc6. We only show the hash(es) that we found NO candidate for.

However, this problem remains (and was not caused by 188fdc6):

$ ../run/john --format=crc32 test.in --show    
second:fake
1 password hash cracked, 1 left

Currently, only the last crack is shown. Ideally, we'd have this output (not sure what number to show for "cracked" though... 1 or 3? It's actually "1 password hash cracked three times, 1 left"):

$ ../run/john --format=crc32 test.in --show    
second:fake
second:bogus
second:123456
1 password hash cracked, 1 left

This is not trivial given for these formats we'll often have dupe lines like this:

$ cat ../run/john.pot 
$crc32$fa455f6b.c59b2aeb:123456
$crc32$fa455f6b.c59b2aeb:bogus
$crc32$fa455f6b.c59b2aeb:fake
$crc32$fa455f6b.c59b2aeb:bogus
$crc32$fa455f6b.c59b2aeb:fake
$crc32$fa455f6b.c59b2aeb:123456

In that case, we do want such dupes to be suppressed but show the three distinct candidates.

Originally created by @magnumripper on GitHub (Jul 20, 2014). Original GitHub issue: https://github.com/openwall/john/issues/697 ``` $ cat test.in first:$crc32$4ff4f23f.ce6eb863 second:$crc32$fa455f6b.c59b2aeb $ cat ../run/john.pot $crc32$fa455f6b.c59b2aeb:123456 $crc32$fa455f6b.c59b2aeb:bogus $crc32$fa455f6b.c59b2aeb:fake $ ../run/john --format=crc32 test.in --show=left first:$crc32$4ff4f23f.ce6eb863 1 password hash cracked, 1 left ``` The above is true after 188fdc6. We only show the hash(es) that we found NO candidate for. However, this problem remains (and was not caused by 188fdc6): ``` $ ../run/john --format=crc32 test.in --show second:fake 1 password hash cracked, 1 left ``` Currently, only the last crack is shown. Ideally, we'd have this output (not sure what number to show for "cracked" though... 1 or 3? It's actually "1 password hash cracked three times, 1 left"): ``` $ ../run/john --format=crc32 test.in --show second:fake second:bogus second:123456 1 password hash cracked, 1 left ``` This is not trivial given for these formats we'll often have dupe lines like this: ``` $ cat ../run/john.pot $crc32$fa455f6b.c59b2aeb:123456 $crc32$fa455f6b.c59b2aeb:bogus $crc32$fa455f6b.c59b2aeb:fake $crc32$fa455f6b.c59b2aeb:bogus $crc32$fa455f6b.c59b2aeb:fake $crc32$fa455f6b.c59b2aeb:123456 ``` In that case, we _do_ want such dupes to be suppressed but show the three distinct candidates.
Author
Owner

@magnumripper commented on GitHub (Oct 6, 2014):

Maybe we should upgrade this to a bug?

http://www.openwall.com/lists/john-users/2014/10/06/3

<!-- gh-comment-id:58077603 --> @magnumripper commented on GitHub (Oct 6, 2014): Maybe we should upgrade this to a bug? http://www.openwall.com/lists/john-users/2014/10/06/3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#345
No description provided.