mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2025-02-16 13:28:36 +00:00
commit
632afa6791
1 changed files with 4 additions and 4 deletions
|
@ -384,8 +384,8 @@ def mail(to, subject, prioflag1, prioflag2, text):
|
|||
# try logging in with base64 encoding here
|
||||
import base64
|
||||
try:
|
||||
mailServer.docmd("AUTH LOGIN", base64.b64encode(provideruser))
|
||||
mailServer.docmd(base64.b64encode(pwd), "")
|
||||
mailServer.docmd("AUTH LOGIN", base64.b64encode(provideruser.encode()))
|
||||
mailServer.docmd(base64.b64encode(pwd.encode()), "")
|
||||
|
||||
# except exceptions and print incorrect password
|
||||
except Exception as e:
|
||||
|
@ -403,7 +403,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))
|
||||
body_new = body_new.replace("INSERTUSERHERE", base64.b64encode(to.encode()))
|
||||
# call the function to send email
|
||||
try:
|
||||
mail(to, subject, prioflag1, prioflag2, body_new)
|
||||
|
@ -429,7 +429,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))
|
||||
body_new = body_new.replace("INSERTUSERHERE", base64.b64encode(to.encode()))
|
||||
# send the actual email
|
||||
time_delay = check_config("TIME_DELAY_EMAIL=").lower()
|
||||
time.sleep(int(time_delay))
|
||||
|
|
Loading…
Add table
Reference in a new issue