312-50V11 · Question #603
Which command line switch would be used in NMAP to perform operating system detection?
The correct answer is D. -O. The -O flag in Nmap enables OS detection by fingerprinting the target's TCP/IP stack behavior.
Question
Which command line switch would be used in NMAP to perform operating system detection?
Options
- A-OS
- B-sO
- C-sP
- D-O
How the community answered
(33 responses)- A3% (1)
- B6% (2)
- C3% (1)
- D88% (29)
Why each option
The -O flag in Nmap enables OS detection by fingerprinting the target's TCP/IP stack behavior.
-OS is not a valid Nmap flag; Nmap switches are case-sensitive and no combined -OS flag exists in the tool.
-sO performs an IP protocol scan to enumerate open IP protocols on the target, which is unrelated to OS fingerprinting.
-sP (replaced by -sn in modern Nmap) performs a ping-only host discovery scan without port scanning or OS detection.
The -O flag instructs Nmap to perform active OS fingerprinting by sending a series of specially crafted probes and comparing the responses against its internal OS signature database. Differences in TCP/IP stack implementation details - such as window size, TTL, and response to unusual flags - allow Nmap to infer the target operating system. This is distinct from port scanning and requires at least one open and one closed port to function accurately.
Concept tested: Nmap OS detection flag -O
Source: https://nmap.org/book/man-os-detection.html
Topics
Community Discussion
No community discussion yet for this question.