CompTIA PenTest+ (PT1-002) — Question 40
A client has requested that the penetration test scan include the following UDP services: SNMP, NetBIOS, and DNS. Which of the following Nmap commands will perform the scan?
Answer options
- A. nmap ג€"vv sUV ג€"p 53, 123-159 10.10.1.20/24 ג€"oA udpscan
- B. nmap ג€"vv sUV ג€"p 53,123,161-162 10.10.1.20/24 ג€"oA udpscan
- C. nmap ג€"vv sUV ג€"p 53,137-139,161-162 10.10.1.20/24 ג€"oA udpscan
- D. nmap ג€"vv sUV ג€"p 53, 122-123, 160-161 10.10.1.20/24 ג€"oA udpscan
Correct answer: C
Explanation
Option C is correct because it includes the necessary ports for SNMP (161-162) and NetBIOS (137-139), as well as DNS (53). Option A includes the incorrect range for SNMP and NetBIOS, option B misses the NetBIOS ports, and option D has incorrect port ranges for both SNMP and NetBIOS.