mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-10 06:54:18 +00:00
Fixed replace bug
Fixed a bug for passing bytes to the replace function insteas of a string
This commit is contained in:
parent
884a24ed22
commit
dca06c85f4
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ if option1 == '1':
|
|||
# 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())))
|
||||
# call the function to send email
|
||||
try:
|
||||
mail(to, subject, prioflag1, prioflag2, body_new)
|
||||
|
|
Loading…
Reference in a new issue