From bf799abb65b67578c950ccb1483a4f9c81ed5118 Mon Sep 17 00:00:00 2001 From: Thomaso Date: Sun, 10 Nov 2013 21:31:56 -0800 Subject: [PATCH] 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. --- LANs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANs.py b/LANs.py index b324ec0..64db138 100755 --- a/LANs.py +++ b/LANs.py @@ -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: