Skip to content

Commit

Permalink
Fixed replace bug
Browse files Browse the repository at this point in the history
the replace fn takes a string not a byte array
  • Loading branch information
chrisisbeef authored Jul 23, 2024
1 parent dca06c8 commit 56e11f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phishing/smtp/client/smtp_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def mail(to, subject, prioflag1, prioflag2, text):
# 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))
Expand Down

0 comments on commit 56e11f1

Please sign in to comment.