Skip to content

tunelko/openssl-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Openssl solver by bruteforce

Openssl solver that helps to decipher with a dictionary to bruteforce ciphertexts on *NIX systems.

Use

First you need a good dictionary, maybe john's one. Then two loops with ciphers and passwords.

$ for cipher in `cat possible_ciphers`;do for pass in `cat passlist.txt`;do ./solve.sh $cipher $pass;done;done

Example

Let's cipher a dummy text with password 'pass':

$ openssl aes-256-cbc -a -salt -in plainsecret.txt -out secrets.txt.enc
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:

$ cat secrets.txt.enc
U2FsdGVkX1+bcJxDtB5XwXmx2EBRlQfp8Jj1HpF7skkzh6HZhCS165w8XJ60tbtD

Now, decrypt it:

$ openssl aes-256-cbc -d -a -in secrets.txt.enc -out plaintext
enter aes-256-cbc decryption password:

$ cat plaintext
This is my secret

Requirements

It needs "expect".

$ apt-get install expect 

Real cipher challenge

Test the tool with real chiper challenge. Good luck!

    U2FsdGVkX19QX/EHpHvRYyW52rN/m9gTNmwTgFkLDyiw6flFLsUK2JFQ/UtIVD8P
    5KzdLHO1pzBXpDOYpv/vA5Lb28oGP1Yd9iFKGBIrChUg37vI6wfY5wX0a2H7dsNJ
    nzXhEpNsUMclG7L0RbWE4QCw4i6bM/KZ8GpFxDT1FZk=

About

openssl bruting script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages