nmapstub.pl (Perl version) - This file reads in nmap (v2.x human) output, puts it into port and host structures, and then can call whatever routines you want (per host) to check for exploits, etc.
9eec95df46627f3dd083c753b015c8efe211bd6294035d83d4a1d8e1e06fc21b