🔬SSH Enum
SSH (Secure Shell Protocol) - a cryptographic network protocol for operating network services securely over an unsecured network, based on a client-server model.
Default SSH TCP port is 22.
sudo nmap -p22 -sV -sC -O <TARGET_IP>Lab 1
Target IP:
192.8.3.3Enumeration of OpenSSH server
ip -br -c a
eth1@if130369 UP 192.8.3.2/24 Target IP is
192.8.3.3
nmap -sV 192.8.3.322/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.6 (Ubuntu Linux; protocol 2.0)
MAC Address: 02:42:C0:08:03:03 (Unknown)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
📌 SSH server version is
OpenSSH 7.2p2 Ubuntu 4ubuntu2.6.
nc(netcat) - TCP/IP swiss army knife, tool wich reads and writes data across network connections
Fetch the banner and check the SSH server version using
nc(netcat)
ssh- establish an encrypted secure connection with the host machine
Fetch the pre-login SSH banner

📌 SSH banner is
Welcome to attack defense ssh recon lab!!
Use nmap ssh2-enum-algos script to report the SSH supported algorithms
📌 There are
6supported encryption_algorithms
Use nmap ssh-hostkey script to show the target SSH server's entire key
📌 The entire
ssh-rsahost key isAAAAB3NzaC1yc2EAAAADAQABAAABAQC1fkJK7F8yxf3vewEcLYHljBnKTAiRqzFxkFo6lqyew73ATL2Abyh6at/oOmBSlPI90rtAMA6jQGJ+0HlHgf7mkjz5+CBo9j2VPu1bejYtcxpqpHcL5Bp12wgey1zup74fgd+yOzILjtgbnDOw1+HSkXqN79d+4BnK0QF6T9YnkHvBhZyjzIDmjonDy92yVBAIoB6Rdp0w7nzFz3aN9gzB5MW/nSmgc4qp7R6xtzGaqZKp1H3W3McZO3RELjGzvHOdRkAKL7n2kyVAraSUrR0Oo5m5e/sXrITYi9y0X6p2PTUfYiYvgkv/3xUF+5YDDA33AJvv8BblnRcRRZ74BxaD
Use nmap ssh-auth-methods script to show supported authentication methods

📌
none_authauthentication method forstudentuser is used.📌
publickeyandpasswordauthentication method foradminuser is used.
Or use nmap ssh-run script to run remote command on SSH server
Lab 2
🔬 SSH Recon: Dictionary Attack
Target IP:
192.230.83.3Detailed
SSHEnumeration
Target IP is
192.230.83.3
Use
hydrato find student user password

📌 student's password is
friend
Use nmap ssh-brute script to perform brute-force password guessing for administrator user

📌 student's password is
sunshine
Use
ssh_loginmetasploit module to bruteforce root's password

📌 The message of the day is
SSH recon dictionary attack lab.
Last updated
Was this helpful?

