CompTIA DataX (CNX-001) — Question 52

A network engineer is working on securing the environment in the screened subnet. Before penetration testing, the engineer would like to run a scan on the servers to identify the OS, application versions, and open ports. Which of the following commands should the engineer use to obtain the information?

Answer options

Correct answer: B

Explanation

The correct answer is B, as 'nmap -A' is specifically designed for advanced network scanning, allowing the identification of OS, application versions, and open ports. Option A uses tcpdump, which is primarily for packet capturing, not for scanning. Option C uses netcat, which is not capable of performing comprehensive scans like nmap. Option D utilizes hping3 for sending custom TCP/IP packets, which is not intended for the same purpose as nmap.