Reconnaissance and Enumeration
A SYN scan of a server shows only TCP port 22 open, but the tester suspects TFTP and SNMP are also running. Which command BEST discovers these services?
Show the answer
Correct answerA. nmap -sU -p 69,161 10.0.0.5
AWhy this is right: The -sU option scans UDP ports, which is where TFTP and SNMP listen.
BWhy not this: It guesses the OS and needs TCP ports to do so; it does not scan UDP services.
CWhy not this: A SYN scan tests TCP only, so widening the range still misses UDP services.
DWhy not this: It only checks whether the host is up, which is host discovery and lists no services.
TFTP (UDP 69) and SNMP (UDP 161) run over UDP, so a UDP scan with -sU is needed to find them. A full-range SYN scan only tests TCP ports and cannot see UDP services.