mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-07-07 21:42:12 -07:00
nmap scan added -n
This commit is contained in:
parent
684ef90b43
commit
258d54aa0c
1 changed files with 1 additions and 1 deletions
2
LANs.py
2
LANs.py
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue