Nmap
The de-facto network mapper and port/service scanner.
pkg: nmap
Nmap discovers hosts and services on a network by sending packets and analysing responses. It performs host discovery, port scanning, version/OS detection and scriptable checks via the NSE engine.
Syntax
Example
Full TCP port scan (-p-) with service/version detection (-sV), default safe scripts (-sC), at aggressive timing (-T4).
Options & flags
What each switch does. Toggle them in the builder below to assemble a command.
Command builder
Tick options (and fill any values) to build a ready-to-copy command.
Usage examples
Full TCP port sweep with version detection and default scripts.
Host discovery only — list live hosts on the subnet.
Scan the 50 most common UDP ports.
Skip ping and run vulnerability NSE scripts on the web ports.
Aggressive scan, saving every output format as fullscan.*
- Extremely versatile — discovery, ports, versions, OS, and NSE scripts
- Mature, scriptable and well documented
- Outputs in greppable/XML/JSON for tooling
- Active and noisy — easily logged and blocked by IDS/WAF
- Full scans can be slow against large ranges
- Aggressive timing can disrupt fragile services
Official docs: Nmap reference guide ↗
Related commands
Frequently asked questions
What is Nmap used for?
What is an example Nmap command?
Is Nmap part of Kali Linux?
What category of security tool is Nmap?
Try recon tools live
Run real scans against a domain you control, stage by stage.