mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #741] Wrong default order for raw-SHA0 #379
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#379
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 (Sep 14, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/741
$ ./john in
Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1"
Use the "--format=Raw-SHA1" option to force loading these as that type instead
Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1-Linkedin"
Use the "--format=Raw-SHA1-Linkedin" option to force loading these as that type instead
Warning: detected hash type "Raw-SHA", but the string is also recognized as "ripemd-160"
Use the "--format=ripemd-160" option to force loading these as that type instead
Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1-ng"
Use the "--format=Raw-SHA1-ng" option to force loading these as that type instead
Loaded 1 password hash (Raw-SHA, "SHA-0" [SHA 32/32])
Press 'q' or Ctrl-C to abort, almost any other key for status
0g 0:00:00:07 3/3 0g/s 25190p/s 25190c/s 25190C/s samanna1
Session aborted
I think raw-sha1 should be first in order, do others not agree. raw-sha0 is simply not a hash seen in the wild. No one uses it, it's broken. It is very hard to even find an implementation of it.
@kholia commented on GitHub (Sep 15, 2014):
Agreed 👍
@magnumripper commented on GitHub (Sep 15, 2014):
This was caused by latest plugin scheme change, where some previously hard coded formats became plugs. Sort order is fmt_struct name (ignoring case) so it's easy to tweak.
@magnumripper commented on GitHub (Sep 15, 2014):
BTW while the usage blob of john is sorted by format label, you can look at the output of
--list=formats(which should resemble fmt_registers.h) to verify cases like this.Oh, and GPU formats are always sorted separately and placed after CPU ones.