nerdexam
EC-Council

312-50V10 · Question #623

An nmap command that includes the host specification of 202.176.56-57.* will scan _______ number of hosts.

The correct answer is C. 512. The nmap specification 202.176.56-57.* expands the third octet to 2 values and the wildcard fourth octet to 256 values, producing 2 x 256 = 512 total target hosts.

Scanning Networks

Question

An nmap command that includes the host specification of 202.176.56-57.* will scan _______ number of hosts.

Options

  • A2
  • B256
  • C512
  • DOver 10, 000

How the community answered

(55 responses)
  • A
    2% (1)
  • B
    15% (8)
  • C
    76% (42)
  • D
    7% (4)

Why each option

The nmap specification 202.176.56-57.* expands the third octet to 2 values and the wildcard fourth octet to 256 values, producing 2 x 256 = 512 total target hosts.

A2

2 only accounts for the two distinct third-octet values and completely ignores the 256-value wildcard expansion of the fourth octet.

B256

256 would be correct only if a single third-octet value were combined with the wildcard fourth octet, but the range 56-57 contributes a factor of 2.

C512Correct

The range '56-57' in the third octet resolves to exactly 2 values (56 and 57), while the asterisk wildcard in the fourth octet resolves to all 256 possible values (0 through 255). Multiplying 2 by 256 yields exactly 512 hosts that nmap will scan.

DOver 10, 000

Over 10,000 hosts would require much broader ranges or additional wildcards; this specification covers only two contiguous /24-equivalent address blocks.

Concept tested: nmap target specification range and wildcard expansion

Source: https://nmap.org/book/man-target-specification.html

Topics

#nmap host specification#IP range wildcard#host count calculation#network scanning

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice