There are other local networks than 192.168.1.0/24

This was good at the start, but abfff7ce caused the local \
network address thta nmap was going to scan to be statically set \
to '192.168.1.*'. Obviously there are other local networks used \
in the wild.
This commit is contained in:
Thomaso 2013-11-10 21:31:56 -08:00
commit bf799abb65

View file

@ -742,7 +742,7 @@ class active_users():
iplist = []
maclist = []
try:
nmap = Popen(['/usr/bin/nmap', '-sn', '192.168.1.*'], stdout=PIPE, stderr=DN)
nmap = Popen(['/usr/bin/nmap', '-sn', IPprefix], stdout=PIPE, stderr=DN)
nmap = nmap.communicate()[0]
nmap = nmap.splitlines()[2:-1]
except: