Obtain the passphrase of a private key (id_rsa), this tool uses the ssh-keygen binary to perform a brute force attack until a successful collision occurs.
wget --no-check-certificate -q "https://raw.githubusercontent.com/d4t4s3c/RSAcrack/refs/heads/main/RSAcrack" && chmod +x RSAcrack
wget --no-check-certificate -q "https://raw.githubusercontent.com/d4t4s3c/RSAcrack/refs/heads/main/RSAcrack" -O /usr/bin/RSAcrack && chmod +x /usr/bin/RSAcrack
RSAcrack -k <KEY> -w <WORDLIST>
Warning
The cracking speed can vary depending on which tool the key is generated with.
Key Generated | Cracking Speed |
---|---|
OpenSSL | ✔️ |
ssh-keygen | ❌ |
PuTTYgen | ✔️ |
8gwifi | ✔️ |