SSH

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

SSH

Banner Enumeration:

nc <target> <port> --> darà il banner della versione in esecuzione

-------------------------------------------------------------------------

nmap <target> --script ssh2-enum-algos -p 22 --> enumera gli algoritmi usati per
creare le chiavi ecc...

-----------------------------------------------------------------------------------
--

nmap <target> --script ssh-hostkey --script-args ssh_hostkey=full -p 22 --> enumera


le hostkey

-----------------------------------------------------------------------------------
-------

nmap <target> --script ssh-auth-methods --script-args="ssh.user=<user>" --> enumera


i metodi di autenticazione possibili

-----------------------------------------------------------------------------------
-------------

hydra -l <user> -P <path wordlist> <target> ssh --> dictionary attack ssh

-----------------------------------------------------------------------------------
-----------

nmap <target> -p 22 --script ssh-brute --script-args userdb=<path_user_wordlist>


--> dictionary attack ssh nmap script

-----------------------------------------------------------------------------------
--------------

msfconsole> use /auxiliary/scanner/ssh/ssh_login --> dictionary attack ssh


msfconsole --> /usr/share/wordlists/metasploit-framework/root_userpass_file.txt

You might also like