312-50V11 · Question #941
Consider the following Nmap output: What command-line parameter could you use to determine the type and version number of the web server?
The correct answer is A. -sv. The Nmap -sV flag enables service and version detection, revealing the type and version number of services such as web servers running on open ports.
Question
Consider the following Nmap output:
What command-line parameter could you use to determine the type and version number of the web server?
Exhibit
Options
- A-sv
- B-Pn
- C-V
- D-ss
How the community answered
(43 responses)- A93% (40)
- C2% (1)
- D5% (2)
Why each option
The Nmap -sV flag enables service and version detection, revealing the type and version number of services such as web servers running on open ports.
The -sV flag in Nmap enables version detection by probing open ports and interrogating running services to determine the application name and version number, which would identify the web server type (e.g., Apache 2.4.51 or nginx 1.18). This is the correct parameter for gathering service version information from a target host.
-Pn skips host discovery (ping probing) and treats all hosts as online, which has no effect on identifying service versions.
-V (uppercase) displays the Nmap version number itself, not information about target services or applications.
-sS performs a TCP SYN (stealth) port scan to identify open ports, but does not detect service types or version numbers.
Concept tested: Nmap service and version detection flag
Source: https://nmap.org/book/man-version-detection.html
Topics
Community Discussion
No community discussion yet for this question.
