I have an RSA Private key for my SSL certificate. Unfortunately I forgot the passphrase. Here is the header info:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-CBC,9A3F1B0DB81DA3C64E5BCA3534544E04
I would like to perform a dictionary attack to try to crack it. Could anyone tell me how to do it? Maybe using a tool like John The Ripper.
I wrote small python script to do what I wanted. I put the key under the name "ssl.key" and the word list in a file called "wl.lst".
Here's the complete code:
This script is cross platform. To increase or decrease the number of words used in a combination, just add/remove appropriate code blocks.
Note: Removing the display of status can considerably improve speed.