Re: [Nmap-scanner-general] encoding problem
Brought to you by:
perldork
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 > |