312-50 ยท Scanning networks
Host discovery (ping sweeps)
ARP, ICMP echo/timestamp/address-mask, TCP SYN/ACK and UDP ping sweeps, and the matching Nmap options such as -sn, -PE, -PS, -PA, -PU, -PR.
Key points
- Discovery finds live hosts before port scanning.
- ARP works on the local segment, ICMP uses echo, timestamp or address-mask requests, and TCP SYN/ACK or UDP probes get through when ICMP is blocked.
- In Nmap: -sn (discovery only), -PR, -PE/-PP/-PM, -PS, -PA, -PU, and -Pn to skip discovery.
Source: https://linux.die.net/man/1/nmap
Practice questions
Which Nmap option requests an ARP ping for hosts on the local Ethernet segment?
- -PR
- -PE
- -PS
- -PU
Show answer
Answer: A. -PR
-PR is the ARP ping. -PE is ICMP echo, -PS is TCP SYN and -PU is UDP.
Which Nmap options are ICMP-based host discovery probes?
- -PE
- -PP
- -PM
- -sX
- -O
Show answer
Answer: A. -PE, B. -PP, C. -PM
-PE, -PP and -PM send ICMP echo, timestamp and address-mask requests. -sX is a port scan and -O is OS detection.
The Nmap option -sn performs host discovery and then scans the 1000 most common ports of each live host.
Show answer
Answer: False
False. -sn means discovery only: it reports which hosts are up and skips the port scan.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
