Skip to content

Instantly share code, notes, and snippets.

@savon-noir
Created May 3, 2013 10:47
Show Gist options
  • Save savon-noir/5508461 to your computer and use it in GitHub Desktop.
Save savon-noir/5508461 to your computer and use it in GitHub Desktop.
from libnmap import NmapParser, NmapReport
d = NmapParser.parse_fromfile('/root/dev/python-nmap-lib/libnmap/test/files/1_hosts.xml')
r = NmapReport('t1', d)
for record in r.db().db_get():
print record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment