nerdexam
EC-Council

312-50V9 · Question #107

What results will the following command yield: 'NMAP -sS -O -p 123-153 192.168.100.3'?

The correct answer is D. A stealth scan, determine operating system, and scanning ports 123 to 153. The command combines three distinct Nmap flags to perform a stealth SYN scan with OS detection across a specific port range on a single host.

Scanning Networks

Question

What results will the following command yield: 'NMAP -sS -O -p 123-153 192.168.100.3'?

Options

  • AA stealth scan, opening port 123 and 153
  • BA stealth scan, checking open ports 123 to 153
  • CA stealth scan, checking all open ports excluding ports 123 to 153
  • DA stealth scan, determine operating system, and scanning ports 123 to 153

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    9% (2)
  • D
    87% (20)

Why each option

The command combines three distinct Nmap flags to perform a stealth SYN scan with OS detection across a specific port range on a single host.

AA stealth scan, opening port 123 and 153

The -p 123-153 syntax defines a contiguous range of ports from 123 to 153, not just two individual ports.

BA stealth scan, checking open ports 123 to 153

This option correctly identifies the stealth scan and port range but omits the OS detection function provided by the -O flag.

CA stealth scan, checking all open ports excluding ports 123 to 153

The -p 123-153 flag includes the port range in the scan rather than excluding it; exclusion requires the --exclude-ports flag.

DA stealth scan, determine operating system, and scanning ports 123 to 153Correct

The -sS flag initiates a TCP SYN stealth scan, the -O flag enables operating system detection by analyzing TCP/IP stack fingerprints, and -p 123-153 instructs Nmap to scan ports 123 through 153 inclusive. All three components together match exactly what option D describes.

Concept tested: Nmap SYN scan with OS detection and port range syntax

Source: https://nmap.org/book/man-briefoptions.html

Topics

#Nmap#SYN scan#OS detection#port range scanning

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice