Advertisement
makispaiktis

Bash 3 - SSH scripts scan

Nov 8th, 2024 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. # 1. Unconfigured scan
  2. nmap localhost
  3.  
  4. # 2. Scan port 22 (SSH) with service version + default scripts
  5. nmap -p22 -sV -sC localhost
  6.  
  7. # 3. Run ssh script
  8. nmap --script ssh-publickey-acceptance localhost
  9.  
  10. # 4. Run ssh auth methods script
  11. nmap --script ssh-auth-methods localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement