summaryrefslogtreecommitdiff
path: root/nmapscanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'nmapscanner.py')
-rw-r--r--nmapscanner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nmapscanner.py b/nmapscanner.py
index feeb04d..5cd0659 100644
--- a/nmapscanner.py
+++ b/nmapscanner.py
@@ -5,6 +5,7 @@ def nmscan(hosts,ports,arguments='-sV'):
nm = nmap.PortScanner()
nm.scan(hosts,ports,arguments)
+
for host in nm.all_hosts():
print('----------------------------------------------------')
print('Host : %s (%s)' % (host, nm[host].hostname()))