mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-07-07 13:32:14 -07:00
fixed some more nmap stuff
This commit is contained in:
parent
669c8394f5
commit
bd40a76dac
2 changed files with 0 additions and 4 deletions
4
LANs.py
4
LANs.py
|
@ -748,12 +748,10 @@ class active_users():
|
|||
except:
|
||||
print '[-] Nmap ARP scan failed, is it nmap installed?'
|
||||
for x in nmap:
|
||||
#print x;
|
||||
if 'Nmap' in x:
|
||||
pieces = x.split()
|
||||
nmapip = pieces[len(pieces)-1]
|
||||
nmapip = nmapip.replace('(','').replace(')','')
|
||||
print "adding nmapip:" + nmapip
|
||||
iplist.append(nmapip)
|
||||
if 'MAC' in x:
|
||||
nmapmac = x.split()[2]
|
||||
|
@ -761,11 +759,9 @@ class active_users():
|
|||
zipped = zip(iplist, maclist)
|
||||
self.IPandMAC = [list(item) for item in zipped]
|
||||
|
||||
print routerIP;
|
||||
# Make sure router is caught in the arp ping
|
||||
r = 0
|
||||
for i in self.IPandMAC:
|
||||
print i;
|
||||
i.append(0)
|
||||
if r == 0:
|
||||
if routerIP == i[0]:
|
||||
|
|
0
LANspy.log.txt
Normal file
0
LANspy.log.txt
Normal file
Loading…
Add table
Add a link
Reference in a new issue