312-50V9 · Question #521
Which of the following command line switch would you use for OS detection in Nmap?
The correct answer is B. -O. Nmap uses specific command-line flags for different scan types, and the -O flag enables OS fingerprinting by analyzing responses to crafted packets.
Question
Which of the following command line switch would you use for OS detection in Nmap?
Options
- A-D
- B-O
- C-P
- D-X
How the community answered
(68 responses)- A1% (1)
- B91% (62)
- C4% (3)
- D3% (2)
Why each option
Nmap uses specific command-line flags for different scan types, and the -O flag enables OS fingerprinting by analyzing responses to crafted packets.
-D enables decoy scanning, which spoofs multiple source IP addresses to obscure the true scanner identity, not OS detection.
The -O flag in Nmap enables operating system detection by sending a series of TCP and UDP probes to the target and comparing responses against a database of known OS fingerprints. This allows the scanner to make educated guesses about the target's operating system, version, and device type. It is the standard and well-documented switch for OS detection in Nmap.
-P flags (such as -Pn, -PS, -PA) control host discovery and ping behavior, not operating system fingerprinting.
-X is not a recognized standard Nmap command-line switch and has no defined function in Nmap.
Concept tested: Nmap OS detection flag usage
Source: https://nmap.org/book/man-os-detection.html
Topics
Community Discussion
No community discussion yet for this question.