mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-23 13:03:10 +00:00
Fix smtp email client
This commit is contained in:
parent
a283656338
commit
d12e9c2582
1 changed files with 12 additions and 8 deletions
|
@ -10,20 +10,24 @@ import glob
|
||||||
import random
|
import random
|
||||||
import pexpect
|
import pexpect
|
||||||
import base64
|
import base64
|
||||||
import thread
|
|
||||||
|
|
||||||
# python 2 to 3 fix
|
# python 2 to 3 fixes
|
||||||
|
try:
|
||||||
|
import _thread as thread # Py3
|
||||||
|
except ImportError:
|
||||||
|
import thread # Py2
|
||||||
try:
|
try:
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
except NameError:
|
except ImportError:
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
from email.MIMEMultipart import MIMEMultipart
|
|
||||||
from email.MIMEBase import MIMEBase
|
from email.mime.multipart import MIMEMultipart
|
||||||
from email.MIMEText import MIMEText
|
from email.mime.base import MIMEBase
|
||||||
|
from email.mime.text import MIMEText
|
||||||
from email.header import Header
|
from email.header import Header
|
||||||
from email.generator import Generator
|
from email.generator import Generator
|
||||||
from email import Charset
|
import email.charset as Charset
|
||||||
from email import Encoders
|
import email.encoders as Encoders
|
||||||
|
|
||||||
# DEFINE SENDMAIL CONFIG
|
# DEFINE SENDMAIL CONFIG
|
||||||
sendmail = 0
|
sendmail = 0
|
||||||
|
|
Loading…
Reference in a new issue