Concepts / Reconnaissance and exfiltration

Reconnaissance and exfiltration

Port scanning

Also called nmap, open closed filtered, service scan

Probing an address's ports to learn which services it exposes, and whether a firewall sits in the way.

The answer sorts the port: open, closed or filtered
The answer sorts the port: open, closed or filtered

A SYN/ACK means something listens, a reset means the host is reachable but nothing listens, and no answer at all means something on the way dropped the probe.

Port scanning is probing an address's ports to learn which services it exposes (nmap). The answer to each probe sorts the port: open (accepted), closed (a reset: reachable, nothing listening) or filtered (no answer: something dropped it). UDP has no handshake, so a silent port reads as open|filtered. Silence is how a scan reveals a firewall. A ping sweep (nmap -sn) first finds which hosts are up.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab