Not a flag dump — learn to read Nmap: how to build a command, how to interpret every port state, a staged workflow, and the ten commands a real assessment actually uses, in order.
ZeroDaysHack Team
November 18, 2026
Nmap is the first tool almost every hacker learns and the last one they stop using. It answers the two questions that open every engagement: what is alive on this network, and what is it running? This guide is not a flag dump — it teaches you to read Nmap: how to build a command, how to interpret every reply, and the ten commands you'll actually reach for, in the order a real assessment uses them.
An Nmap command looks intimidating until you learn to read it left to right. Every scan is the same shape: the tool, the scan type, what to probe, how fast, where to save, and the target.
Once you see that structure, a wall of flags becomes a sentence. nmap -sS -sV -p- -T4 -oA scan 10.10.5.0/24 reads as: "SYN-scan every TCP port, identify the service versions, go reasonably fast, save all output formats to files named scan, across this subnet."
Nmap never gets told "this port is open." It infers state from how the target replies — or doesn't. Misreading these six states is the number-one beginner error.
| State | What it means | What you do with it | |
|---|---|---|---|
open | A service accepted the probe | This is your attack surface | |
closed | Host replied, nothing listening | Host is up; note it | |
filtered | No reply — something dropped it | A firewall is in the way | |
| `open\ | filtered` | Can't tell open from filtered | Common in UDP scans |
Beginners fire -p- -sV -A at an entire /24 and wait twenty minutes for unreadable output. Professionals narrow at each step: discover live hosts, then scan their ports, then enumerate only what's interesting.
Run these against your own lab. Replace the ranges with your lab's addresses.
1 — Host discovery (who's alive?)
nmap -sn 192.168.56.0/242 — Quick top-ports scan (fast first look)
nmap -T4 192.168.56.203 — All TCP ports (miss nothing)
nmap -p- 192.168.56.204 — Service and version detection
nmap -sV 192.168.56.205 — OS detection
nmap -O 192.168.56.206 — Default scripts + versions (the everyday go-to)
nmap -sC -sV -p 22,80,443 192.168.56.207 — UDP scan (the ports people forget)
nmap -sU --top-ports 50 192.168.56.208 — Aggressive scan (loud but thorough)
nmap -A 192.168.56.209 — Vulnerability scripts (NSE)
nmap --script vuln 192.168.56.2010 — Save output for your report
nmap -sC -sV -oA scans/host20 192.168.56.20The -T flag sets how aggressively Nmap sends probes, from -T0 (glacial, stealthy) to -T5 (blitz).
| Template | Use it when |
|---|---|
-T2 | You want to be quiet / gentle on fragile targets |
-T3 | The sensible default |
-T4 | A healthy lab or LAN you control — the common choice |
-T5 | You truly don't care about stealth or load |
The real value of -sV isn't the port number — it's the banner. Apache 2.4.49, OpenSSH 7.2, vsftpd 2.3.4: a version string is a lead. You take it to a vulnerability database and ask "what's known-broken in exactly this build?" That hand-off — from a scan result to a known weakness — is the whole bridge from scanning to exploitation, and it's where the five-phase method earns its keep.
Nmap tells you what's there; it's the start of the method, not the end. Once you can read a scan fluently, the natural next reads on this blog are Networking for Hacking (so the ports and handshakes actually mean something) and SQL Injection and XSS (what you do once you've found a live web service worth testing). Set up a lab, scan it until the output feels obvious, then go find something to test — with permission.