nerdexam
CompTIA

PT0-002 · Question #161

A penetration tester is attempting to discover live hosts on a subnet quickly. Which of the following commands will perform a ping scan?

The correct answer is A. nmap -sn 10.12.1.0/24. To quickly discover live hosts on a subnet, a penetration tester should use the Nmap ping scan command. This type of scan identifies active devices without performing port scans, making it fast and efficient for host discovery.

Reconnaissance and enumeration

Question

A penetration tester is attempting to discover live hosts on a subnet quickly. Which of the following commands will perform a ping scan?

Exhibit

PT0-002 question #161 exhibit

Options

  • Anmap -sn 10.12.1.0/24
  • Bnmap -sV -A 10.12.1.0/24
  • Dnmap -sT -p- 10.12.1.0/24

How the community answered

(59 responses)
  • A
    88% (52)
  • B
    8% (5)
  • D
    3% (2)

Why each option

To quickly discover live hosts on a subnet, a penetration tester should use the Nmap ping scan command. This type of scan identifies active devices without performing port scans, making it fast and efficient for host discovery.

Anmap -sn 10.12.1.0/24Correct

The nmap -sn command performs a "no port scan" or "ping scan" operation, which is designed to quickly discover live hosts on a network by sending ICMP echo requests, TCP SYN packets to common ports, or ARP requests, without performing a full port scan on each host. This method is effective for identifying which hosts are online within a specified subnet range.

Bnmap -sV -A 10.12.1.0/24

The nmap -sV -A command performs version detection (-sV) and aggressive scanning (-A), including OS detection, version detection, script scanning, and traceroute, which is a comprehensive and time-consuming scan, not a quick ping scan for host discovery.

Dnmap -sT -p- 10.12.1.0/24

The nmap -sT -p- command performs a full TCP connect scan (-sT) across all 65535 ports (-p-), which is a very intrusive and time-consuming port scan, not a quick ping scan for host discovery.

Concept tested: Nmap host discovery ping scan

Source: https://nmap.org/book/man-host-discovery.html

Topics

#nmap#host discovery#ping scan#reconnaissance

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice