nmap scan added -n

This commit is contained in:
DanMcInerney 2013-11-11 08:52:41 -07:00
parent 684ef90b43
commit 258d54aa0c

View file

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