mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #710] Dynamic: Spaces in salt lost unless login field present (?) #357
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#357
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 @magnumripper on GitHub (Aug 10, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/710
Originally assigned to: @jfoug on GitHub.
From CMIYC 2014 mailing list
On 2014-08-09 11:08, Alexander Cherepanov wrote:
Consider a salted md5 hash "05de5c963ee6234dc7d52f7589a1922b" with the salt " " (two spaces) and password "welcome" (taken from osc_fmt_plug.c).
When there is a login in input file non-encoded spaces at the end of the line are processed Ok:
When login is absent the spaces are trimmed?
Indeed:
@jfoug commented on GitHub (Aug 13, 2014):
Check loader.c
This is only done for the no ciphertext case where login is copied into ciphertext, i.e. no colons, just a raw hash. Keep in mind, that fixing this, COULD cause other things which require the trim, to now fail.
@magnumripper commented on GitHub (Aug 13, 2014):
OK, here's the commit:
989316c. So this is the very intended behavior, from core. I guess the solution is to encode spaces asHEX. Maybe we should just document that somewhere (where?) and then we could close this.@jfoug commented on GitHub (Aug 18, 2014):
I am going to at least change this in raw2dyna.c At least it will be documented there, that if the salt ends in spaces, that it can be 'trimmed' away by jtr core.
I will also document the issue in some dyna text file.
@jfoug commented on GitHub (Aug 18, 2014):
We also must make sure of this issue for things like reload of .pot file, etc.
@jfoug commented on GitHub (Aug 18, 2014):
committed
ff86e93and it appears to work in the .pot file. The non-HEXsalt is put into the .pot file, but it removes things. The only time this bug 'may' have happened was in that special code that was added to trim raw hashes when read from an input file. So spaces at end of salt 'should' be OK, in other situations.