From 56e11f17f6c989b393318b341ed22dec57dbda91 Mon Sep 17 00:00:00 2001 From: Chris Schmidt Date: Mon, 22 Jul 2024 22:02:06 -0600 Subject: [PATCH] Fixed replace bug the replace fn takes a string not a byte array --- src/phishing/smtp/client/smtp_web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phishing/smtp/client/smtp_web.py b/src/phishing/smtp/client/smtp_web.py index 75a99c8a3..158767f57 100644 --- a/src/phishing/smtp/client/smtp_web.py +++ b/src/phishing/smtp/client/smtp_web.py @@ -505,7 +505,7 @@ if option1 == '2': # if we specify to track users, this will replace the INSERTUSERHERE # with the "TO" field. if track_email.lower() == "on": - body_new = body_new.replace("INSERTUSERHERE", base64.b64encode(to.encode())) + body_new = body_new.replace("INSERTUSERHERE", str(base64.b64encode(to.encode()))) # send the actual email time_delay = check_config("TIME_DELAY_EMAIL=").lower() time.sleep(int(time_delay))