Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Running NMap Scan from Perl

Reply
Thread Tools

Running NMap Scan from Perl

 
 
KDawg44
Guest
Posts: n/a
 
      02-05-2010
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
 
Reply With Quote
 
 
 
 
Martijn Lievaart
Guest
Posts: n/a
 
      02-05-2010
On Fri, 05 Feb 2010 06:21:50 -0800, KDawg44 wrote:

> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python Nmap Scour sP script for linux Daniel Folkes Python 0 11-28-2007 02:34 AM
I have intruders in my home networking nmap, what can I do? =?Utf-8?B?R29kdGNoZXNz?= Wireless Networking 8 03-09-2007 03:42 AM
nmap, ethereal, tcpdump, ngrep etc for Windows BOBAH.XPEHOB@gmail.com Computer Security 0 08-19-2005 02:03 PM
Nmap Malloc etc... lasek C Programming 5 11-04-2004 12:01 PM
Hiding a PIX from nmap and port-scanners. Francois Labreque Cisco 1 11-11-2003 06:42 AM



Advertisments