Run vulnerability detection NSE scripts against common service ports
Run vulnerability detection NSE scripts against common service ports
Nmap / Reconnaissance
Command
nmap --script vuln -sV -p 80,443,22,21 <target>
Syntax
nmap --script vuln [options] <target>
Use case
Quick vulnerability assessment during an engagement to identify low-hanging fruit before running Metasploit or other exploit frameworks.
Explanation
Uses Nmap Scripting Engine (NSE) to check for known vulnerabilities: • --script vuln → Runs all scripts in the "vuln" category • Checks for services like FTP anonymous access, outdated SSL, SMB vulns • Output includes CVE references when available • Requires -sV to properly identify service versions
Risk warning
Use only in systems you own or are explicitly authorized to test.
Example output
| http-vuln-cve2017-8917:
| VULNERABLE:
| Joomla! 3.7.0 SQL Injection
| CVE: CVE-2017-8917
|_ State: VULNERABLE
More examples
Primary example
nmap --script vuln -sV -p 80,443,22,21 <target>
Quick vulnerability assessment during an engagement to identify low-hanging fruit before running Metasploit or other exploit frameworks.
Related
Full port scan with service/version detection and default scripts on a subnet
Full port scan with service/version detection and default scripts on a subnet
nmap -sV -sC -p- --open -T4 192.168.1.0/24
Combined TCP SYN and UDP scan on common ports
Combined TCP SYN and UDP scan on common ports
nmap -sU -sS -p U:53,111,137,T:21-25,80,139,8080 192.168.1.1