mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-10 06:54:18 +00:00
Fixed replace bug
the replace fn takes a string not a byte array
This commit is contained in:
parent
dca06c85f4
commit
56e11f17f6
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ if option1 == '2':
|
||||||
# if we specify to track users, this will replace the INSERTUSERHERE
|
# if we specify to track users, this will replace the INSERTUSERHERE
|
||||||
# with the "TO" field.
|
# with the "TO" field.
|
||||||
if track_email.lower() == "on":
|
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
|
# send the actual email
|
||||||
time_delay = check_config("TIME_DELAY_EMAIL=").lower()
|
time_delay = check_config("TIME_DELAY_EMAIL=").lower()
|
||||||
time.sleep(int(time_delay))
|
time.sleep(int(time_delay))
|
||||||
|
|
Loading…
Reference in a new issue