mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #651] dynamic_15 format errors #308
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#308
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 @frank-dittrich on GitHub (Jun 20, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/651
I think dynamic_15 must include the user name in the canonical form of the hash that gets stored in john.pot.
So, instead of
the john.pot entry should be
Also, dynamic_15 shouldn't treat
as a valid hash, since it is missing the $$U part.
I know I need to work on the --list=format-tests output (call prepare() if the ciphertext is invalid).
@frank-dittrich commented on GitHub (Jun 20, 2014):
BTW: dynamic_35 is somehow similar to dynami_15.
The hashes stored in john.pot do contain the user names (converted to hex), but
is considered as valid (apparently, it is internally converted into
(At least that's what --show=LEFT produces.
I think these hashes without user name should be invalid (prepare should reject them) or converted into hex as well (with an empty user name) like this:
But I wouldn't want to waste run time on those and reject them (unless there really can be an empty user name).
Do you prefer a separate issue for dynamic_35 (and for other dynamic formats with similar problems as well) or should I wait for your reply and don't bother with creating new issues for dynamic?
dynamic_36 and dynamic_37 seem to have similar issues, dynamic_1401 as well.
@jfoug commented on GitHub (Jun 20, 2014):
2424556a6f65626c6f77 IS $$Ujoeblow
That must have come from a .pot file. The problem there, is all that really matters, is the 609... part, BUT this does cause failures of the dupelicate detection.
I will look into dyna_15 (or other $$Uxxx or other extra field stuff, to make sure that john core code is dealing with a normalized hash. This MAY also have to deal with the source() method, and making sure that it re-builds the hash properly. I do not know yet.
@frank-dittrich commented on GitHub (Jun 20, 2014):
dynamic_1015 is similar as well.
It treats
as valid, even though there's no user name.
Internally, that hash gets converted to
I think this formaat should keep the hex incoding.
Otherwise, you get funny results for hex values that translate into line feed characters or colons.
@jfoug commented on GitHub (Jun 20, 2014):
It looks like the real bug may be in listconf.c and it not calling prepare EVERY time.
@jfoug commented on GitHub (Jun 20, 2014):
There were problems in dyna prepare(). I was blindly adding a $$U and $$Fx even when the fields are invalid. I am no longer doing this. Now, if a format has a $$U, and the user name is allowed to be blank, then the ONLY way to get that hash into jtr, is to add an empty $$U to the hash line. dyna's prepare will not do this. I also do not add the '?' user name, as this is a magic user name added within loader, for blank ones.
a7e3205@frank-dittrich commented on GitHub (Jun 20, 2014):
I know that listconf.c needs a fix (call prepare if the existing ciphertext isn't valid. (I wouldn't want to always call preparem because then --list=format-test will only produce a subset of hashes that the format considers to be valid.