kimci86 / bkcrack

Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
zlib License
1.61k stars 159 forks source link

Mask for password recovery from Keys #55

Open linux-mining opened 2 years ago

linux-mining commented 2 years ago

Hi you assisted me in recovering 3 encrypted zip files (thanks again by the way), however I am trying to recover my original password from the keys as that password was used in one other file that is not pkzip.

Your password recovery is extremely fast however I have a long password (22 characters I believe) but it uses very few characters (less than 9) and I know the first 10 or 11 characters.

Is there anyway to specify your own mask like hashcat or John?

kimci86 commented 2 years ago

Hello, specifying a mask is not implemented at the moment, but that would be a nice feature to have. Thank you for the suggestion.

In your case, specifying a prefix would be enough. As it is easier to implement, I will make a prototype that should work for your case and implement a proper mask feature later. I expect the recovery to take a few milliseconds then.

linux-mining commented 2 years ago

Just wanted to leave a message that your enhancement worked and I recovered the 22 character the password in under a minute.

Thank you for your time and efforts kimci86 I own you a big thanks. These files were lost for a decade.

kimci86 commented 2 years ago

Very good! I will keep this issue open to remind me to implement a more flexible mask feature eventually.