Missed a few things!

This commit is contained in:
Thomaso 2013-11-11 21:59:35 -05:00
parent fc19eb0fa1
commit a02d98c2cf

View file

@ -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: