nerdexam
CompTIA

PT0-003 · Question #95

A penetration tester needs to launch an Nmap scan to find the state of the port for both TCP and UDP services. Which of the following commands should the tester use?

The correct answer is C. nmap -sU -sT -p 1-65535 example.com. To find the state of both TCP and UDP ports using Nmap, the appropriate command should combine both TCP and UDP scan options: Understanding the Options: -sU: Performs a UDP scan. -sT: Performs a TCP connect scan. Command Explanation: Command: nmap -sU -sT -p 1-65535 example.com…

Submitted by anna_se· Mar 6, 2026Reconnaissance and Enumeration

Question

A penetration tester needs to launch an Nmap scan to find the state of the port for both TCP and UDP services. Which of the following commands should the tester use?

Options

  • Anmap -sU -sW -p 1-65535 example.com
  • Bnmap -sU -sY -p 1-65535 example.com
  • Cnmap -sU -sT -p 1-65535 example.com
  • Dnmap -sU -sN -p 1-65535 example.com

How the community answered

(27 responses)
  • A
    4% (1)
  • C
    93% (25)
  • D
    4% (1)

Explanation

To find the state of both TCP and UDP ports using Nmap, the appropriate command should combine both TCP and UDP scan options: Understanding the Options: -sU: Performs a UDP scan. -sT: Performs a TCP connect scan. Command Explanation: Command: nmap -sU -sT -p 1-65535 example.com This command will scan both TCP and UDP ports from 1 to 65535 on the target example.com. Combining -sU and -sT ensures that both types of services are scanned.

Topics

#Nmap#port scanning#TCP scan#UDP scan

Community Discussion

No community discussion yet for this question.

Full PT0-003 Practice