312-50V10 · Question #628
Which of the following command line switch would you use for OS detection in Nmap?
The correct answer is B. -O. The -O flag enables OS detection in nmap by analyzing TCP/IP stack fingerprints of the target.
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
(26 responses)- A4% (1)
- B92% (24)
- D4% (1)
Why each option
The -O flag enables OS detection in nmap by analyzing TCP/IP stack fingerprints of the target.
-D enables decoy scanning, which inserts fake source IP addresses alongside the real scanner's IP in probe packets to obscure the attacker's true origin.
The -O switch instructs nmap to perform active OS fingerprinting by sending specially crafted TCP, UDP, and ICMP probes and analyzing target responses including TTL values, TCP window sizes, IP ID sequences, and other TCP/IP stack behaviors. Nmap then compares these observed characteristics against its fingerprint database to determine the most likely operating system running on the target host.
-P controls ping and host discovery methods (for example -Pn disables ping to treat all hosts as up) and has no role in OS detection.
-X is not a recognized or valid nmap command line switch and performs no function in nmap.
Concept tested: Nmap OS detection command line switch usage
Source: https://nmap.org/book/man-os-detection.html
Topics
Community Discussion
No community discussion yet for this question.