Running NMap Scan from Perl

K

KDawg44

Hello,

From a resource perspective, would it be better to loop through and
scan each subnet or build my list of subnets and scan once? Does it
matter?

For instance, would I be better looping through:

nmap -sS SUBNET_1
nmap -sS SUBNET_2
nmap -sS SUBNET_3
......

or

nmap -sS SUBNET_1 SUBNET_2 SUBNET_3 .....

Also, due to a whitelist built into my script (skipped over IP's), the
scan looks more like:

nmap -sS SUBNET_1.1-40 SUBNET_1.42-100 SUBNET_1.102-254

Will any of this make a difference?

Thanks for your suggestions.

Kevin
 
M

Martijn Lievaart

Hello,

From a resource perspective, would it be better to loop through and scan
each subnet or build my list of subnets and scan once? Does it matter?

For instance, would I be better looping through:

nmap -sS SUBNET_1
nmap -sS SUBNET_2
nmap -sS SUBNET_3
.....

or

nmap -sS SUBNET_1 SUBNET_2 SUBNET_3 .....

Also, due to a whitelist built into my script (skipped over IP's), the
scan looks more like:

nmap -sS SUBNET_1.1-40 SUBNET_1.42-100 SUBNET_1.102-254

Will any of this make a difference?

This is actually a nmap question, not a perl question. But yes, it makes
a huge difference as nmap parallises the scans. Read the nmap man page
for more info.

HTH,
M4
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top