Nmap Service Enumeration (NSE)
This page focuses on deep host and service enumeration using NMAP NSE scripts.
The goal is to extract detailed information by actively interacting with exposed services.
Nmap
Nmap script types
Category | Purpose | Risk |
|---|---|---|
default | Basic enumeration | Safe |
safe | Non-intrusive checks | Safest |
discovery | Service, protocol & feature discovery | Low |
version | Deep version & metadata extraction | Low - Medium |
auth | Authentication mechanism discovery | Medium |
intrusive | Aggressive/bruteforce | Dangerous |
Baseline enumeration
Run default enumeration scripts
Explain command
| --script default | Runs the default set of NSE scripts for common enumeration tasks. |
| -T3 | Sets timing template to 'Normal' for balanced speed and reliability. |
| $TARGET_IP | Placeholder for the target host IP address to scan. |
Provides:
basic service metadata
protocol capabilities
banner-level information
Authentication enumeration
Identify authentication mechanisms and weaknesses
Explain command
| --script auth | Runs all scripts in the 'auth' category to test authentication methods. |
| -T3 | Sets timing template to 3 (normal), balancing speed and reliability. |
| $TARGET_IP | Placeholder for the target host IP address to scan. |
Finds:
anonymous access
supported auth methods
misconfigured authentication
Service discovery enumeration
Enumerate protocol features and exposed functionality
Explain command
| --script discovery | Run all scripts in the 'discovery' category to gather target info. |
| -T3 | Set timing template to 3 (normal speed, default balance). |
| $TARGET_IP | Placeholder for the target host IP address to scan. |
Version-based enumeration
Extract extended service and protocol details
Explain command
| --script version | Runs NSE scripts in the 'version' category for enhanced version detection. |
| -T3 | Sets timing template to 'Normal' (default speed, balanced aggressiveness). |
| $TARGET_IP | Placeholder for the target host IP address to scan. |
Useful when -sV output is incomplete.
Intrusive enumeration (high risk)
Important
Aggressive probing — may trigger alerts or break services (not recommended)
Explain command
| --script intrusive | Run all scripts in the 'intrusive' category, which may affect the target. |
| -T3 | Sets timing template to 'Normal' (default speed, balanced aggressiveness). |
| $TARGET_IP | Placeholder for the target host IP address to scan. |
Examples:
aggressive feature probing
partial brute-force behavior
protocol fuzzing
Output handling
Save enumeration results
Explain command
| --script auth,discovery | Runs NSE scripts in the 'auth' and 'discovery' categories. |
| -oN ${TARGET_NAME}_enum.txt | Saves output in normal format to a file named after the target. |
| $TARGET_IP | Placeholder for the target host's IP address. |
References
-
NMAP default scriptsnmap.org/nsedoc/categories/default.html (opens in new tab)
Shows all default NSE scripts
-
NMAP safe scriptsnmap.org/nsedoc/categories/safe.html (opens in new tab)
Shows all safe NSE scripts
-
NMAP discovery scriptsnmap.org/nsedoc/categories/discovery.html (opens in new tab)
Shows all discovery NSE scripts
-
NMAP version scriptsnmap.org/nsedoc/categories/version.html (opens in new tab)
Shows all version NSE scripts
-
NMAP auth scriptsnmap.org/nsedoc/categories/auth.html (opens in new tab)
Shows all auth NSE scripts
-
NMAP intrusive scriptsnmap.org/nsedoc/categories/intrusive.html (opens in new tab)
Shows all intrusive NSE scripts
Was this helpful?
Your feedback helps improve this page.