How can NMAP be used to scan these adjacent Class C networks?

A company has five different subnets: 192.168.1.0, 192.168.2.0, 192.168.3.0, 192.168.4.0 and
192.168.5.0. How can NMAP be used to scan these adjacent Class C networks?

A company has five different subnets: 192.168.1.0, 192.168.2.0, 192.168.3.0, 192.168.4.0 and
192.168.5.0. How can NMAP be used to scan these adjacent Class C networks?

A.
NMAP -P 192.168.1-5.

B.
NMAP -P 192.168.0.0/16

C.
NMAP -P 192.168.1.0,2.0,3.0,4.0,5.0

D.
NMAP -P 192.168.1/17



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Nabil Abdulaal

Nabil Abdulaal

The correct answer is : B. NMAP -P 192.168.0.0/16

or actually it suppose to be NMAP -P[PortNumber] 192.168.0.0/16

and not 1-5, since “-” is consider as a key indicator

hh

hh

Hi admin,

it should be B and add a port number just like Nabil noted.

Mike

Mike

Choice-A should be like:
NMAP -Pn 192.168.1-5.0

-Pn and *.0 are missing

hacker

hacker

A is Correct….
Goggle it…

Scan a single ip address – nmap 192.168.1.1
Multiple IP – nmap 192.168.1.1 192.168.1.2 192.168.1.3
with subnet – nmap 192.168.1.1,2,3
range of IP – nmap 192.168.1.1-20
range of IP with wildcard: – nmap 192.168.1.*
entire subnet: – nmap 192.168.1.0/24