Which of the following commands should the tester use?
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?
A . nmap -sU -sW -p 1-65535 example.com
B . nmap -sU -sY -p 1-65535 example.com
C . nmap -sU -sT -p 1-65535 example.com
D . nmap -sU -sN -p 1-65535 example.com
Answer: C
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. Comparison with Other Options:
-sW: Initiates a TCP Window scan, not relevant for identifying the state of TCP and UDP services.
-sY: Initiates a SCTP INIT scan, not relevant for this context.
-sN: Initiates a TCP Null scan, which is not used for discovering UDP services.
Latest PT0-003 Dumps Valid Version with 131 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund