[Nmap-scanner-general] newbie question
Brought to you by:
perldork
From: Michael B. <mb...@ao...> - 2006-11-21 22:05:51
|
This is the script I am using from the perldoc example; #! /usr/bin/perl use Nmap::Scanner; # Batch scan method my $scanner = new Nmap::Scanner; $scanner->tcp_syn_scan(); $scanner->add_scan_port('1-1024'); $scanner->add_scan_port(8080); $scanner->guess_os(); $scanner->max_rtt_timeout(200); $scanner->add_target('my.target.host.com'); # $results is an instance of Nmap::Scanner::Backend::Results my $results = $scanner->scan(); # Print the results out as an well-formatted XML document print $results->as_xml(); This is the output I am getting; Unable to recognise encoding of this document at /usr/lib/perl5/site_perl/5.8.8/XML/SAX/PurePerl/EncodingDetect.pm line 96. <nmap-error> <pid="2855"/> <cmdline="'/usr/bin/nmap' -v -v -v -sS -p 8080,1-1024 -O --max_rtt_timeout 200 -oX - my.target.host.com"/> <perl-msg>Document requires an element [Ln: 1, Col: 0] </perl-msg> <nmap-msg></nmap-msg> </nmap-error> 82 I installed Nmap::Scanner from CPAN on fedora core 5 machine. What am I am I doing wrong here? Any and all help is very much appreciated. I am new to perl scripting.. But I love nmap it rocks.. Thanks for everyone's time. Cheers, Michael Bay |