Reconnaissance and exfiltration
Host discovery
Finding which addresses on a network belong to a machine that is up, before looking at any port.
Host discovery is finding which addresses on a network have a machine that is up, before any port is scanned (nmap -sn). On its own network the scanner asks by ARP, which a machine must answer to be reached, so one that
ignores ping still shows up. Across a router it pings and tries TCP ports 443 and 80: any answer, even a reset,
means up. -Pn skips the check.
Read next
- Port scanning Probing an address's ports to learn which services it exposes, and whether a firewall sits in the way.
- ARP How a device finds the MAC address behind an IP address on its own network.
- ICMP The network's messages about packets: echo for ping, unreachable, time exceeded, too big.
- TCP reset A TCP packet that aborts a connection; the answer to a SYN for a port with no listener.