From 24fcd2bb5700d8e633e735a97e41066578f89793 Mon Sep 17 00:00:00 2001 From: mh4x0f Date: Tue, 17 Mar 2020 22:25:00 -0300 Subject: [PATCH] fixed logger ssltrip3 class --- .../core/widgets/default/session_config.py | 1 - .../external/sslstrip/ClientRequest.py | 20 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/wifipumpkin3/core/widgets/default/session_config.py b/wifipumpkin3/core/widgets/default/session_config.py index 0fb2caf..c1799c7 100644 --- a/wifipumpkin3/core/widgets/default/session_config.py +++ b/wifipumpkin3/core/widgets/default/session_config.py @@ -6,7 +6,6 @@ class SessionConfig(TabsWidget): ConfigRoot="Settings" Name = "Settings" ID = "SessionConfig" - Icon = "icons/settings-AP.png" __subitem = False tablayout={} tabwidget={} diff --git a/wifipumpkin3/plugins/external/sslstrip/ClientRequest.py b/wifipumpkin3/plugins/external/sslstrip/ClientRequest.py index dd7fd54..bbafda1 100644 --- a/wifipumpkin3/plugins/external/sslstrip/ClientRequest.py +++ b/wifipumpkin3/plugins/external/sslstrip/ClientRequest.py @@ -83,7 +83,7 @@ class ClientRequest(Request): return "lock.ico" def handleHostResolvedSuccess(self, address): - logging.debug("Resolved host successfully: %s -> %s" % (self.getHeader('host'), address)) + print("Resolved host successfully: %s -> %s" % (self.getHeader('host'), address)) host = self.getHeader("host") headers = self.cleanHeaders() client = self.getClientIP() @@ -91,26 +91,26 @@ class ClientRequest(Request): self.content.seek(0,0) postData = self.content.read() - logging.debug("cookies...") + print("cookies...") url = 'http://' + host + path.decode() - logging.debug("cookies...") + print("cookies...") self.uri = url # set URI to absolute self.dnsCache.cacheResolution(host, address) if (not self.cookieCleaner.isClean(self.method, client, host, headers)): - logging.debug("Sending expired cookies...") + print("Sending expired cookies...") self.sendExpiredCookies(host, path, self.cookieCleaner.getExpireHeaders(self.method, client, host, headers, path)) elif (self.urlMonitor.isSecureFavicon(client, path)): - logging.debug("Sending spoofed favicon response...") + print("Sending spoofed favicon response...") self.sendSpoofedFaviconResponse() elif (self.urlMonitor.isSecureLink(client, url)): - logging.debug("Sending request via SSL...") + print("Sending request via SSL...") self.proxyViaSSL(address, self.method, path, postData, headers, self.urlMonitor.getSecurePort(client, url)) else: - logging.debug("Sending request via HTTP...") + print("Sending request via HTTP...") self.proxyViaHTTP(address, self.method, path, postData, headers) def handleHostResolvedError(self, error): @@ -121,14 +121,14 @@ class ClientRequest(Request): address = self.dnsCache.getCachedAddress(host) if address != None: - logging.debug("Host cached.") + print("Host cached.") return defer.succeed(address) else: - logging.debug("Host not cached.") + print("Host not cached.") return reactor.resolve(host) def process(self): - logging.debug("Resolving host: %s" % (self.getHeader('host'))) + print("Resolving host: %s" % (self.getHeader('host'))) host = self.getHeader('host') deferred = self.resolveHost(host)