From b0630936ad19dee3f762b67121f912a98c0b6f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20B?= Date: Tue, 29 Jun 2021 15:41:13 +0200 Subject: [PATCH] Update pentesting-ssh.md Added Nmap SSH scripts --- pentesting/pentesting-ssh.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pentesting/pentesting-ssh.md b/pentesting/pentesting-ssh.md index bc0d535f..230d81b1 100644 --- a/pentesting/pentesting-ssh.md +++ b/pentesting/pentesting-ssh.md @@ -26,6 +26,16 @@ ## Enumeration +### Nmap SSH scripts + +```bash +nmap -p22 -sC # Send default nmap scripts for SSH +nmap -p22 -sV # Retrieve version +nmap -p22 --script ssh2-enum-algos # Retrieve supported algorythms +nmap -p22 --script ssh-hostkey --script-args ssh_hostkey=full # Retrieve weak keys +nmap -p22 --script ssh-auth-methods --script-args="ssh.user=root" # Check authentication methods +``` + ### Banner Grabbing ```bash