nerdexam
EC-Council

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.

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

(68 responses)
  • A
    1% (1)
  • B
    91% (62)
  • C
    4% (3)
  • D
    3% (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.

A-D

-D enables decoy scanning, which spoofs multiple source IP addresses to obscure the true scanner identity, not OS detection.

B-OCorrect

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.

C-P

-P flags (such as -Pn, -PS, -PA) control host discovery and ping behavior, not operating system fingerprinting.

D-X

-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

#Nmap#OS detection#command flags#port scanning

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice