mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-07-16 10:03:46 -07:00
Missed a few things!
This commit is contained in:
parent
fc19eb0fa1
commit
a02d98c2cf
1 changed files with 4 additions and 4 deletions
8
LANs.py
8
LANs.py
|
@ -699,9 +699,9 @@ class Parser():
|
||||||
|
|
||||||
#Wrap the nfqueue object in an IReadDescriptor and run the process_pending function in a .doRead() of the twisted IReadDescriptor
|
#Wrap the nfqueue object in an IReadDescriptor and run the process_pending function in a .doRead() of the twisted IReadDescriptor
|
||||||
class Queued(object):
|
class Queued(object):
|
||||||
def __init__(self):
|
def __init__(self, args):
|
||||||
self.q = nfqueue.queue()
|
self.q = nfqueue.queue()
|
||||||
self.q.set_callback(Parser().start)
|
self.q.set_callback(Parser(args).start)
|
||||||
self.q.fast_open(0, socket.AF_INET)
|
self.q.fast_open(0, socket.AF_INET)
|
||||||
self.q.set_queue_maxlen(5000)
|
self.q.set_queue_maxlen(5000)
|
||||||
reactor.addReader(self)
|
reactor.addReader(self)
|
||||||
|
@ -898,7 +898,7 @@ def pcap_handler(args):
|
||||||
victimIP = args.ipaddress
|
victimIP = args.ipaddress
|
||||||
pcap = rdpcap(args.pcap)
|
pcap = rdpcap(args.pcap)
|
||||||
for payload in pcap:
|
for payload in pcap:
|
||||||
Parser().start(payload)
|
Parser(args).start(payload)
|
||||||
sys.exit('[-] Finished parsing pcap file')
|
sys.exit('[-] Finished parsing pcap file')
|
||||||
else:
|
else:
|
||||||
sys.exit('[-] Please include the following arguement when reading from a pcap file: -ip [target\'s IP address]')
|
sys.exit('[-] Please include the following arguement when reading from a pcap file: -ip [target\'s IP address]')
|
||||||
|
@ -1025,7 +1025,7 @@ def main(args):
|
||||||
dnsMAC = routerMAC
|
dnsMAC = routerMAC
|
||||||
|
|
||||||
setup(victimMAC)
|
setup(victimMAC)
|
||||||
Queued()
|
Queued(args)
|
||||||
threads(args)
|
threads(args)
|
||||||
|
|
||||||
if args.nmap:
|
if args.nmap:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue