mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-30 08:20:17 +00:00
Fixed issue where blank username/password would initiate ehlo but would not send headers or mail
This commit is contained in:
parent
d2c69511a4
commit
c2dc8b977f
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,8 @@ def mail(to, subject, prioflag1, prioflag2, text):
|
|||
if provideruser != "" or pwd != "":
|
||||
mailServer.login(provideruser, pwd)
|
||||
mailServer.sendmail(from_address, to, io.getvalue())
|
||||
|
||||
else:
|
||||
mailServer.sendmail(from_address, to, io.getvalue())
|
||||
except:
|
||||
# try logging in with base64 encoding here
|
||||
import base64
|
||||
|
|
Loading…
Reference in a new issue