Reporting vulnerability checks
Nmap can be used as a vulnerability scanner with the help of some NSE scripts. While this is not Nmap's main objective, the vulnerability detection scripts available are great. The NSE vuln
library manages and unifies the output of the vulnerability checks performed by NSE.
This recipe will show you how to make Nmap report the vulnerability checks performed during a scan.
How to do it...
Launch the NSE scripts in the vuln
category against your target:
$nmap -sV --script vuln <target>
If Nmap finds a vulnerability, it will be included in the report:
| smb2-vuln-uptime: | VULNERABLE: | MS17-010: Security update for Windows SMB Server | State: LIKELY VULNERABLE | IDs: ms:ms17-010 CVE:2017-0147 | This system is missing a security update that resolves vulnerabilities in | ...