mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #245] zip2john fails to work for some files posted on sample "non-hashes" page #16
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#16
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 @kholia on GitHub (Apr 11, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/245
Originally assigned to: @jfoug on GitHub.
@magnumripper commented on GitHub (May 2, 2013):
What version of zip is that? Winzip or pkzip?
@kholia commented on GitHub (May 2, 2013):
IIRC, I used WinZip to generate those files.
However, I don't think that it matters. zip2john is programmed to reject small file streams.
@magnumripper commented on GitHub (Feb 19, 2014):
This is not exactly a bug, it's function as designed. But if we can fix it, all the better.
@jfoug commented on GitHub (Jun 15, 2014):
Fixed:
c67b168andb7a49aeThe issue was zip2john not processing any file with less than 12 bytes of compressed data. This has been lowered to > 2 bytes. The 2nd part of the bug was fixed in
b7a49aeand it had to do with decompressed zip data being less than 128 byte. In that case, the inflate function does NOT return a Z_OK. It returns a Z_END_OF_STREAM, BUT that is ok, since we inflated the entire data. Normally, you inflate a small chunk, and the inflate engine says, 'ok'. Here it simply said all is done. That patch detects these tiny guys, and handles them properly.This bug is fixed.
$ ../bleeding/run/john x.in
Loaded 1 password hash (PKZIP [32/32])
Press 'q' or Ctrl-C to abort, almost any other key for status
password (zip0_password.zip)
1g 0:00:00:00 DONE 1/3 (2014-06-15 09:44) 62.50g/s 1000p/s 1000c/s 1000C/s zip0zip0_password.zip..passwordzip0
Use the "--show" option to display all of the cracked passwords reliably
Session completed