diff --git a/plugins/ArpSpoof.py b/plugins/ArpSpoof.py index 753dcaf..0e17826 100644 --- a/plugins/ArpSpoof.py +++ b/plugins/ArpSpoof.py @@ -24,6 +24,7 @@ class ArpSpoof(Plugin): self.setup = options.setup self.mac = get_if_hwaddr(self.interface) self.port = self.options.listen + self.debug = False self.send = True if os.geteuid() != 0: @@ -32,6 +33,9 @@ class ArpSpoof(Plugin): if self.interface == None or self.routerip == None: sys.exit("[-] %s plugin requires --routerip and --interface" % self.name) + if self.options.log_level == 'debug': + self.debug = True + print "[*] %s plugin online" % self.name if self.setup == True: print '[*] Setting up ip_forward and iptables' @@ -54,13 +58,13 @@ class ArpSpoof(Plugin): else: sys.exit(0) - t = threading.Thread(name='send_packets', target=self.send_packets, args=(pkt,self.interface,)) + t = threading.Thread(name='send_packets', target=self.send_packets, args=(pkt,self.interface,self.debug,)) t.setDaemon(True) t.start() - def send_packets(self,pkt,interface): + def send_packets(self,pkt,interface, debug): while self.send == True: - sendp(pkt, inter=2, iface=interface, verbose=False) + sendp(pkt, inter=2, iface=interface, verbose=debug) def build_req(self): if self.target == None: diff --git a/plugins/FilePwn.py b/plugins/FilePwn.py index a106385..cae5a9a 100644 --- a/plugins/FilePwn.py +++ b/plugins/FilePwn.py @@ -168,7 +168,7 @@ class FilePwn(Plugin): logging.info("ZipFile size: %s KB" % (len(aZipFile) / 1024)) if len(aZipFile) > int(self.userConfig['ZIP']['maxSize']): - logging.info("ZipFIle maxSize met %s", len(aZipFile)) + logging.info("ZipFIle maxSize met %s" % len(aZipFile)) return aZipFile tmpRan = ''.join(random.choice(string.ascii_lowercase + string.digits + string.ascii_uppercase) for _ in range(8)) diff --git a/sslstrip/ResponseTampererFactory.py b/sslstrip/ResponseTampererFactory.py index 53b91b9..16d271c 100644 --- a/sslstrip/ResponseTampererFactory.py +++ b/sslstrip/ResponseTampererFactory.py @@ -32,7 +32,7 @@ class ResponseTampererFactory: pass def createTamperer(configFile): - logging.log(logging.DEBUG, "Reading tamper config file: %s" % (configFile)) + logging.debug(logging.DEBUG, "Reading tamper config file: %s" % (configFile)) config = ResponseTampererFactory._default_config.copy() if configFile: config.update(ResponseTampererFactory.parseConfig(configFile))