nerdexam
GIAC

GCIH · Question #45

Which of the following Nmap commands is used to perform a UDP port scan?

The correct answer is D. nmap -sU. Nmap uses specific flags to designate scan types; -sU is the designated flag for UDP port scanning.

Reconnaissance, Scanning, and Enumeration

Question

Which of the following Nmap commands is used to perform a UDP port scan?

Options

  • Anmap -sY
  • Bnmap -sS
  • Cnmap -sN
  • Dnmap -sU

How the community answered

(18 responses)
  • B
    6% (1)
  • D
    94% (17)

Why each option

Nmap uses specific flags to designate scan types; -sU is the designated flag for UDP port scanning.

Anmap -sY

The -sY flag performs an SCTP INIT scan, which targets SCTP ports rather than UDP ports.

Bnmap -sS

The -sS flag performs a TCP SYN half-open stealth scan, which targets TCP ports only and has no effect on UDP.

Cnmap -sN

The -sN flag performs a TCP NULL scan by sending packets with no TCP flags set, which is a TCP-based technique unrelated to UDP.

Dnmap -sUCorrect

The -sU flag instructs Nmap to perform a UDP scan by sending UDP packets to target ports and analyzing responses. If no response is received the port is marked open|filtered; an ICMP port unreachable message marks it closed. UDP scanning is slower than TCP scans and requires elevated privileges to execute.

Concept tested: Nmap scan type flags for UDP port scanning

Source: https://nmap.org/book/man-port-scanning-techniques.html

Topics

#Nmap#UDP scan#port scanning#scan flags

Community Discussion

No community discussion yet for this question.

Full GCIH Practice