sharsil / mailcat

Find existing email addresses by nickname using API/SMTP checking methods without user notification. Please, don't hesitate to improve cat's job! 🐱🔎 📬
Apache License 2.0
587 stars 80 forks source link

Deprecation Warning #25

Closed Thalmalynx closed 1 year ago

Thalmalynx commented 2 years ago

Hey guys,

I'm not a command prompt pro, far from it, but so far I've never had any problems (Holele, Toutatis, blackbird...). However, I have a little problem with MailCat.

It may come from the path: C:\Users\Me\mailcat\mailcat.py

I tried to run two scripts :

Same result:

C:\Users\Me\mailcat\mailcat.py:1712: DeprecationWarning: There is no current event loop jobs = asyncio.gather(*[print_results(checker, target, req_session_fun, args.verbose) for checker in checkers]) C:\Users\ME\mailcat\mailcat.py:1714: DeprecationWarning: There is no current event loop asyncio.get_event_loop().run_until_complete(jobs)

Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Program Files\Python310\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Program Files\Python310\lib\asyncio\proactor_events.py", line 162, in _call_connection_lost self._sock.shutdown(socket.SHUT_RDWR) ConnectionResetError: [WinError 10054] Une connexion existante a dû être fermée par l’hôte distant

Error while checking gmail: 421 Cannot connect to SMTP server 2a00:1450:4025:c03::1b (2a00:1450:4025:c03::1b:25), connect error 10060 Error while checking yandex: 421 Cannot connect to SMTP server 2a02:6b8::311 (2a02:6b8::311:25), connect error 10060 Error while checking mailDe: 421 Cannot connect to SMTP server 2001:868:100:600::211 (2001:868:100:600::211:25), connect error 10060

I guess it's a silly mistake on my part, can someone point me in the right direction?

soxoj commented 2 years ago

Hi! Thank you for your feedback.

  1. Deprecation warning caused by usage of a newer version of Python. Please, specify exact your version, and we will fix it
  2. Connection error was caused by combo of IPv6 enabled and a probable ban of SMTP connections from your ISP. Please, check the connectivity to port 25 of email provider manually, you can use telnet so:

telnet alt4.gmail-smtp-in.l.google.com. 25

If there is no message Connected to ..., then try to disable your antiviruses and other similar software, and check again. Also, you can check if your IP is blacklisted by ISPs here: https://www.dnsbl.info/. You can read instructions for removal IP from blacklist for each of the sources.

Thalmalynx commented 2 years ago

Thank you for your quick response!

1/ Python 3.10 (64-bit)

2/ Indeed, I get an error message with telnet : 421 cannot connect to smtp server XXXXX error 10060

My IP address is not listed.

image

Thalmalynx commented 2 years ago

Yet it works very well with holehe, toutatis, maigret, blackbird, ignorant...

imakealol commented 2 years ago

Hi i have the same issue, with Python 3.11.0

thank you

soxoj commented 1 year ago

@Thalmalynx please, check mailcat version from this branch: https://github.com/sharsil/mailcat/tree/async-refactor

C3n7ral051nt4g3ncy commented 1 year ago

I have a fix for the Depreciation warning and I will submit it now. I was getting this error also:

DeprecationWarning: There is no current event loop
  jobs = asyncio.gather(*[print_results(checker, target, req_session_fun, args.verbose) for checker in checkers])
C3n7ral051nt4g3ncy commented 1 year ago

@Thalmalynx see PR #37

soxoj commented 1 year ago

TL;DR: If you get connection errors, then decrease max connections count