mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-08-21 22:13:24 -07:00
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:
parent
6051a41718
commit
bf799abb65
1 changed files with 1 additions and 1 deletions
2
LANs.py
2
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue