Ruby Nmap::Parser Library provides a Ruby interface to Nmap's scan data. It can run Nmap and parse its XML output directly from the scan, parse a file containing the XML data from a separate scan, parse a String of XML data from a scan, or parse XML data from an object via its read() method. This information is presented in an easy-to-use and intuitive fashion for storage and manipulation.
| Tags | Internet Log Analysis Security Networking Monitoring |
|---|---|
| Licenses | MIT/X |
| Operating Systems | OS Independent |
| Implementation | Ruby |
Recent releases


Changes: This release fixes a state matching bug in methods like tcp_ports() in which a specified state would sometimes match an unrelated one. Now these methods properly match all states exactly as well as combinations like "open|filtered", as they should. parsestring() has been added to parse a string of XML data. A compare method has been added to ExtraPorts and Traceroute::Hop. scan_time in ::Session has been updated to use the new "elapsed" attribute. Exception messages raised by the library are improved. There are many documentation and general code improvements.


Changes: Port specification parsing code was enhanced. The newer starttime and endtime host attributes (individual host scan times) were added to ::Host. The newer scanflags scaninfo attribute was added as scanflags() in ::Session for printing the scanflags associated with the specified scan type (e.g. "PSHACK" for scan type "ack"). Various implementation reworkings were done. Many documentation updates were done.


Changes: This release contains many important updates and bugfixes. All current users are urged to upgrade.


Changes: This release fixes a bug that caused parsing to fail if OS detection was performed but neither -v nor -d were used when scanning.


Changes: This release fixes a bug (typo) with the read accessor for the MAC address information in ::Host (mac_addr and mac_vendor). It adds extraports information via the ::Host::ExtraPorts class. It adds devicetype, ostype, and the RPC lowver and highver to ::Host::Port::Service. It has updated and reworded documentation.