312-50V13 practice question 21 of 35

Techno Security Inc. recently hired John as a penetration tester. He was tasked with identifying open ports in the target network and determining whether the ports are online and any firewall rule sets are encountered. John decided to perform a TCP SYN ping scan on the target network. Which of the following Nmap commands must John use to perform the TCP SYN ping scan?

Full set: 573 questions

Domain Cryptography

Answer options
A: nmap -sn -pp
B: nmap -sn -PO
C: nmap -sn -PS Correct answer
D: nmap -sn -PA
Correct Answer:
C. nmap -sn -PS < target IP address >
Explanation

The question requires the specific Nmap command to perform a TCP SYN ping scan. The nmap -sn command combination instructs Nmap to perform only host discovery (a "ping scan") without conducting a full port scan. The -PS flag is the specific probe type that uses a TCP SYN packet for this discovery. It sends a TCP packet with the SYN flag set to a target port (default is 80) to elicit a response, thereby determining if the host is online.

Why Incorrect

A. nmap -sn -pp: The -pp option is invalid. The correct Nmap option for an ICMP timestamp ping is -PP (uppercase), which is a different host discovery method.
B. nmap -sn -PO: The -PO option performs an IP Protocol Ping. This technique sends IP packets with a specified protocol number and is not a TCP-based SYN scan.
D. nmap -sn -PA: The -PA option performs a TCP ACK Ping. This method sends a TCP packet with the ACK flag set, which is a different technique from the requested SYN ping.

References

1. Nmap Official Documentation: Gordon "Fyodor" Lyon

Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Auditing

2nd ed. (Nmap Project

2009). In Chapter 3

"Host Discovery (Ping Scanning)"

the section "TCP SYN Ping" explicitly details the -PS option. It states

"This option sends an empty TCP packet with the SYN flag set... A SYN/ACK indicates the port is open. A RST packet indicates the port is closed." The -sn option is also described as disabling the port scan phase. (Reference: https://nmap.org/book/man-host-discovery.html

Section: -PS (TCP SYN Ping))

2. University Courseware: University of Washington

CSE 484: Computer Security and Privacy

Lab 1: Network Security. The lab materials describe various Nmap scan types for host discovery. The documentation for the lab explicitly states: "The -PS option uses a TCP SYN Ping to discover hosts." This confirms its use in an academic context for the exact purpose described in the question. (Reference: UW CSE 484 Lab 1 materials).

3. Academic Publication: Santos

O.

& Stuppi

J. (2011). The Nmap Scripting Engine. In Syngress. This book

often used as academic material

details Nmap's capabilities. Chapter 2

"Nmap Fundamentals

" covers host discovery techniques

where -PS is identified as the flag for initiating a TCP SYN ping as a discovery method.

Scroll to Top