You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This suggests that the compression settings are wrong. I've tried changing the compression settings, but nothing seems to work. I think this would be a useful example for the tutorial
You are right, using the deflate python script (using zlib deflate compressor under the hood) does not generate correct compressed data for that example. I created the example secrets.zip archive using 7zip with compression level 9.
You can get the same compression with this command: 7z a -mx=9 plain.zip advice.jpg
That information could be a nice addition to the tutorial, thank you for the suggestion.
Let's keep this issue open to remind me to eventually add it.
You can also leverage the fact that 7z can give you the CRC on a binary file. I saw a post that used this fact to find the released version of putty - this allowed them to find the original plaintext by downloading each one until they hit the one with a matching CRC. Then it becomes a matter of compression settings.
palmerc@foxtrot example % 7z h advice.jpg
7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,10 CPUs LE)
Scanning
1 file, 54799 bytes (54 KiB)
CRC32 Size Name
-------- ------------- ------------
7CA9F10A 54799 advice.jpg
-------- ------------- ------------
7CA9F10A 54799
Size: 54799
CRC32 for data: 7CA9F10A
Everything is Ok
Activity
kimci86 commentedon Nov 29, 2022
You are right, using the deflate python script (using zlib deflate compressor under the hood) does not generate correct compressed data for that example. I created the example
secrets.ziparchive using 7zip with compression level 9.You can get the same compression with this command:
7z a -mx=9 plain.zip advice.jpgThat information could be a nice addition to the tutorial, thank you for the suggestion.
Let's keep this issue open to remind me to eventually add it.
palmerc commentedon Nov 29, 2022
Tested and works!
palmerc commentedon Nov 29, 2022
Even with only 12 bytes of 'plain text' it results in victory.
palmerc commentedon Nov 30, 2022
You can also leverage the fact that 7z can give you the CRC on a binary file. I saw a post that used this fact to find the released version of putty - this allowed them to find the original plaintext by downloading each one until they hit the one with a matching CRC. Then it becomes a matter of compression settings.
Bang1338 commentedon May 12, 2026
4 years late, but I can confirm that it works