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.
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)- B6% (1)
- D94% (17)
Why each option
Nmap uses specific flags to designate scan types; -sU is the designated flag for UDP port scanning.
The -sY flag performs an SCTP INIT scan, which targets SCTP ports rather than UDP ports.
The -sS flag performs a TCP SYN half-open stealth scan, which targets TCP ports only and has no effect on UDP.
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.
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
Community Discussion
No community discussion yet for this question.