Vulnerability Scanning with Nmap
As an alternative to Nessus, we can also use the NSE335 to perform automated vulnerability scans. NSE scripts extend the basic functionality of Nmap to do a variety of networking tasks. These tasks are grouped into categories around cases such as vulnerability detection, brute forcing, and network discovery. The scripts can also extend the version detection and information gathering capabilities of Nmap.
We can determine the categories of a script by browsing the NSE Documentation336 or locally in the NSE scripts directory
NSE scripts can be found in the
/usr/share/nmap/scripts/
directorycategorized as
safe and vuln, or intrusive and vuln
. Scripts categorized as “safe” haveno potential impact to stability
, while scripts in the “intrusive” category mightcrash a target service or system
Standard NSE Script are quite outdated. but vulner scripts was integrated with Vluners Vulnerability Database
Scan using NSE Scritp from `vuln` category
vulners script is that it also lists Proof of Concepts for the found vulnerabilities, which are marked with “EXPLOIT”.
Adding new NSE Script to Nmap (eg- CVE-2021-41773)
1. Go to GitHub and download NSE script
2. Copy downloaded script to Nmap Script file
3. Update Nmap script db update
4. Example Usage
Last updated