Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bkcrack 1.5.0: could not find the keys with the whole plaintext file #73

Closed
A-Kazak opened this issue Aug 6, 2022 · 4 comments
Closed
Labels

Comments

@A-Kazak
Copy link

A-Kazak commented Aug 6, 2022

Greetings!

Please see a encrypted-plain pair of ZIP archives with a single PDF. Note that CRC32 of the file is the same in both archives.

I experience the following issue:

bkcrack.exe -C encrypted.zip --cipher-index 1 -p plain.zip
bkcrack 1.5.0 - 2022-07-07
[15:16:29] Z reduction using 1048569 bytes of known plaintext
0.6 % (5812 / 1048569)←[1K
[15:16:30] Attack on 137 Z values at index 1043310
100.0 % (137 / 137)[1K
[15:16:31] Could not find the keys.

What could be the issue?
How do I get the correct keys in this case?

Thank you.

encrypted.zip
plain.zip

@A-Kazak
Copy link
Author

A-Kazak commented Aug 7, 2022

I have found the solution returning the correct keys:

bkcrack.exe --cipher-zip encrypted.zip --cipher-index 1 --plain-zip plain.zip --plain-index 1
bkcrack 1.5.0 - 2022-07-07
[11:46:39] Z reduction using 1048569 bytes of known plaintext
0.8 % (8111 / 1048569)←[1K
[11:46:41] Attack on 236 Z values at index 1041407
Keys: 699615a8 de21c139 4acb9156
19.9 % (47 / 236)←[1K
[11:46:42] Keys
699615a8 de21c139 4acb9156

The idea is to tell bkcrack explicitly the indices of cipher and plain text files.

@kimci86
Copy link
Owner

kimci86 commented Aug 7, 2022

Hello,
As you understood, you had to tell bkcrack to use an entry inside plain.zip as known plaintext and not the file plain.zip itself.

Hopefully, it will become more straightforward in a future version once issue #11 is solved, so that giving the archives to use would be enough and bkcrack could guess that loading the one entry in each archive is the thing to do.

@A-Kazak
Copy link
Author

A-Kazak commented Aug 7, 2022

I think that guessing may be messy especially with similar file names inside both archives.
For me the current scheme when a user assigns explicitly where the cipher and plain texts are is quite reasonable.

@kimci86
Copy link
Owner

kimci86 commented Aug 7, 2022

Thank you for your feedback.
As far as I understand, your questions have been answered so I close this issue.

@kimci86 kimci86 closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants