From 34603aed0aadfe3c3625ea729cbc9dc0f06e7e73 Mon Sep 17 00:00:00 2001 From: Syntricks <61319973+syntricks@users.noreply.github.com> Date: Thu, 12 Oct 2023 00:51:19 +0300 Subject: [PATCH] Fixing soft failure which results in missed SMTP credential interception Without this responder silently fails. During debugging I observed [[[can only concatenate str (not "bytes") to str]]] error. Enabling decoding of bytes made the error disappear and credentials properly intercepted (on-screen stdout, logs and to DB). Thank you for a very useful tool :) --- servers/SMTP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/SMTP.py b/servers/SMTP.py index 0dc5bd0..17fa26f 100644 --- a/servers/SMTP.py +++ b/servers/SMTP.py @@ -65,7 +65,7 @@ class ESMTP(BaseRequestHandler): data = self.request.recv(1024) if data: - try: Password = b64decode(data) + try: Password = b64decode(data).decode('latin-1') except: Password = data SaveToDb({