mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #673] PHPS format problem with \x24 ('$') in $HEX$ #325
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#325
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 26, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/673
@jfoug commented on GitHub (Jun 26, 2014):
I tried this with no problems, ,BUT i put -w= in front of the PSPS.pw
I do see a bug, in that I have 3 elements in my .pot file, but the --show=left only sees 2 of them, and dumps out the test one with
x. I think I will add '$' to the chars deemed 'bad' in loader, and see if this problem goes away.@jfoug commented on GitHub (Jun 26, 2014):
I believe this fixes the issue, BUT since I never use --show (or --show=left), I am not sure what real side effects this will have, so I am not committing it.
I think magnum mentioned something about prepare not being called here. Well, it looks like there are side effects.
@magnumripper commented on GitHub (Jun 26, 2014):
I think prepare() is called when loading your input file, but not when loading the pot file. It might even be that cracked hash removal (when loading) behaves differently than --show. I haven't had time to follow all code yet but I think prepare is not called in either of those cases.
@jfoug commented on GitHub (Jun 27, 2014):
Without the patch I list above, when I run phps with this input file, it finds 1 password every time after the initial run finding 3. The one it finds every time is the 'test' password. What this shows, is without that prepare patch, any dynamic found, that are stored as
HEXin the .pot file, will never be removed from input. They will always show up in a --show=LEFT They will always be re-run when continuing a run, etc.I am going to put this call to prepare, after the valid, I am not 100% sure of this, but the .pot file is the most likely place where multiple hash types are located. Pretty much all hashes getting to the .pot file were written as cannonical tagged hashes.
@jfoug commented on GitHub (Jun 27, 2014):
Put this
f89acf9prepare in there. All testing done, things work the way they worked in the past, but theHEXalso properly are handled. NOTE, I do not use --show or --show=left features at all, so my testing may be lacking.But this PHPS issue listed here, is handled properly.
@frank-dittrich commented on GitHub (Jun 27, 2014):
You culd argue that the problem is caused by:
Hint:
If you call prepare with the ciphertext being the only field that is filled, then definitely you could do the same things in split.
A less intrusive change could be: move the logic you put into loader.c into PHPS's split() function instead.
@jfoug commented on GitHub (Jun 27, 2014):
7c671a5rolls backf89acf9and adds logic to thin dyna formats, so they call the dynamic split function from within their split functions.NOTE, net-md5 and net-sha1 do not call dyna split (or prepare, etc). They are not thin formats, but 'hybrid'. I am not sure how to work around thier issues. If they use dyna to find a hash, then they will store with
HEXin the .pot. We should test them, to make SURE they are working right. I can not see how they would be working right.