mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-21 20:13:04 +00:00
commit
e6fe8af12a
1 changed files with 2 additions and 2 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)
|
||||
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue