Bitzu

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

Single choice

Which Nmap option requests an ARP ping for hosts on the local Ethernet segment?

  1. -PR
  2. -PE
  3. -PS
  4. -PU
Show answer

Answer: A. -PR

-PR is the ARP ping. -PE is ICMP echo, -PS is TCP SYN and -PU is UDP.

Select all that apply

Which Nmap options are ICMP-based host discovery probes?

  1. -PE
  2. -PP
  3. -PM
  4. -sX
  5. -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.

True or false

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module