A small collection of utilities for Nmap scan results.
Converts a standard Nmap XML output file into a YAML document, with a few limits on what content is translated across. The focus is on building a machine-readable document that's also significantly easier for humans to grok than XML.
$ ./nyaml.py -f sample_data/connect_scan.xml
The script dumps the raw XML content for hosts, ports, and services so they can be piped for usage elsewhere. This is a convenience function to save having to parse these objects out of the XML out in some other manner.
$ ./ndump.py -f sample_data/connect_scan.xml --dump A
This is a library file for containing utility functions.
This is a library file containing the logic for parsing the Nmap XML documents.