| name | nmap |
| description | Auth/lab ref: Network port scanner for host discovery, port scanning, service/version detection, OS fingerprinting, and NSE script execution. |
| license | GPL-2.0 |
| compatibility | Linux, Windows, macOS; Pre-installed on Kali/Parrot. |
| metadata | {"author":"AeonDave","version":"1.1"} |
Nmap
Fast, scriptable network scanner — the standard for port scanning and service enumeration.
Quick Start
nmap -sS -T4 <target>
nmap -sS -sV -sC -O -p- -T4 <target> -oA output/nmap_full
nmap -F -T4 <target>
Core Scan Types
| Flag | Scan Type | Notes |
|---|
-sS | TCP SYN (stealth) | Requires root; most common |
-sT | TCP Connect | No root needed; louder |
-sU | UDP scan | Slow; combine with -sS |
-sN/sF/sX | Null/FIN/Xmas | Firewall evasion |
-sA | ACK scan | Map firewall rules |
-sV | Version detection | Service banners |
-sC | Default scripts | Runs common NSE scripts |
-O | OS detection | Requires root |
-A | Aggressive | -sV -sC -O --traceroute |
Port Selection
-p 22,80,443
-p 1-1024
-p-
--top-ports 1000
-F
Output Formats
-oN file.txt
-oX file.xml
-oG file.gnmap
-oA basename
Timing & Performance
| Template | Use Case |
|---|
-T0 | Paranoid — IDS evasion |
-T1 | Sneaky |
-T3 | Default |
-T4 | Aggressive — fast networks |
-T5 | Insane — may miss results |
Fine-grain: --min-rate 1000 --max-retries 2
Target Specification
nmap 192.168.1.1
nmap 192.168.1.0/24
nmap 192.168.1.1-254
nmap -iL targets.txt
nmap --exclude 192.168.1.5
NSE Scripts
nmap --script smb-vuln-ms17-010 -p 445 <target>
nmap --script vuln <target>
nmap --script "safe and discovery" <target>
nmap --script http-brute -p 80 <target>
Script categories: auth, broadcast, brute, default, discovery, dos, exploit, external, fuzzer, intrusive, malware, safe, version, vuln
Common Workflows
nmap -sn 192.168.1.0/24
nmap -sS -sV -sC -O -p- -T4 --open -oA full_scan <target>
nmap -sS -p 135,139,445,3389,5985 -T4 192.168.1.0/24
nmap -sV -p 80,443,8080,8443 --script http-headers,http-title <target>
nmap -sU --top-ports 20 -T4 <target>
Firewall / IDS Evasion
nmap -f <target>
nmap -D RND:10 <target>
nmap -D 192.168.1.5,192.168.1.10,ME <target>
nmap -sI <zombie_ip> <target>
nmap --source-port 53 <target>
nmap --source-port 80 <target>
nmap -T1 -p 22,80,443 <target>
nmap --randomize-hosts --data-length 25 <target>
IPv6
nmap -6 -sV fe80::1%eth0
nmap -6 -sS -p 22,80,443 2001:db8::/32
Resources
| File | When to load |
|---|
references/nse-scripts.md | NSE script list by category, syntax, vuln scripts, auth brute, discovery |