Vulnerability Discovery and Analysis
A TCP SYN scan of a server shows only ports 22 and 443 open. The client says the host also runs an SNMP agent on its default port. What should the tester do next?
Show the answer
Correct answerB. Run a UDP scan with -sU against port 161
AWhy not this: Xmas scans send TCP packets with unusual flags, so they cannot detect a UDP listener.
BWhy this is right: SNMP runs over UDP 161, and -sU is the Nmap option that probes UDP ports.
CWhy not this: A connect scan is still TCP, so it misses a UDP service just as the SYN scan did.
DWhy not this: More TCP ports will not help, because SNMP does not use TCP by default.
SNMP listens on UDP 161 by default, and TCP scans never probe UDP ports, so only a UDP scan with -sU can find it. A Xmas scan is a stealth variant, but it still sends TCP packets and cannot reach a UDP service.