the_open_door
coffee
ESEN
← Tools

nmap

Port scanning and service/version detection.

The reference network scanner. It discovers live hosts, open ports, service versions and, with its NSE scripts, checks for known vulnerabilities. Almost every box starts here: a full port scan and then a targeted version scan over whatever is open.

Family Network & port scanning

Flags -p- -sCV --min-rate -sU

Concepts Port Scanning (Nmap), From version to exploit

Cheatsheet Discovery & scanning

Installation

sudo apt install -y nmap

Useful commands6 commands

When it fails

  • Note: Host seems down. If it is really up, but blocking our ping probes, try -PnThe message carries its own fix. It shows up when the host does not answer the discovery ping, which is normal for a Windows box with its firewall on, and it does not mean the machine is down. That is why this blog's opening sweep already carries -Pn by default.seen in Craft

Appears in

Some machines where its use is documented; not an exhaustive list.