nerdexam
EC-Council

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.

Scanning Networks

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)
  • A
    4% (1)
  • B
    92% (24)
  • D
    4% (1)

Why each option

The -O flag enables OS detection in nmap by analyzing TCP/IP stack fingerprints of the target.

A-D

-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.

B-OCorrect

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.

C-P

-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.

D-X

-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

#nmap#OS detection flag#command-line options#active fingerprinting

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice