Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Problem with Nmap::Scanner

by grumbert (Scribe)
on Jan 03, 2012 at 11:23 UTC ( [id://946043]=note: print w/replies, xml ) Need Help??


in reply to Problem with Nmap::Scanner

Well that test script works for me (running as root)
#!/usr/bin/perl use warnings; use Nmap::Scanner; use Data::Dumper; my $scan = Nmap::Scanner->new(); $scan->add_target('localhost'); $scan->add_scan_port('16310-16316'); $scan->tcp_syn_scan(); my $results = $scan->scan(); print Dumper($results);
~# ./test.pl $VAR1 = bless( { 'ALLHOSTS' => { 'Nmap::Scanner::Address=HASH(0x19a186 +0)' => bless( { + 'ports' => { ..snip... 'Nmap::Scanner::P +ort' ), ...
(I truncated the answer as it's rather too verbose, but rest assured it's showing the port status) This is using Nmap::Scanner 1.0
# perl -v This is perl 5, version 12, subversion 4 (v5.12.4) built for x86_64-li +nux-gnu-thread-multi (with 45 registered patches, see perl -V for more detail)
standard perl that comes with Ubuntu 11.10 (64bit)
# nmap -V Nmap version 5.21 ( http://nmap.org )

Replies are listed 'Best First'.
Re^2: Problem with Nmap::Scanner
by ashok.g (Beadle) on Jan 03, 2012 at 11:53 UTC
    Hmm...... Do you think this may be due to my DNS settings?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://946043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found