Skip to content

Nmap

Nmap is a network discovery and security auditing tool. Use it only against systems you own or are explicitly authorised to test.

Authorisation required

Scanning someone else’s infrastructure without permission can be unlawful and disruptive.

Basic scan

nmap 192.0.2.10

Service detection

nmap -sV 192.0.2.10

All-port scan

nmap -p- 192.0.2.10

Common options

Option Purpose
-sV Probe for service versions
-p- Scan ports 1–65535
-Pn Treat host as online (when discovery is blocked)
-oN file.txt Save normal output

Example output

PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 9.6
80/tcp open  http    nginx