/usr/lib/python3/dist-packages/nmap/test.py is in python3-nmap 0.6.1-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()
nm.scan('localhost', arguments= '-S 127.0.0.1')
for host in nm.all_hosts():
print('Host : %s (%s)' % (host, nm[host].hostname()))
|