exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 348 discussion

Actual exam question from CompTIA's PT0-002
Question #: 348
Topic #: 1
[All PT0-002 Questions]

A penetration tester is scanning a customer subnet and wants to scan ports that are known to have only well-known UDP services present. Which of the following can the tester use to scan for SNMP. NTP, NetBIOS, and DNS?

  • A. nmap -vv -sUV -p 53,123,137-139,161 192.168.1.0/24 -oA udpscan
  • B. nmap -vv -sXV -p 53-123,137,139,161 192.168.1.0/24 -oA udpscan
  • C. nmap -vv -sTV -p 53, 123, 137-139,161,123 192.168.1.0/24 -oA udpscan
  • D. nmap -vv -sUV -p 53-161,192.168.1.0 -oA udpscan
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
fecffa8
5 months, 3 weeks ago
Selected Answer: A
-vv: Increases verbosity to give more detailed output. -sU: Specifies a UDP scan. -sV: Enables version detection. -p 53,123,137-139,161: Specifies the ports to scan (DNS, NTP, NetBIOS, and SNMP). 192.168.1.0/24: Specifies the subnet to scan. -oA udpscan: Outputs the scan results in all available formats (normal, XML, and grepable) with the base name udpscan. B. nmap -vv -sXV -p 53-123,137,139,161 192.168.1.0/24 -oA udpscan: This command incorrectly specifies a range (53-123) that includes non-relevant ports and uses -sX, which is for Xmas scan, not suitable for UDP. C. nmap -vv -sTV -p 53, 123, 137-139,161,123 192.168.1.0/24 -oA udpscan: This command uses -sT, which is for TCP connect scan, not suitable for UDP. D. nmap -vv -sUV -p 53-161,192.168.1.0 -oA udpscan: This command uses an incorrect port range (53-161) that includes non-relevant ports and incorrectly formats the target subnet.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago