Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smtp_login: error with ssl=1 #211

Open
maximargo opened this issue Jun 12, 2024 · 1 comment
Open

smtp_login: error with ssl=1 #211

maximargo opened this issue Jun 12, 2024 · 1 comment

Comments

@maximargo
Copy link

maximargo commented Jun 12, 2024

Hi! After starting the following command:

patator smtp_login ssl=1 port=465 host=smtp.gmail.com [email protected] password=pass

I'm getting error:

06:01:52 patator FAIL - xxx 91 1.246 | | 1 | <class 'ValueError'> server_hostname cannot be an empty string or start with a leading dot. 06:01:52 patator INFO - Hits/Done/Skip/Fail/Size: 0/1/0/1/1, Avg: 0 r/s, Time: 0h 0m 2s

Probably you use something like this

server=smtplib.SMTP_SSL() server.connect('host',456)

but the right way in this case is

server=smtplib.SMTP_SSL('host') server.connect('host',port=456)

Patator 1.1-dev
Python 3.11.2

@virusvfv
Copy link

Change in code:
SMTP_SSL(timeout=int(timeout))
to
SMTP_SSL(timeout=int(timeout), host=host)

P.s I'm lazy to create PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants