mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2315] FreeBSD MD5 password guesses are truncated to 15 characters #1548
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#1548
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 @nidem on GitHub (Oct 31, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2315
The FreeBSD MD5 format truncates password guesses to 15 characters, thereby making 16+ character passwords uncrackable.
Attempt with 16 character password (fails):
Attempt with 15 character password (success):
In example 1, notice the
trying: 123456789012345when the initial password is1234567890123456.The problem seems to existed t for quiet a while: http://www.backtrack-linux.org/forums/showthread.php?t=33697
@jfoug commented on GitHub (Oct 31, 2016):
This is not a bug. This is by design, and will not be changed. To crack these hashes with > 15 byte passwords use the --format=crypt (must be run on a system which the crypt system function can handle the MD5-crypt hash)
The md5-crypt hash is pretty complex. It cycles through 42 different concatenation methods to build each block of data to be hashed (it performs 1000 hashes I think, cycling through these 42 'types'). The 15 character limit is so that all data will fit into a single md5 'limb'. That means that all concatentated data for a single hashing must be 55 bytes or less. The only way to fit that is to keep the input password to 15 characters or less.
@ghost commented on GitHub (Oct 31, 2016):
This not a 'problem':
@nidem commented on GitHub (Oct 31, 2016):
I've tried it on a bunch of versions. I posted an old version to show how long the "issue" has been around.
@jfoug commented on GitHub (Oct 31, 2016):
Add --format=crypt and your hash will crack just fine. The crypt format is quite a bit slower. It simply uses the systems crypt library call. THUS you should not use this with any dictionary words < 15 characters. Run the md5-crypt builtin john format for those. But to test the > 15 byte passwords, you can use crypt.
@nidem commented on GitHub (Oct 31, 2016):
Thanks