nmap-scanner-general Mailing List for Nmap::Scanner (Page 2)
Brought to you by:
perldork
You can subscribe to this list here.
2004 |
Jan
|
Feb
(6) |
Mar
(2) |
Apr
(8) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(7) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
(24) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Max <nm...@we...> - 2006-11-01 00:45:17
|
Matthias, Ah, that makes sense, Windows doesn't like single quotes. I need to change those to be double quotes to be portable for Windows users, the single quotes were for cygwin users who use paths with spaces, so should be my $cmd = qq("$nmap" -v -v -v); Would you be kind enough to try replacing the code below with the one above and see if your script works with it on Windows? Thank you for taking the time to find this issue, you will get credit for the find in the Changes file once we determine if the above works for you. - Max On 10/31/06, Matthias Waehlisch <mw...@fh...> wrote: > hi Max, > > I found the point: at $perl/site/lib/Nmap/Scanner/Scanner.pm there is > the line 838: > > * my $cmd = "'$nmap' -v -v -v"; > > Windows is confused by the inverted commad (''). I removed it and it's > going fine. > > thanks again > matthias > > On Tue, 31 Oct 2006, Max wrote: > > > Hi Matthias, > > > > I noticed a bug with 4.03 that is solved in 4.20 that happens if you > > specify an nmap command-line with -sS and -sU and a port list with -P > > N,N1, etc > > > > the bug is that nmap outputs a warning message about 'UDP port scan > > requested, but no UDP ports specified; skipping' > > > > If you could, please upgrade to version 1.0 of Nmap-Scanner and re-run > > your script, one of the fixes I did with 1.0 was to improve the > > modules' error reporting .. .9 and earlier don't catch and report the > > stderr from nmap properly, 1.0 does (from my testing). > > > > Let me know what the results are after upgrading, and if the issue > > persists please post code that you are using to the list so I can help > > troubleshoot it / test it in my own environment to try to figure out > > what is happening. > > > > Thanks, > > Max > > > > On 10/31/06, Matthias Waehlisch <mw...@fh...> wrote: > > > > $Nmap::Scanner::DEBUG = 1; > > > > > > > Unfortunately it haven't any effect. > > > > > > Yes, you are right ... I downgrad XML::SAX to version 0.12 and the empty > > > <nmap-msg></nmap-msg> field was filled. > > > > > > It says that file or directory name is wrong - I don't know why. I will > > > try to look on it. > > > > > > > What happens when you run the command line below on your windows host? > > > > What output do you get? > > > > > > > That's the strange point. If I exactly execute the cmdline everything > > > works fine. > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Nmap-scanner-general mailing list > > Nma...@li... > > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > |
From: Matthias W. <mw...@fh...> - 2006-10-31 18:25:14
|
hi Max, I found the point: at $perl/site/lib/Nmap/Scanner/Scanner.pm there is the line 838: * my $cmd = "'$nmap' -v -v -v"; Windows is confused by the inverted commad (''). I removed it and it's going fine. thanks again matthias On Tue, 31 Oct 2006, Max wrote: > Hi Matthias, > > I noticed a bug with 4.03 that is solved in 4.20 that happens if you > specify an nmap command-line with -sS and -sU and a port list with -P > N,N1, etc > > the bug is that nmap outputs a warning message about 'UDP port scan > requested, but no UDP ports specified; skipping' > > If you could, please upgrade to version 1.0 of Nmap-Scanner and re-run > your script, one of the fixes I did with 1.0 was to improve the > modules' error reporting .. .9 and earlier don't catch and report the > stderr from nmap properly, 1.0 does (from my testing). > > Let me know what the results are after upgrading, and if the issue > persists please post code that you are using to the list so I can help > troubleshoot it / test it in my own environment to try to figure out > what is happening. > > Thanks, > Max > > On 10/31/06, Matthias Waehlisch <mw...@fh...> wrote: > > > $Nmap::Scanner::DEBUG = 1; > > > > > Unfortunately it haven't any effect. > > > > Yes, you are right ... I downgrad XML::SAX to version 0.12 and the empty > > <nmap-msg></nmap-msg> field was filled. > > > > It says that file or directory name is wrong - I don't know why. I will > > try to look on it. > > > > > What happens when you run the command line below on your windows host? > > > What output do you get? > > > > > That's the strange point. If I exactly execute the cmdline everything > > works fine. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > |
From: Max <nm...@we...> - 2006-10-31 17:15:20
|
Hi Matthias, I noticed a bug with 4.03 that is solved in 4.20 that happens if you specify an nmap command-line with -sS and -sU and a port list with -P N,N1, etc the bug is that nmap outputs a warning message about 'UDP port scan requested, but no UDP ports specified; skipping' If you could, please upgrade to version 1.0 of Nmap-Scanner and re-run your script, one of the fixes I did with 1.0 was to improve the modules' error reporting .. .9 and earlier don't catch and report the stderr from nmap properly, 1.0 does (from my testing). Let me know what the results are after upgrading, and if the issue persists please post code that you are using to the list so I can help troubleshoot it / test it in my own environment to try to figure out what is happening. Thanks, Max On 10/31/06, Matthias Waehlisch <mw...@fh...> wrote: > > $Nmap::Scanner::DEBUG = 1; > > > Unfortunately it haven't any effect. > > Yes, you are right ... I downgrad XML::SAX to version 0.12 and the empty > <nmap-msg></nmap-msg> field was filled. > > It says that file or directory name is wrong - I don't know why. I will > try to look on it. > > > What happens when you run the command line below on your windows host? > > What output do you get? > > > That's the strange point. If I exactly execute the cmdline everything > works fine. |
From: Matthias W. <mw...@fh...> - 2006-10-31 16:29:27
|
Hi Max, please excuse the late reply. On Sun, 29 Oct 2006, Max wrote: > I will be updating the version before the end of November to work with > 4.0.3, in the mean time can you turn on debugging and send the list > the output? > > To do this, set > > $Nmap::Scanner::DEBUG = 1; > Unfortunately it haven't any effect. > Hmm, starting to get back into the module tonight, this error usually > happens when nmap throws an error that isn't handled by the module > correctly or that causes nmap to output an error message that XML::SAX > then cannot decipher as XML. > Yes, you are right ... I downgrad XML::SAX to version 0.12 and the empty <nmap-msg></nmap-msg> field was filled. It says that file or directory name is wrong - I don't know why. I will try to look on it. > What happens when you run the command line below on your windows host? > What output do you get? > That's the strange point. If I exactly execute the cmdline everything works fine. thanks matthias |
From: Max <nm...@we...> - 2006-10-29 19:55:08
|
Version 1.0 of Nmap::Scanner is now available for download. Thanks to all of you who emailed me regarding problems you were having with the module. Highlights of this release include: * XML scan processor now uses IPC::Open3, makes error reporting much nicer * Added model objects Nmap::Scanner::Task (taskbegin and taskend XML), Nmap::Scanner::TaskProgress (taskprogress XML), and Nmap::Scanner::Distance (distance XML) * Added 3 new events a user can register for - task_started - task_ended - task_progress The above 3 events will let you immediately be notified when nmap outputs taskbegin, taskend, and taskprogress elements .. good for GUIs that show progress to a user. Thank you to everyone who posted problems, suggestions and patches. Your input is much appreciated! You can get the latest release via the Nmap::Scanner home page: http://nmap-scanner.sf.net/ Please feel free to post any questions / problems / suggestions you have to the Source Forge mailing list for this project, to the "Help" forum available on the Source Forge project page, or to the bug tracker available via the SourceForge project page: http://www.sf.net/projects/nmap-scanner/ Regards, Max |
From: Max <nm...@we...> - 2006-10-29 06:03:22
|
Hmm, starting to get back into the module tonight, this error usually happens when nmap throws an error that isn't handled by the module correctly or that causes nmap to output an error message that XML::SAX then cannot decipher as XML. What happens when you run the command line below on your windows host? What output do you get? please do also reply with the output from the perl script with debugging on as I described in my previous email. Thank you, max On 10/5/06, Matthias Waehlisch <mw...@fh...> wrote: > hi all, > > is there a solution for the problem of Jack Coates posted at 2006-05-01? > > I use perl 5.8.7 and get the same problem: > > Unable to recognise encoding of this document at > C:/Programme/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line 98. > <nmap-error> > <pid="3712"/> > <cmdline="'C:\Programme\nmap-4.03\nmap.exe' -v -v -v -sS -p 1-100 -O > -oX - 172.16.252.1"/> > <perl-msg>Document requires an element [Ln: 1, Col: 0] > </perl-msg> > <nmap-msg></nmap-msg> > </nmap-error> > > regards > matthias > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > |
From: Max <nm...@we...> - 2006-10-29 04:20:35
|
Hi Matthias, I will be updating the version before the end of November to work with 4.0.3, in the mean time can you turn on debugging and send the list the output? To do this, set $Nmap::Scanner::DEBUG = 1; In your script, somewhere after the use Nmap::Scanner; line and before you actually do your scan. Regards, Max On 10/5/06, Matthias Waehlisch <mw...@fh...> wrote: > hi all, > > is there a solution for the problem of Jack Coates posted at 2006-05-01? > > I use perl 5.8.7 and get the same problem: > > Unable to recognise encoding of this document at > C:/Programme/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line 98. > <nmap-error> > <pid="3712"/> > <cmdline="'C:\Programme\nmap-4.03\nmap.exe' -v -v -v -sS -p 1-100 -O > -oX - 172.16.252.1"/> > <perl-msg>Document requires an element [Ln: 1, Col: 0] > </perl-msg> > <nmap-msg></nmap-msg> > </nmap-error> > > regards > matthias > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > |
From: Max S. <per...@us...> - 2006-10-18 01:21:24
|
Hi, I apologize for the overly long delay between Nmap::Scanner updates, I wanted to wait until the SoC features died down (boy, what a great group of new features this summer, eh?) .. I am planning on doing an Nmap::Scanner update before the end of the new year, one that will take into account all the changes to the XML that have occurred. If any of you have features you would like me to add to this module (flames ok, i know I have really been horrible about updating the module this year), please let me know, now would be a great time to express them as I will start on the code within the month. Also, if anyone on this list is interested in helping, please let me know, you will get full credit for your work and your help would certainly make the release go faster than if I do it on my own :). Thank you for being a member of this list, my best wishes to you all. Regards, Max |
From: Matthias W. <mw...@fh...> - 2006-10-05 09:28:33
|
hi all, is there a solution for the problem of Jack Coates posted at 2006-05-01? I use perl 5.8.7 and get the same problem: Unable to recognise encoding of this document at C:/Programme/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line 98. <nmap-error> <pid="3712"/> <cmdline="'C:\Programme\nmap-4.03\nmap.exe' -v -v -v -sS -p 1-100 -O -oX - 172.16.252.1"/> <perl-msg>Document requires an element [Ln: 1, Col: 0] </perl-msg> <nmap-msg></nmap-msg> </nmap-error> regards matthias |
From: Brandon B. <be...@gm...> - 2006-05-02 20:22:56
|
Sure sure, and I will most likely use your module when it is supported, but right now that is not the case and in a pinch i'll wade through 10 layers of hashes to get what I need. ~brandon On 5/2/06, Max <nm...@we...> wrote: > If all you need is XML output from the module for a quick parse or > one-off / infrequently used script, my module is probably not as > useful as Nmap::Parser :) or just using the greppable output from nmap > in a shell pipeline or using a straight XML to hash-of-hashes module > like XML::Simple. > > Why? The point of my module is to make it easy to maintain a long > running, larger program that needs nmap functionality; by creating > classes from the XML output you get a more maintainable program .. > Nmap::Scanner gives you a tighter software 'contract' between your > program and nmap, which will help keep code that uses nmap in a larger > perl program readable and maintainable (in my opinion). For a one > off, or quick 'grep' type scripts, Nmap::Scanner is probably more > effort to implement in a program than it is worth :). > > I encourage you all to use this module, but I am not going to pretend > :p that this is the best ever module for working with nmap *or* that > it is *the* module to use in all situations requiring nmap. > > I also understand that I need to update this module soon to work 100% > with the nmap 4.0.x release. Will do that within the next week or > two. > > Thank you to all of you who have tried this module, use this module, > and for all of the feedback (negative and positive) about the module. > > Regards, > Max > > On 5/2/06, Brandon Bennett <be...@gm...> wrote: > > I had the exact same issue and gave up on Nmap::Scanner and just used > > XML::Simple. Here is the code below. > > > > use XML::Simple; > > use Data::Dumer; > > > > $nmap =3D "\"c:\\Program Files\\nmap\\nmap.exe\" -v -v -v -sS -p 22-23 > > -O -A -oX -"; > > > > $xml =3D new XML::Simple; > > $output =3D `$nmap $ip`; > > $data =3D $xml->XMLin($output); > > > > Dumper($xml); > > > > > > -----------------------------------------------------------------------= ---------------------------- > > > > H:\>"c:\Program Files\Nmap\nmap.exe" -V > > > > Nmap version 4.01 ( http://www.insecure.org/nmap ) > > > > -----------------------------------------------------------------------= ----------------------------- > > > > H:\>perl -v > > > > This is perl, v5.8.8 built for MSWin32-x86-multi-thread > > (with 21 registered patches, see perl -V for more detail) > > > > Copyright 1987-2006, Larry Wall > > > > Binary build 816 [255195] provided by ActiveState http://www.ActiveStat= e.com > > Built Mar 1 2006 18:00:52 > > -----------------------------------------------------------------------= ------------------------------- > > > > On 5/1/06, Jack Coates <ja...@mo...> wrote: > > > windows xp > > > C:\Documents and Settings\Jack Coates>perl -v > > > > > > This is perl, v5.8.8 built for MSWin32-x86-multi-thread > > > (with 25 registered patches, see perl -V for more detail) > > > > > > Copyright 1987-2006, Larry Wall > > > > > > Binary build 817 [257965] provided by ActiveState > > > http://www.ActiveState.com > > > Built Mar 20 2006 17:54:25 > > > > > > C:\Documents and Settings\Jack Coates>nmap -V > > > > > > Nmap version 4.01 ( http://www.insecure.org/nmap ) > > > > > > thanks for looking at it! > > > > > > > > > On 5/1/06, Max < nm...@we...> wrote: > > > > > > > > Hi Jack, > > > > > > > > Please reply with the version of nmap, Windows, and perl you are us= ing and > > > I will be happy to see if I can recreate and come up with a fix for t= his > > > problem. > > > > > > > > Thank you for using the module, sorry you have run into this issue. > > > > > > > > Regards, > > > > > > > > Max > > > > > > > > > > > > > > > > On 5/1/06, Jack Coates <ja...@mo...> wrote: > > > > > > > > > > Hi, > > > > > > > > > > Thanks for this module, I've been struggling with Nmap-Parser-XML= and > > > this looks much more promising. However, I'm having some trouble gett= ing it > > > to work. > > > > > > > > > > Script: > > > > > use Nmap::Scanner; > > > > > my $scanner =3D new Nmap::Scanner; > > > > > $scanner->tcp_syn_scan; > > > > > $scanner->add_scan_port('1-100'); > > > > > $scanner->guess_os(); > > > > > $scanner->add_target(' 172.16.252.1'); > > > > > my $results =3D $scanner->scan(); > > > > > my $xml =3D $results->as_xml(); > > > > > print $xml; > > > > > exit 0; > > > > > > > > > > Result: > > > > > Unable to recognise encoding of this document at > > > C:/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line > > > 96. > > > > > <nmap-error> > > > > > <pid=3D"1168"/> > > > > > <cmdline=3D"'C:\Program Files\Nmap\nmap.exe' -v -v -v -sS -p 1-= 100 -O > > > -oX - 172.16.252.1"/> > > > > > <perl-msg>Document requires an element [Ln: 1, Col: 0] > > > > > </perl-msg> > > > > > <nmap-msg></nmap-msg> > > > > > </nmap-error> > > > > > > > > > > I get the feeling that this is probably something simple, but STF= W and > > > RTFM aren't turning anything up yet... everything I've read implies t= hat > > > PurePerl is the right parser to use. However, since installing this p= arser > > > PPM throws the same encoding error, so it looks like it's horked. Adv= ice, > > > please? > > > > > > > > > > thanks, > > > > > > > > > > -- > > > > > "I spent all me tin with the ladies drinking gin, > > > > > So across the Western ocean I must wander" -- traditional > > > > > > > > > > > > > > > > > > > > -- > > > "I spent all me tin with the ladies drinking gin, > > > So across the Western ocean I must wander" -- traditional > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, securit= y? > > Get stuff done quickly with pre-integrated technology to make your job = easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > > _______________________________________________ > > Nmap-scanner-general mailing list > > Nma...@li... > > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > |
From: Max <nm...@we...> - 2006-05-02 17:49:38
|
If all you need is XML output from the module for a quick parse or one-off / infrequently used script, my module is probably not as useful as Nmap::Parser :) or just using the greppable output from nmap in a shell pipeline or using a straight XML to hash-of-hashes module like XML::Simple. Why? The point of my module is to make it easy to maintain a long running, larger program that needs nmap functionality; by creating classes from the XML output you get a more maintainable program .. Nmap::Scanner gives you a tighter software 'contract' between your program and nmap, which will help keep code that uses nmap in a larger perl program readable and maintainable (in my opinion). For a one off, or quick 'grep' type scripts, Nmap::Scanner is probably more effort to implement in a program than it is worth :). I encourage you all to use this module, but I am not going to pretend :p that this is the best ever module for working with nmap *or* that it is *the* module to use in all situations requiring nmap. I also understand that I need to update this module soon to work 100% with the nmap 4.0.x release. Will do that within the next week or two. Thank you to all of you who have tried this module, use this module, and for all of the feedback (negative and positive) about the module. Regards, Max On 5/2/06, Brandon Bennett <be...@gm...> wrote: > I had the exact same issue and gave up on Nmap::Scanner and just used > XML::Simple. Here is the code below. > > use XML::Simple; > use Data::Dumer; > > $nmap =3D "\"c:\\Program Files\\nmap\\nmap.exe\" -v -v -v -sS -p 22-23 > -O -A -oX -"; > > $xml =3D new XML::Simple; > $output =3D `$nmap $ip`; > $data =3D $xml->XMLin($output); > > Dumper($xml); > > > -------------------------------------------------------------------------= -------------------------- > > H:\>"c:\Program Files\Nmap\nmap.exe" -V > > Nmap version 4.01 ( http://www.insecure.org/nmap ) > > -------------------------------------------------------------------------= --------------------------- > > H:\>perl -v > > This is perl, v5.8.8 built for MSWin32-x86-multi-thread > (with 21 registered patches, see perl -V for more detail) > > Copyright 1987-2006, Larry Wall > > Binary build 816 [255195] provided by ActiveState http://www.ActiveState.= com > Built Mar 1 2006 18:00:52 > -------------------------------------------------------------------------= ----------------------------- > > On 5/1/06, Jack Coates <ja...@mo...> wrote: > > windows xp > > C:\Documents and Settings\Jack Coates>perl -v > > > > This is perl, v5.8.8 built for MSWin32-x86-multi-thread > > (with 25 registered patches, see perl -V for more detail) > > > > Copyright 1987-2006, Larry Wall > > > > Binary build 817 [257965] provided by ActiveState > > http://www.ActiveState.com > > Built Mar 20 2006 17:54:25 > > > > C:\Documents and Settings\Jack Coates>nmap -V > > > > Nmap version 4.01 ( http://www.insecure.org/nmap ) > > > > thanks for looking at it! > > > > > > On 5/1/06, Max < nm...@we...> wrote: > > > > > > Hi Jack, > > > > > > Please reply with the version of nmap, Windows, and perl you are usin= g and > > I will be happy to see if I can recreate and come up with a fix for thi= s > > problem. > > > > > > Thank you for using the module, sorry you have run into this issue. > > > > > > Regards, > > > > > > Max > > > > > > > > > > > > On 5/1/06, Jack Coates <ja...@mo...> wrote: > > > > > > > > Hi, > > > > > > > > Thanks for this module, I've been struggling with Nmap-Parser-XML a= nd > > this looks much more promising. However, I'm having some trouble gettin= g it > > to work. > > > > > > > > Script: > > > > use Nmap::Scanner; > > > > my $scanner =3D new Nmap::Scanner; > > > > $scanner->tcp_syn_scan; > > > > $scanner->add_scan_port('1-100'); > > > > $scanner->guess_os(); > > > > $scanner->add_target(' 172.16.252.1'); > > > > my $results =3D $scanner->scan(); > > > > my $xml =3D $results->as_xml(); > > > > print $xml; > > > > exit 0; > > > > > > > > Result: > > > > Unable to recognise encoding of this document at > > C:/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line > > 96. > > > > <nmap-error> > > > > <pid=3D"1168"/> > > > > <cmdline=3D"'C:\Program Files\Nmap\nmap.exe' -v -v -v -sS -p 1-10= 0 -O > > -oX - 172.16.252.1"/> > > > > <perl-msg>Document requires an element [Ln: 1, Col: 0] > > > > </perl-msg> > > > > <nmap-msg></nmap-msg> > > > > </nmap-error> > > > > > > > > I get the feeling that this is probably something simple, but STFW = and > > RTFM aren't turning anything up yet... everything I've read implies tha= t > > PurePerl is the right parser to use. However, since installing this par= ser > > PPM throws the same encoding error, so it looks like it's horked. Advic= e, > > please? > > > > > > > > thanks, > > > > > > > > -- > > > > "I spent all me tin with the ladies drinking gin, > > > > So across the Western ocean I must wander" -- traditional > > > > > > > > > > > > > > -- > > "I spent all me tin with the ladies drinking gin, > > So across the Western ocean I must wander" -- traditional > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Nmap-scanner-general mailing list > Nma...@li... > https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > |
From: Brandon B. <be...@gm...> - 2006-05-02 15:30:47
|
I had the exact same issue and gave up on Nmap::Scanner and just used XML::Simple. Here is the code below. use XML::Simple; use Data::Dumer; $nmap =3D "\"c:\\Program Files\\nmap\\nmap.exe\" -v -v -v -sS -p 22-23 -O -A -oX -"; $xml =3D new XML::Simple; $output =3D `$nmap $ip`; $data =3D $xml->XMLin($output); Dumper($xml); ---------------------------------------------------------------------------= ------------------------ H:\>"c:\Program Files\Nmap\nmap.exe" -V Nmap version 4.01 ( http://www.insecure.org/nmap ) ---------------------------------------------------------------------------= ------------------------- H:\>perl -v This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 21 registered patches, see perl -V for more detail) Copyright 1987-2006, Larry Wall Binary build 816 [255195] provided by ActiveState http://www.ActiveState.co= m Built Mar 1 2006 18:00:52 ---------------------------------------------------------------------------= --------------------------- On 5/1/06, Jack Coates <ja...@mo...> wrote: > windows xp > C:\Documents and Settings\Jack Coates>perl -v > > This is perl, v5.8.8 built for MSWin32-x86-multi-thread > (with 25 registered patches, see perl -V for more detail) > > Copyright 1987-2006, Larry Wall > > Binary build 817 [257965] provided by ActiveState > http://www.ActiveState.com > Built Mar 20 2006 17:54:25 > > C:\Documents and Settings\Jack Coates>nmap -V > > Nmap version 4.01 ( http://www.insecure.org/nmap ) > > thanks for looking at it! > > > On 5/1/06, Max < nm...@we...> wrote: > > > > Hi Jack, > > > > Please reply with the version of nmap, Windows, and perl you are using = and > I will be happy to see if I can recreate and come up with a fix for this > problem. > > > > Thank you for using the module, sorry you have run into this issue. > > > > Regards, > > > > Max > > > > > > > > On 5/1/06, Jack Coates <ja...@mo...> wrote: > > > > > > Hi, > > > > > > Thanks for this module, I've been struggling with Nmap-Parser-XML and > this looks much more promising. However, I'm having some trouble getting = it > to work. > > > > > > Script: > > > use Nmap::Scanner; > > > my $scanner =3D new Nmap::Scanner; > > > $scanner->tcp_syn_scan; > > > $scanner->add_scan_port('1-100'); > > > $scanner->guess_os(); > > > $scanner->add_target(' 172.16.252.1'); > > > my $results =3D $scanner->scan(); > > > my $xml =3D $results->as_xml(); > > > print $xml; > > > exit 0; > > > > > > Result: > > > Unable to recognise encoding of this document at > C:/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line > 96. > > > <nmap-error> > > > <pid=3D"1168"/> > > > <cmdline=3D"'C:\Program Files\Nmap\nmap.exe' -v -v -v -sS -p 1-100 = -O > -oX - 172.16.252.1"/> > > > <perl-msg>Document requires an element [Ln: 1, Col: 0] > > > </perl-msg> > > > <nmap-msg></nmap-msg> > > > </nmap-error> > > > > > > I get the feeling that this is probably something simple, but STFW an= d > RTFM aren't turning anything up yet... everything I've read implies that > PurePerl is the right parser to use. However, since installing this parse= r > PPM throws the same encoding error, so it looks like it's horked. Advice, > please? > > > > > > thanks, > > > > > > -- > > > "I spent all me tin with the ladies drinking gin, > > > So across the Western ocean I must wander" -- traditional > > > > > > > > -- > "I spent all me tin with the ladies drinking gin, > So across the Western ocean I must wander" -- traditional |
From: Jack C. <ja...@mo...> - 2006-05-02 04:56:25
|
windows xp C:\Documents and Settings\Jack Coates>perl -v This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 25 registered patches, see perl -V for more detail) Copyright 1987-2006, Larry Wall Binary build 817 [257965] provided by ActiveState http://www.ActiveState.co= m Built Mar 20 2006 17:54:25 C:\Documents and Settings\Jack Coates>nmap -V Nmap version 4.01 ( http://www.insecure.org/nmap ) thanks for looking at it! On 5/1/06, Max <nm...@we...> wrote: > > Hi Jack, > > Please reply with the version of nmap, Windows, and perl you are using an= d > I will be happy to see if I can recreate and come up with a fix for this > problem. > > Thank you for using the module, sorry you have run into this issue. > > Regards, > Max > > > On 5/1/06, Jack Coates <ja...@mo...> wrote: > > > > Hi, > > > > Thanks for this module, I've been struggling with Nmap-Parser-XML and > > this looks much more promising. However, I'm having some trouble gettin= g it > > to work. > > > > Script: > > use Nmap::Scanner; > > my $scanner =3D new Nmap::Scanner; > > $scanner->tcp_syn_scan; > > $scanner->add_scan_port('1-100'); > > $scanner->guess_os(); > > $scanner->add_target(' 172.16.252.1'); > > my $results =3D $scanner->scan(); > > my $xml =3D $results->as_xml(); > > print $xml; > > exit 0; > > > > Result: > > Unable to recognise encoding of this document at > > C:/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line 96. > > <nmap-error> > > <pid=3D"1168"/> > > <cmdline=3D"'C:\Program Files\Nmap\nmap.exe' -v -v -v -sS -p 1-100 -O > > -oX - 172.16.252.1"/> > > <perl-msg>Document requires an element [Ln: 1, Col: 0] > > </perl-msg> > > <nmap-msg></nmap-msg> > > </nmap-error> > > > > I get the feeling that this is probably something simple, but STFW and > > RTFM aren't turning anything up yet... everything I've read implies tha= t > > PurePerl is the right parser to use. However, since installing this par= ser > > PPM throws the same encoding error, so it looks like it's horked. Advic= e, > > please? > > > > thanks, > > -- > > "I spent all me tin with the ladies drinking gin, > > So across the Western ocean I must wander" -- traditional > > > > -- "I spent all me tin with the ladies drinking gin, So across the Western ocean I must wander" -- traditional |
From: Max <nm...@we...> - 2006-05-02 02:09:52
|
Hi Jack, Please reply with the version of nmap, Windows, and perl you are using and = I will be happy to see if I can recreate and come up with a fix for this problem. Thank you for using the module, sorry you have run into this issue. Regards, Max On 5/1/06, Jack Coates <ja...@mo...> wrote: > > Hi, > > Thanks for this module, I've been struggling with Nmap-Parser-XML and thi= s > looks much more promising. However, I'm having some trouble getting it to > work. > > Script: > use Nmap::Scanner; > my $scanner =3D new Nmap::Scanner; > $scanner->tcp_syn_scan; > $scanner->add_scan_port('1-100'); > $scanner->guess_os(); > $scanner->add_target('172.16.252.1'); > my $results =3D $scanner->scan(); > my $xml =3D $results->as_xml(); > print $xml; > exit 0; > > Result: > Unable to recognise encoding of this document at > C:/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line 96. > <nmap-error> > <pid=3D"1168"/> > <cmdline=3D"'C:\Program Files\Nmap\nmap.exe' -v -v -v -sS -p 1-100 -O = -oX > - 172.16.252.1"/> > <perl-msg>Document requires an element [Ln: 1, Col: 0] > </perl-msg> > <nmap-msg></nmap-msg> > </nmap-error> > > I get the feeling that this is probably something simple, but STFW and > RTFM aren't turning anything up yet... everything I've read implies that > PurePerl is the right parser to use. However, since installing this parse= r > PPM throws the same encoding error, so it looks like it's horked. Advice, > please? > > thanks, > -- > "I spent all me tin with the ladies drinking gin, > So across the Western ocean I must wander" -- traditional > |
From: Max <nm...@we...> - 2006-05-02 02:07:14
|
Hi Julien, I am sorry for the delayed response. I have not tested the Nmap::Scanner module against 4.0.x of nmap yet, but will this week and hopefully will hav= e a fix to make this work for you by the end of the weekend, which is probabl= y too late for you now, but maybe will let you use the module again another time. Again, my apologies for the delay in response and thank you for using the module. - Max On 4/25/06, Moutet Julien <jul...@gm...> wrote: > > Hi > > I have problems with "udp_scan" scan type. When using provided examples > (scan_to_xml.pl by example), the output is: > > # perl scan_to_xml.pl 192.168.1.10 > <nmap-error> > <pid=3D"5889"/> > <cmdline=3D"'/usr/bin/nmap' -v -v -v -sS -sU -p > 21,25,80,443,3306,8080,22,79,13,11,7,10 -P B -O --max_rtt_timeout 200 -o= X - > 192.168.1.10"/> > <perl-msg>Document requires an element [Ln: 1, Col: 1] > </perl-msg> > <nmap-msg>ARNING: UDP scan was requested, but no udp ports were > specified. Skipping this scan type. > </nmap-msg> > </nmap-error> > > From command line, the result is the same. > > The problem seems to be in the -p argument ( "U:" and "T:" ) : > > # man nmap > [...] > PORT SPECIFICATION AND SCAN ORDER: > -p <port ranges>: Only scan specified ports > Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080 > [...] > > Informations: > nmap-scanner-0.9 > nmap 4.0 > perl 5.8.8 > > > Any suggestions. > Thx in advance. > -- > Julien Moutet > > Student in Telecoms and Network Computing > http://www.stri.net/ > > > > |
From: Jack C. <ja...@mo...> - 2006-05-01 19:21:38
|
Hi, Thanks for this module, I've been struggling with Nmap-Parser-XML and this looks much more promising. However, I'm having some trouble getting it to work. Script: use Nmap::Scanner; my $scanner =3D new Nmap::Scanner; $scanner->tcp_syn_scan; $scanner->add_scan_port('1-100'); $scanner->guess_os(); $scanner->add_target('172.16.252.1'); my $results =3D $scanner->scan(); my $xml =3D $results->as_xml(); print $xml; exit 0; Result: Unable to recognise encoding of this document at C:/Perl/site/lib/XML/SAX/PurePerl/EncodingDetect.pm line 96. <nmap-error> <pid=3D"1168"/> <cmdline=3D"'C:\Program Files\Nmap\nmap.exe' -v -v -v -sS -p 1-100 -O -o= X - 172.16.252.1"/> <perl-msg>Document requires an element [Ln: 1, Col: 0] </perl-msg> <nmap-msg></nmap-msg> </nmap-error> I get the feeling that this is probably something simple, but STFW and RTFM aren't turning anything up yet... everything I've read implies that PurePer= l is the right parser to use. However, since installing this parser PPM throw= s the same encoding error, so it looks like it's horked. Advice, please? thanks, -- "I spent all me tin with the ladies drinking gin, So across the Western ocean I must wander" -- traditional |
From: Moutet J. <jul...@gm...> - 2006-04-25 22:00:18
|
Hi I have problems with "udp_scan" scan type. When using provided examples (scan_to_xml.pl by example), the output is: # perl scan_to_xml.pl 192.168.1.10 <nmap-error> <pid=3D"5889"/> <cmdline=3D"'/usr/bin/nmap' -v -v -v -sS -sU -p 21,25,80,443,3306,8080,22,79,13,11,7,10 -P B -O --max_rtt_timeout 200 -oX = - 192.168.1.10"/> <perl-msg>Document requires an element [Ln: 1, Col: 1] </perl-msg> <nmap-msg>ARNING: UDP scan was requested, but no udp ports were specified. Skipping this scan type. </nmap-msg> </nmap-error> From command line, the result is the same. The problem seems to be in the -p argument ( "U:" and "T:" ) : # man nmap [...] PORT SPECIFICATION AND SCAN ORDER: -p <port ranges>: Only scan specified ports Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080 [...] Informations: nmap-scanner-0.9 nmap 4.0 perl 5.8.8 Any suggestions. Thx in advance. -- Julien Moutet Student in Telecoms and Network Computing http://www.stri.net/ |
From: thefinn [c] <th...@tp...> - 2004-10-21 16:41:20
|
No probs, thanks for the fix. TheFinn. http://ghettoshell.net/~thefinn/ A small perl repository for scanning and other fun. Max wrote: >Hi, > > If you want to skip the tests or ignore the failures, use 'force' > before the install command from the CPAN shell: > > cpan> force install Nmap::Scanner > > You are also the first person to post a bug in my testing code that > has probably annoyed people for quite a while now .. I miscoded my > skip() statements. Thank you very much for bringing that to my > attention, and I apologize for such poor testing code. > > I am planning on doing a new release within the next month to two > months, getting the module caught up with the new XML output and > scan types that nmap has added this last 6 months or so. > > Does anyone who is subscribed to this list use the verbose scan type > setters, e.g. > > $scanner->tcp_connect_scan() > > or are you passing nmap arguments directly to the scan() method, e.g. > > $scanner->scan('-sV -sS -A'); > > ?? > >Thank you, >Max > >On Fri, 22 Oct 2004 00:40:19 +1000, "thefinn [c]" wrote: > > > > >>Hi, I'm having a lot of problems installing. Can anyone tell me why, or >>how to get around the inbuilt tests? >> >>Thanks >>TheFinn. >> >> >> >>Manifying blib/man3/Nmap::Scanner::Hosts.3pm >> /usr/bin/make -- OK >>Running make test >>PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib >>-I/usr/lib/perl5/5.6.1/sparc-linux -I/usr/lib/perl5/5.6.1 -e 'use >>Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t >>t/batch_tcp_syn_scan..............Not enough arguments for Test::skip at >>t/batch_tcp_syn_scan.t line 19, near "$SKIP)" >>Not enough arguments for Test::skip at t/batch_tcp_syn_scan.t line 20, >>near "$SKIP)" >>Execution of t/batch_tcp_syn_scan.t aborted due to compilation errors. >>t/batch_tcp_syn_scan..............dubious >> >> > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Nmap-scanner-general mailing list >Nma...@li... >https://lists.sourceforge.net/lists/listinfo/nmap-scanner-general > >. > > > -- ---------------------[ Ciphire Signature ]---------------------- From: th...@tp... signed email body (2059 characters) Date: on 21 October 2004 at 16:41:15 GMT To: nma...@li... ---------------------------------------------------------------- : The message above has been secured using Ciphire Mail. : Verify this signature and download your free encryption : software at www.ciphire.com. The three garbled lines : below are the sender's verifiable encoded signature. ---------------------------------------------------------------- 00fAAAAAEAAACr5ndBCwgAANkCAAIAAgACACCC/S71o0uEG+V80GSA2ZrXA0lr/Y I44TBDynVhBC0tEgEAkJk5TKpuTS/seSWfH6azaP5ykW40h6hb83/3myDaEy5XDP xOMKY9fjMz2B8uSETWC9GK5C2aOrk+aYxhCAMkeg== ------------------[ End Ciphire Signed Message ]---------------- |
From: Max <nm...@we...> - 2004-10-21 16:24:43
|
Hi, If you want to skip the tests or ignore the failures, use 'force' before the install command from the CPAN shell: cpan> force install Nmap::Scanner You are also the first person to post a bug in my testing code that has probably annoyed people for quite a while now .. I miscoded my skip() statements. Thank you very much for bringing that to my attention, and I apologize for such poor testing code. I am planning on doing a new release within the next month to two months, getting the module caught up with the new XML output and scan types that nmap has added this last 6 months or so. Does anyone who is subscribed to this list use the verbose scan type setters, e.g. $scanner->tcp_connect_scan() or are you passing nmap arguments directly to the scan() method, e.g. $scanner->scan('-sV -sS -A'); ?? Thank you, Max On Fri, 22 Oct 2004 00:40:19 +1000, "thefinn [c]" wrote: > Hi, I'm having a lot of problems installing. Can anyone tell me why, or > how to get around the inbuilt tests? > > Thanks > TheFinn. > > > > Manifying blib/man3/Nmap::Scanner::Hosts.3pm > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib > -I/usr/lib/perl5/5.6.1/sparc-linux -I/usr/lib/perl5/5.6.1 -e 'use > Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t > t/batch_tcp_syn_scan..............Not enough arguments for Test::skip at > t/batch_tcp_syn_scan.t line 19, near "$SKIP)" > Not enough arguments for Test::skip at t/batch_tcp_syn_scan.t line 20, > near "$SKIP)" > Execution of t/batch_tcp_syn_scan.t aborted due to compilation errors. > t/batch_tcp_syn_scan..............dubious |
From: thefinn [c] <th...@tp...> - 2004-10-21 14:43:26
|
Hi, I'm having a lot of problems installing. Can anyone tell me why, or how to get around the inbuilt tests? Thanks TheFinn. Manifying blib/man3/Nmap::Scanner::Hosts.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/sparc-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/batch_tcp_syn_scan..............Not enough arguments for Test::skip at t/batch_tcp_syn_scan.t line 19, near "$SKIP)" Not enough arguments for Test::skip at t/batch_tcp_syn_scan.t line 20, near "$SKIP)" Execution of t/batch_tcp_syn_scan.t aborted due to compilation errors. t/batch_tcp_syn_scan..............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-3 Failed 3/3 tests, 0.00% okay t/event_tcp_syn_scan_from_file....ok t/event_tcp_syn_scan..............Not enough arguments for Test::skip at t/event_tcp_syn_scan.t line 49, near "$SKIP)" Not enough arguments for Test::skip at t/event_tcp_syn_scan.t line 50, near "$SKIP)" Not enough arguments for Test::skip at t/event_tcp_syn_scan.t line 51, near "$SKIP)" Execution of t/event_tcp_syn_scan.t aborted due to compilation errors. t/event_tcp_syn_scan..............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-3 Failed 3/3 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/batch_tcp_syn_scan.t 255 65280 3 6 200.00% 1-3 t/event_tcp_syn_scan.t 255 65280 3 6 200.00% 1-3 Failed 2/3 test scripts, 33.33% okay. 6/9 subtests failed, 33.33% okay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force -- ---------------------[ Ciphire Signature ]---------------------- From: th...@tp... signed email body (1597 characters) Date: on 21 October 2004 at 14:43:21 GMT To: nma...@li... ---------------------------------------------------------------- : The message above has been secured using Ciphire Mail. : Verify this signature and download your free encryption : software at www.ciphire.com. The three garbled lines : below are the sender's verifiable encoded signature. ---------------------------------------------------------------- 00fAAAAAEAAAAJy3dBPQYAAEwCAAIAAgACACCC/S71o0uEG+V80GSA2ZrXA0lr/Y I44TBDynVhBC0tEgEAkJk5TKpuTS/seSWfH6azaP5ykW40h6hb83/3myDaEy45SL Nc021MUZUlhQnCNHWAo04LbVu71WoRe7N+lF2DTA== ------------------[ End Ciphire Signed Message ]---------------- |
From: Russell F. <r.f...@au...> - 2004-05-03 02:44:10
|
Hi All, I am writing a script that will use nmap to do a scan and then use nasl to run a nessus plugin from the command line for each port that is found open. I have taken the program as given in the synopsis (with minimal changes) and it works fine for the batch mode scan but when I do the event mode scans the call back routines never get called. Any suggestions on how I can debug this? I see there are debuging switches in the code but there is no documented way of turning them on that I could find. Cheers, Russell -- Russell Fulton /~\ The ASCII Network Security Officer \ / Ribbon Campaign The University of Auckland X Against HTML New Zealand / \ Email! |
From: Max <nm...@we...> - 2004-04-21 18:43:24
|
Ravi, Right now the code won't let you do that, though the changes needed to let it do that are easy .. if you want to for now, you can add this code to open_nmap, after the line my $cmd = $this->_setup_cmdline($fast_options); in sub open_nmap. New code ... my $cmd = $this->_setup_cmdline($fast_options); $cmd =~ s/-v -v -v //; $cmd =~ s/-oX - //; Thanks for pointing this out :). Regards, Max On Wed, 21 Apr 2004 14:26:10 EDT, "Ravi Malghan" wrote: > Hi: the scan always uses the -v -v -v -oX options when it runs the scan. = > How do I disable it use these options instead use the options I want. = > For example I have the following code > > my $scan =3D Nmap::Scanner->new(); > my $opts =3D '-sP -n 10.1.30.*'; > my ($pid, $in, $out, $err) =3D $scan->open_nmap($opts); > > > When I look the look at the output, I see that it uses the = > "/home/rmalghan/NMT/bin/nmap -v -v -v -sP -n -oX - 10.1.30.* ". > > Thanks > Ravi |
From: Ravi M. <rma...@vz...> - 2004-04-21 18:25:52
|
Hi: the scan always uses the -v -v -v -oX options when it runs the scan. = How do I disable it use these options instead use the options I want. = For example I have the following code my $scan =3D Nmap::Scanner->new(); my $opts =3D '-sP -n 10.1.30.*'; my ($pid, $in, $out, $err) =3D $scan->open_nmap($opts); When I look the look at the output, I see that it uses the = "/home/rmalghan/NMT/bin/nmap -v -v -v -sP -n -oX - 10.1.30.* ". Thanks Ravi |
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 |
From: Ravi M. <rma...@vz...> - 2004-04-19 02:26:54
|
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 |