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.

A scanner sends a probe to each port and sorts the replies into open (accepted), closed (a reset: reachable, nothing listening) and filtered (no answer: something dropped it). A ping sweep (nmap -sn) first finds which hosts are up. TCP scans are quick and definite; UDP has no handshake, so a silent port reads as open|filtered. The three states are why a scan quietly reveals a firewall: silence means a drop.

See it on real machines

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Start with a free account: Google or email, no card.

Start this lab, free