/usr/share/pyshared/nmap/t2.py is in python-nmap 0.3.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 | import nmap
nm = nmap.PortScanner()
r=nm.analyse_nmap_xml_scan(open('nmap_output.xml', 'r').read())
print(nm.scaninfo())
print(nm.csv())
|