Nmap Announce mailing list archives
New release of Nmap::Scanner perl wrappers: version 0.2
From: "Max" <musitechman () earthlink net>
Date: Thu, 07 Mar 2002 13:00:48 -0500
Hi,
I know the first release was just a month or so ago .. I was not
planning on doing another release for another month or so but I
found a bug that is pretty big so I am doing another release which
includes a fix for the bug as well as some additional functionality
that I was able to wrap up and test to be sufficiently certain it
is stable.
The bug was that if you used Nmap::Scanner in event scan mode and
registered for a scan complete event with register_scan_complete_event()
AND you specified multiple targets, the scan complete event would
ONLY be fired at the very end of the scan, and not at the end of
a scan of each host. Blech.
I added an OsGuess.pm model class that captures every bit of information
from the -O output from nmap for a host in perl ... it is a part of
a host object returned from results ...
e.g.
# This method turns on operating system guessing (-O).
$scanner->guess_os();
my $results = $scanner->scan();
# Just grab the first host.
my $first = $results->get_host_list()->get_next();
# Now get the OS guess object.
my $osguess = $host->os_guess();
# Now we can get all the -O bits out!
my $description = $osguess->description();
my $uptime_days = $osguess->uptime_days();
my $t1 = $osguess->t1();
I have thought about making model classes for each test etc ...
but I figure at this point the value added for the work is not
high ;).
I have also added as_xml to every model class and iterator ... so
that you can get a well-formed XML scan result document this
way ...
my $results = $scanner->scan();
print $results->as_xml();
Or, if you have a Nmap::Scanner::Host instance ...
print $host->as_xml();
etc ...
This is independent of whether or not Nmap::Scanner parses output
from -oN, -oX, etc ... the XML output is not indented nicely but
it does pass xmllint as a well-formed document and xmllint was
also able to indent it nicely.
Finally, added a few more example scripts ... one shows how to get
a diff of two hosts scanned easily using Text::Diff :).
The distro is available from:
http://webwizarddesign.com/nmap/Nmap-Scanner-0.2.tar.gz
Will be posted to my CPAN account within a week or two ... wanted to post
it here first to get feedback on the new features and possibly bug
reports before going to CPAN with it.
Thanks to those of who who have downloaded the first version :) ...
though I only got direct email feedback from two of you, over
400 people downloaded version 0.01 ... I hope at some point some
of you will write to make suggestions / voice complaints etc.
Regards,
Max
--------------------------------------------------
For help using this (nmap-hackers) mailing list, send a blank email to
nmap-hackers-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).
Current thread:
- New release of Nmap::Scanner perl wrappers: version 0.2 Max (Mar 07)
