--- title: "Nmap" description: "Nmap host discovery, port/service/version scanning, timing, output formats and common scan recipes." category: enumeration tags: [enumeration, port-scanning, network] tools: [Nmap] difficulty: beginner updated: "2026-10-12" source: "vault:Enumeration/Nmap Cheatsheet 2026.md" --- # Nmap > **Important — Why This Sheet Exists.** Most people stop at `nmap -sC -sV -oA scan `. That's maybe 20% of what Nmap can actually do. This sheet covers the flags, workflows, and interactive tricks that rarely show up in beginner guides — the stuff that separates "ran a scan" from "understood the target and its defences." Pairs with Awesome NMAP grep (post-processing greppable output) and the NSE Guide (script-level enumeration per port). --- ## Live Runtime Control > **Tip — Interactive Keys While a Scan Is Running.** Nmap has a **runtime keyboard interface** — you don't need `--stats-every` or a second terminal to check progress on a long `-p-` scan. > 1. Press **`v`** — increase verbosity live, mid-scan > 2. Press **`V`** — decrease verbosity > 3. Press **`d`** — increase debug level live > 4. Press **`D`** — decrease debug level > 5. Press **any other key** (e.g. spacebar) — print an immediate status line: % complete, ETA, current probe > > No flag needed — it works on any running scan in an interactive terminal. Combine with `--stats-every 10s` to also get automatic periodic updates without touching the keyboard. ```bash nmap -p- -T4 --stats-every 15s 10.10.10.5 # Then just tap spacebar anytime to force an immediate progress line ``` --- ## Precision Timing — Beyond `-T0`–`-T5` > **Important — `-T` Is a Preset, Not a Real Setting.** `-T0`–`-T5` are just bundles of the real underlying timing flags below. Most people never touch the real knobs — but that's where actual control lives. | Flag | Controls | Why It Matters | |---|---|---| | `--min-rate ` | Minimum packets sent per second | Forces a floor speed — use to stop Nmap self-throttling on a fast link | | `--max-rate ` | Maximum packets sent per second | Hard ceiling — essential for not knocking over fragile embedded/IoT/ICS devices | | `--min-rtt-timeout` / `--max-rtt-timeout` / `--initial-rtt-timeout` | RTT probe timeout bounds | Tune for high-latency links (VPN pivots, satellite, Tor) instead of accepting false "filtered" results | | `--host-timeout