Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Nmap::Scanner 0.9

    Download button

    No screenshots available
    Downloads: 506  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Max Schubert | More programs
    Perl Artistic License / FREE
    April 11th, 2007, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Nmap::Scanner description

    Nmap::Scanner is a Perl module to perform and manipulate nmap scans using perl.

    Nmap::Scanner is a Perl module to perform and manipulate nmap scans using perl.

    SYNOPSIS

    Perl extension for performing nmap (www.insecure.org/nmap) scans.

    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('some.host.out.there.com.org');

    # $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();

    # Event scan method using *new* easier way to set scan options.

    my $scanner = new Nmap::Scanner;
    $scanner->register_scan_started_event(&scan_started);
    $scanner->register_port_found_event(&port_found);
    $scanner->scan('-sS -p 1-1024 -O --max-rtt-timeout 200 somehost.org.net.it');

    sub scan_started {
    my $self = shift;
    my $host = shift;

    my $hostname = $host->name();
    my $addresses = join(',', map {$_->address()} $host->addresses());
    my $status = $host->status();

    print "$hostname ($addresses) is $statusn";
    }

    sub port_found {
    my $self = shift;
    my $host = shift;
    my $port = shift;

    my $name = $host->name();
    my $addresses = join(',', map {$_->addr()} $host->addresses());

    print "On host $name ($addresses), found ",
    $port->state()," port ",
    join('/',$port->protocol(),$port->portid()),"n";

    }

    This set of modules provides perl class wrappers for the network mapper (nmap) scanning tool (see http://www.insecure.org/nmap/). Using these modules, a developer, network administrator, or other techie can create perl routines or classes which can be used to automate and integrate nmap scans elegantly into new and existing perl scripts.

    If you don't have nmap installed, you will need to download it BEFORE you can use these modules. Get it from http://www.insecure.org/nmap/. You will need nmap 3.10+ installed to use all the features of this module.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    manipulate nmap scans | perform nmap scans | Perl module | Nmap::Scanner | manipulate | nmap

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM