trustedsec / social-engineer-toolkit

The Social-Engineer Toolkit (SET) repository from TrustedSec - All new versions of SET will be deployed here.
10.85k stars 2.76k forks source link

[!] It appears your password was incorrect. Printing response: a bytes-like object is required, not 'str' #769

Open maxfouquet opened 4 years ago

maxfouquet commented 4 years ago

Expected Behaviour

Send email successfully using "Social Engineer Toolkit Mass E-Mailer"

Actual Behaviour

When sending an email using "Social Engineer Toolkit Mass E-Mailer", following error is thrown : [!] It appears your password was incorrect. Printing response: a bytes-like object is required, not 'str' However, i checked SMTP user password and it is correct.

Set Version

8.0.3

Set in Kali

Description:    Kali GNU/Linux Rolling
Release:         2020.2
Codename:     kali-rolling
slavadba commented 4 years ago

Hi, I have the same issue on the same version of SET and Kali How solve it??

BennyWestsyde commented 2 years ago

There is a bug in smtp_web.py it is on lines 463-465

Original: try: mailServer.docmd("AUTH LOGIN", base64.b64encode(provideruser.encode())) mailServer.docmd(base64.b64encode(pwd.encode()), "")

Updated: try: mailServer.docmd("AUTH LOGIN", base64.b64encode(provideruser.encode('utf-8'))) mailServer.docmd(base64.b64encode(pwd.encode('utf-8')), b"")

Md123etplus commented 9 months ago

Am encountering the same issue

vollemelk10 commented 9 months ago

there are no more proffesionals only noobs just like us, well to bad there is no solution for this i hope someone know how to solve this problem