Re: [Nmap-scanner-general] Scanner examples
Brought to you by:
perldork
From: Ravi M. <rma...@vz...> - 2004-04-19 16:33:16
|
Max: please ignore my question. The IP address was not resolving to a hostname and so I was seeing a empty hostname. Thanks Ravi ----- Original Message ----- From: "Ravi Malghan" <rma...@vz...> To: <nma...@li...> Sent: Sunday, April 18, 2004 9:48 PM Subject: Re: [Nmap-scanner-general] Scanner examples > Max: I upgraded to 0.7. I still get the same thing. > > my $hosts = $results->get_host_list(); > while(my $host = $hosts->get_next()) { > print "On ". $host->hostname() .": \n"; > } > > #./test_scan.pl 129.44.171.87-90 > On : > On : > On : > On : > # > > Thanks > Ravi > > ----- Original Message ----- > From: "Max" <nm...@we...> > To: <nma...@li...> > Sent: Sunday, April 18, 2004 12:16 PM > Subject: Re: [Nmap-scanner-general] Scanner examples > > > > Ravi, > > > > What version of Nmap::Scanner are you using? It looks like you are > > not using the latest version, 0.7, as that has multiple host names per > > host .. I recommend you upgrade if this is the case .. please let me > know. > > > > I suggest this because between version .5 (CPAN version) and .7 many bugs > > were fixed. I will be uploading .7 to CPAN shortly. > > > > Max > > > > On Sun, 17 Apr 2004, "Ravi Malghan" wrote: > > > 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 : > > > # > > > > > > > > > ------------------------------------------------------- > > 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 > > > > ------------------------------------------------------- > 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 |