CompTIA PenTest+ (PT1-002) — Question 103
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 command 'nmap -A -T4 -p80 192.168.1.20' enables OS detection and version detection, which is necessary for identifying the Linux version and the version of Apache. Option A focuses on service version detection but does not include OS detection; Option B is for listing hosts and does not perform a detailed scan; Option D is primarily for OS detection but lacks the comprehensive scan features provided by option C.