Example

This program tries to guess the operating system of the remote host.


#!/usr/bin/perl -W
use strict;
use Nmap::Scanner;

my $scan = new Nmap::Scanner;
$scan->add_target('jupiter');
$scan->guess_os;

my $results = $scan->scan;
print $results->as_xml;


YAPC::Europe 2004 32 / 36