mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1045] BFEgg: -fork sometimes puts multiple entries into .pot file, that are different. #644
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#644
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 @jfoug on GitHub (Feb 8, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1045
Does not happen often, and I am not sure it happens for all OS's.
I have seen this on cygwin.
Here is an example:
After some digging, I found this:
So I have +V6ZOx0rVGWT0 input being found (as seen by entries in the john.pot file) for 1 and 11
The real value is 1.
Note, I am only seeing this on cygwin for sure, and only on -fork code. This was run under the TS, but it should be pure john, since all the TS is doing is running john. john creates the .pot file totally on it's own.
@magnumripper commented on GitHub (Feb 8, 2015):
Have you seen other formats than BFegg do this?
@magnumripper commented on GitHub (Feb 8, 2015):
This seems to be a BFegg-specific problem. Also, TS is not very clever here:
Why did the .pot check consider 1501 to be an OK figure after cracking 1500? Since it did, -stoponerror did not kick in so I have no tst.pot file to examine.
@magnumripper commented on GitHub (Feb 8, 2015):
Probably a buffer cleaning issue.
@magnumripper commented on GitHub (Feb 8, 2015):
I was sure this would fix it, but it didn't
@jfoug commented on GitHub (Feb 8, 2015):
Only affects fork
@magnumripper commented on GitHub (Feb 8, 2015):
No, it's just that fork make it surface (like the DES 8-bit issue). They are actually valid candidates. This should be FMT_NOT_EXACT.
Try this, still passes self-test
@magnumripper commented on GitHub (Feb 8, 2015):
You can trigger it with -random instead of -fork but you don't see it (eg. that it's sometime "1" and sometimes "11"). If you set FMT_NOT_EXACT you will also see it.
@frank-dittrich commented on GitHub (Feb 8, 2015):
Is the BFegg format "not exact", or is our implementation broken?
@magnumripper commented on GitHub (Feb 8, 2015):
Not sure. Does pass_gen.pl produce the same for 1 and 11?
@magnumripper commented on GitHub (Feb 8, 2015):
Yep... and worse.
@magnumripper commented on GitHub (Feb 8, 2015):
Our format seem to be totally b0rken and unfortunately the TS (via pass_gen.pl) appears to implementing the same bugs (which defeats the purpose with TS). Here's probably correct hashes:@magnumripper commented on GitHub (Feb 8, 2015):
Scrap my last statement. I missed a chomp. Our code is correct, the algo is b0rken.
@magnumripper commented on GitHub (Feb 8, 2015):
I ran rockyou (len 1-72) through BFegg. That's 14,343,560 hashes but only 14,309,085 unique ones. This format has a 56-bit binary, so should be better than that.
@magnumripper commented on GitHub (Feb 8, 2015):
I committed adding FMT_NOT_EXACT but maybe we don't want that? If we revert it, a user could use the
--keep-guessingoption if she really wants to see alternatives.@magnumripper commented on GitHub (Feb 8, 2015):
Top-10 collisions from Rockyou:
58 different words was hashed to V6ZOx0rVGWT0, and so on.
@magnumripper commented on GitHub (Feb 8, 2015):
It seems any repetition of a pattern (which can be longer than 1 character) always gets same hash as a single instance of it.
I can't find any mentioning of this on the 'net.
@jfoug commented on GitHub (Feb 9, 2015):
I am not sure what to do on the TS. I guess it simply gets left to show the error. The TS was not designed for having multiple "right" guesses any of which are as valid as any other.
@magnumripper commented on GitHub (Feb 9, 2015):
One way to fix it is using another (or a shorter) dictionary that does not include any repeated patterns. Maybe your existing logic for shortening the input dictionary (for slow formats)?