social-engineer-toolkit icon indicating copy to clipboard operation
social-engineer-toolkit copied to clipboard

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

Open maxfouquet opened this issue 4 years ago • 4 comments

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

maxfouquet avatar Jun 24 '20 19:06 maxfouquet

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

slavadba avatar Jul 12 '20 10:07 slavadba

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"")

BennyWestsyde avatar Jul 12 '22 20:07 BennyWestsyde

Am encountering the same issue

Md123etplus avatar Dec 31 '23 21:12 Md123etplus

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

vollemelk10 avatar Jan 08 '24 10:01 vollemelk10