mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2025-02-16 13:28:36 +00:00
Using Python 3, and getting into Social-Engineering Attacks ->
Mass Mailer Attack, SET throws an error: Something went wrong, printing the error: No module named 'cStringIO' This fixes it, the change to socket.py fixes the module name, and the change to smtp_web fixes the exception name.
This commit is contained in:
parent
71d349d4df
commit
8ded4aca69
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ import os, sys, warnings
|
|||
try:
|
||||
from cStringIO import StringIO
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
from io import StringIO
|
||||
|
||||
try:
|
||||
import errno
|
||||
|
|
|
@ -12,7 +12,7 @@ import base64
|
|||
# fix for python2 to 3 compatibility
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
except NameError:
|
||||
except ImportError:
|
||||
from io import StringIO
|
||||
import email
|
||||
import email.encoders
|
||||
|
|
Loading…
Add table
Reference in a new issue