Vulnerability Discovery and Analysis

A SYN scan of all TCP ports on a server finds only ports 22 and 80 open. The tester suspects the server also runs SNMP. Which command checks for it?

Show the answer

Correct answerB. nmap -sU -p 161 target

AWhy not this: An ACK scan maps firewall rules over TCP and does not probe UDP services.

BWhy this is right: A UDP scan sends UDP probes to port 161, where SNMP listens.

CWhy not this: A TCP connect scan of port 161 tests TCP, but SNMP uses UDP.

DWhy not this: A SYN scan of all TCP ports already ran and can never see a UDP service.

SNMP listens on UDP port 161, and TCP scans never probe UDP ports, so a UDP scan (-sU) is required. Rescanning every TCP port with -sS still tests only TCP.