Nmap Scripting Engine
Introduction: Nmap Scripting Engine (NSE) is a powerful feature of Nmap that allows users to extend the functionality of the tool by running scripts to perform a wide range of tasks during the scanning process. NSE scripts provide additional capabilities, including service version detection, vulnerability scanning, and more.
Usage:
-sC
: Equivalent to running default scripts--script=<script(s)>
: Specify individual scripts or script categories to run--script-args=<args>
: Pass arguments to scripts
Common NSE Script Categories:
Discovery:
discovery
category includes scripts for discovering additional information about hosts.
Vulnerability Detection:
vuln
category includes scripts for identifying potential vulnerabilities on scanned hosts.
Service Version Detection:
version
category scripts help in identifying service versions running on open ports.
Examples:
Run default scripts against a target:
Run specific script categories:
Run individual scripts with arguments:
Custom Script Development:
Users can create (or download new) custom NSE scripts to address specific needs.
on kali, list of NSEs are found under
You need to update the script DB by executing
http-enum
helps in fingerprinting the webserver
NSE enhances Nmap's capabilities by providing a flexible and extensible framework for automating tasks during network reconnaissance and security assessments. Always use NSE responsibly and consider the impact of scripts on the target network.
Last updated