CompTIA PenTest+ (PT0-002) — Question 4
A security engineer identified a new server on the network and wants to scan the host to determine if it is running an approved version of Linux and a patched version of Apache. Which of the following commands will accomplish this task?
Answer options
- A. nmap ג€"f ג€"sV ג€"p80 192.168.1.20
- B. nmap ג€"sS ג€"sL ג€"p80 192.168.1.20
- C. nmap ג€"A ג€"T4 ג€"p80 192.168.1.20
- D. nmap ג€"O ג€"v ג€"p80 192.168.1.20
Correct answer: C
Explanation
The correct answer is C because the '-A' option enables OS detection and version detection, which is essential for confirming the Linux version and Apache patch status. Option A only provides service version information, while B lists hosts without scanning, and D enables OS detection but does not provide version detection in detail.