Nmap::Scanner: perl class wrappers for the scanning tool nmap

# Nmap::Scanner

Nmap::Scanner is a set of perl classes that provide a programmatic interface to the nmap port scanning tool. Nmap::Scanner parses the output from nmap as it runs. This is not ideal, but it is maintainable and keeps wrapper class sets like my own from having to be too tightly tied to the nmap source.

Nmap provides several output formats; Nmap::Scanner parses the output of the "XML" format (`-oX`).I use this format because in super-verbose mode (`-v -v -v`) nmap outputs a large amount of information during the scan about what is happening. This allows me to hook callbacks into the output stream and allows me to provide an event-driven programming model option for Nmap::Scanner users.

### IMPORTANT: Nmap::Scanner Version .5 and nmap bug On Wed, 09 Apr 2003 13:28:35 PDT, NNNNN NNNNN wrote: > I'm using version 0.5 and seem to be having a small issue. I'm getting > each result twice. A patch I did to add the nmap XML <addport> output didn't quite go right (I messed it up) so the addport line was added twice in the corresponding .c source file from nmap :(. Please use this version (3.21) or LATER, which has the dup line removed: 3.21 RPM for nmap-FE 3.21 Source RPM 3.21 RPM 3.21 BZ2 compressed source 3.21 tar.gz source Sorry for the inconvenience.

Versions earlier than .5 parsed the 'normal' output from nmap. This was very unstable. All present and future versions will parse the XML output as that is much more stable and easy to parse.

Please note that versions from .5 on require that you use an nmap that is of version 3.10 or later. I had to submit some very small patches for the XML output of nmap in order to get the same information the 'normal' mode emitted for port found events. Versions previous to 3.10 will most likely still work but 'port found' event functionality will be missing.

Please also note that this module set requires both XML::SAX and XML::SAX::PurePerl be installed in order for the XML parsing to work; both of these modules can be downloaded and installed from CPAN by hand or by using the CPAN perl module.

### Downloads

Description | URL
--- | ---
Latest version of Nmap::Scanner | latest.tar.gz
Version 0.5 | Nmap-Scanner-0.5.tar.gz
Version 0.02 | Nmap-Scanner-0.02.tar.gz
Version 0.01 | Nmap-Scanner-0.01.tar.gz

Nmap::Scanner is also available via CPAN, the Comprehensive Perl Archive Network. New versions will appear here first, as I prefer to have people use and test a new version before it goes to the perl repository.