mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1569] pkzip format: Default to not use file magics. #1026
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#1026
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 (Jul 21, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1569
We had a tricky problem on the ML and with a good portion of luck I could spot the problem: http://www.openwall.com/lists/john-users/2015/07/21/6
User had a file named john-1.8.0-jumbo-1.gz - but it wasn't gzipped at all, the extension lied. User zipped it with a password and ran zip2john on it to produce a test hash. zip2john decided to use the file magic for gz so user ended up with false negative (shrug)!
Since the Huffman checks are so excellent now, I think we should simply disable all use of file magics, at least by default.
@magnumripper commented on GitHub (Jul 21, 2015):
I see a mere 1% speed drop (even though file is 30 MB)
@jfoug commented on GitHub (Jul 21, 2015):
Sounds like all the tricky code for the 'magic' crap ended up being not that beneficial, with the latest other enhancements we had. Good thing. Sorry for the obscure bug.
@magnumripper commented on GitHub (Jul 22, 2015):
I wouldn't want to drop the code though, it IS faster (especially for huge files) and sometimes you know you can use it.