mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-07-07 05:22:11 -07:00
fixed dnsmac finding
This commit is contained in:
parent
0c475c7314
commit
ffd811048c
1 changed files with 5 additions and 3 deletions
8
LANs.py
8
LANs.py
|
@ -757,7 +757,7 @@ class Queued(object):
|
||||||
def fileno(self):
|
def fileno(self):
|
||||||
return self.q.get_fd()
|
return self.q.get_fd()
|
||||||
def doRead(self):
|
def doRead(self):
|
||||||
self.q.process_pending(20)
|
self.q.process_pending(5)
|
||||||
def connectionLost(self, reason):
|
def connectionLost(self, reason):
|
||||||
reactor.removeReader(self)
|
reactor.removeReader(self)
|
||||||
def logPrefix(self):
|
def logPrefix(self):
|
||||||
|
@ -1064,6 +1064,7 @@ def main(args):
|
||||||
logger.write("[*] Victim MAC: "+victimMAC+'\n')
|
logger.write("[*] Victim MAC: "+victimMAC+'\n')
|
||||||
except Exception:
|
except Exception:
|
||||||
exit("[-] Could not get victim MAC address; try the -vmac [xx:xx:xx:xx:xx:xx] option if you know the victim's MAC address")
|
exit("[-] Could not get victim MAC address; try the -vmac [xx:xx:xx:xx:xx:xx] option if you know the victim's MAC address")
|
||||||
|
|
||||||
if dnsIP != routerIP:
|
if dnsIP != routerIP:
|
||||||
if IPprefix in dnsIP:
|
if IPprefix in dnsIP:
|
||||||
try:
|
try:
|
||||||
|
@ -1071,9 +1072,10 @@ def main(args):
|
||||||
print "[*] DNS server MAC: " + dnsMAC
|
print "[*] DNS server MAC: " + dnsMAC
|
||||||
except Exception:
|
except Exception:
|
||||||
print "[-] Could not get DNS server MAC address; continuing"
|
print "[-] Could not get DNS server MAC address; continuing"
|
||||||
dnsMAC = routerMAC
|
dnsMAC = None
|
||||||
else:
|
else:
|
||||||
dnsMAC = routerMAC
|
dnsMAC = None
|
||||||
|
|
||||||
|
|
||||||
setup(victimMAC)
|
setup(victimMAC)
|
||||||
Queued(args)
|
Queued(args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue