[GH-ISSUE #468] Investigate if pkzip can get back some of the early-rejection that was dropped in 829ea4c #184

Closed
opened 2026-10-14 02:55:33 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @magnumripper on GitHub (Jan 6, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/468

Originally assigned to: @jfoug on GitHub.

See #467 and 829ea4c

Originally created by @magnumripper on GitHub (Jan 6, 2014). Original GitHub issue: https://github.com/openwall/john/issues/468 Originally assigned to: @jfoug on GitHub. See #467 and 829ea4c
bsakaguchi 2026-10-14 02:55:33 +07:00
Author
Owner

@jfoug commented on GitHub (Jun 11, 2014):

Original bug (with descriptions) re-opened. Closing this one.

<!-- gh-comment-id:45806255 --> @jfoug commented on GitHub (Jun 11, 2014): Original bug (with descriptions) re-opened. Closing this one.
Author
Owner

@magnumripper commented on GitHub (Jun 15, 2014):

Excellent!

<!-- gh-comment-id:46129018 --> @magnumripper commented on GitHub (Jun 15, 2014): Excellent!
Author
Owner

@jfoug commented on GitHub (Jun 16, 2014):

This bug is 'fixed'. All comments are in #467 NOTE, I did make a new signature, so this may be something we have to handle in relbench and other places. The signature change was due to adding BOTH possible checksum values. The 2 checksum values are the upper bytes of the CRC32, and the timestamp. There often is NOTHING that distinguishes which of the 2 were used by the compressor code used to make the .zip. Sometimes there is (if there are some extra .zip fields, where I can determine the version/flavor of the zip file). However, there was nothing like this for ChristmasGIFts.zip file. It was a 'normal' looking thing, but used the timestamp. The new format pkzip2 vs pkzip adds BOTH checksum values. Then the format tests for a hit by EITHER as being a hit checksum. NOTE, legacy (deprecated) pkzip works just fine. During loading within the format, I simply set the 2nd checksum equal to the first (since I only have one). Works fine. This does slow down the format about 2%, but hash failures go away.

I also fixed issue where the format was not working for any item < 129 bytes in final size. I now test for a fully decompressed block in that 'quick-check' section. I was ONLY testing for Z_OK return code, but a completely decompressed buffer returns something other than Z_OK, but it is 100% fine and should be properly tested for success.

Bug(s) closed. This one, #467 and #245 were all closed, and fixed.

<!-- gh-comment-id:46165455 --> @jfoug commented on GitHub (Jun 16, 2014): This bug is 'fixed'. All comments are in #467 NOTE, I did make a new signature, so this may be something we have to handle in relbench and other places. The signature change was due to adding BOTH possible checksum values. The 2 checksum values are the upper bytes of the CRC32, and the timestamp. There often is NOTHING that distinguishes which of the 2 were used by the compressor code used to make the .zip. Sometimes there is (if there are some extra .zip fields, where I can determine the version/flavor of the zip file). However, there was nothing like this for ChristmasGIFts.zip file. It was a 'normal' looking thing, but used the timestamp. The new format $pkzip2$ vs $pkzip$ adds BOTH checksum values. Then the format tests for a hit by EITHER as being a hit checksum. NOTE, legacy (deprecated) $pkzip$ works just fine. During loading within the format, I simply set the 2nd checksum equal to the first (since I only have one). Works fine. This does slow down the format about 2%, but hash failures go away. I also fixed issue where the format was not working for any item < 129 bytes in final size. I now test for a fully decompressed block in that 'quick-check' section. I was ONLY testing for Z_OK return code, but a completely decompressed buffer returns something other than Z_OK, but it is 100% fine and should be properly tested for success. Bug(s) closed. This one, #467 and #245 were all closed, and fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#184
No description provided.