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

aes-256-cbc: is not a salted openssl file #17

Open
blshkv opened this issue Jan 6, 2019 · 4 comments
Open

aes-256-cbc: is not a salted openssl file #17

blshkv opened this issue Jan 6, 2019 · 4 comments

Comments

@blshkv
Copy link

blshkv commented Jan 6, 2019

Hi,

I have an encrypted file which supposedly can be decrypted with the following command:
openssl aes-256-cbc -K my_key -iv my_iv -in my_key.enc -out my_key -d

However, then I run the bruteforcer (bruteforce-salted-openssl -t 4 -c aes-256-cbc my_key.enc), I'm getting the following:
Error: my_key.enc is not a salted openssl file

Any ideas?

@glv2
Copy link
Owner

glv2 commented Jan 7, 2019

Currently, user supplied raw IVs are not implemented.

Two types of openssl encryption are supported so far:

  • files encrypted with e.g. openssl enc -aes256-cbc -in clear.dat -out encrypted.dat, these encrypted files start with Salted__
  • files encrypted with the -nosalt option, in which case the -n option must be passed to bruteforce-salted-openssl

@blshkv
Copy link
Author

blshkv commented Jan 7, 2019

I guess, this bug will be about implementing such support. This is something like good to have and not urgent

@JasonLeeWeiHern
Copy link

Hi,
how to put the nosalt option ?
bruteforce-salted-openssl -t 4 -c aes-256-cbc my_key.enc
how do i modify this cmd ?

@glv2
Copy link
Owner

glv2 commented Feb 27, 2020

@JasonLeeWeiHern bruteforce-salted-openssl -n -t 4 -c aes-256-cbc my_key.enc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants