Re: [Nmap-scanner-general] Scanner examples
Brought to you by:
perldork
From: Ravi M. <rma...@vz...> - 2004-04-18 12:03:57
|
Max: Thanks.The problem I am having is figuring out the structure of the $results. I donot seem to be getting value for $host->name(). For example the perl script has the following lines: ============ my $hosts = $results->get_host_list(); while(my $host = $hosts->get_next()) { print "On ". $host->name() .": \n"; ... ... ========= When I run the script, I donot get the name of the host thatz being scanned. #./scan.pl 129.44.171.87-90 On : On : On : On : # Any suggestions. Thanks Ravi ----- Original Message ----- From: "Max" <nm...@we...> To: <nma...@li...> Sent: Saturday, April 17, 2004 11:02 PM Subject: Re: [Nmap-scanner-general] Scanner examples > Ravi, > > On Fri, 16 Apr 2004 18:08:39 EDT, "Ravi Malghan" wrote: > > Hi: I am trying to build a simple script which will ping a subnet and = > > tell me all the IP addresses that are pingable in a variable inside the = > > script. I am trying to get started using the pingscan.pl under the = > > example directory. When I run nmap from command prompt, it gives me the = > > hosts which are up > > > > Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-04-16 17:18 = > > EDT > > Host 137.45.171.66.subscriber.vzavenue.net (66.171.45.137) appears to be = > > up. > > Nmap run completed -- 256 IP addresses (1 host up) scanned in 63.600 = > > seconds > > > > But when I run pingscan, I get no output > > ./pingscan.pl 66.171.45.* > > > > Is the usage of the Nmap::Scanner->new(); described anywhere. > > perldoc Nmap::Scanner > perldoc Nmap::Scanner::Scanner > > Also, when running a script from the shell, be sure to enclose wildcards > in quotes: > > ./pingscan.pl '66.171.45.*' > > Thank you for trying out the module .. please let us know if that doesn't > help or you need more help. > > Regards, > Max > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general |