Skip to content

Instantly share code, notes, and snippets.

@xyzkab
Created August 9, 2020 07:39
Show Gist options
  • Save xyzkab/7e11fef21ec1e6794bb73090c5df3a0d to your computer and use it in GitHub Desktop.
Save xyzkab/7e11fef21ec1e6794bb73090c5df3a0d to your computer and use it in GitHub Desktop.
SSH Keygen Bruteforce
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