Guest User

Untitled

a guest
Dec 5th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. # -*- coding: UTF-8 -*-
  2. import smtplib
  3. import datetime
  4. import random
  5. import getpass
  6. from email.mime.multipart import MIMEMultipart
  7. from email.mime.text import MIMEText
  8.  
  9. class spammer():
  10. def __init__(self):
  11. self.banner()
  12. self.spam()
  13.  
  14. def banner(self):
  15. print """
  16.  
  17. By Mandrake Venom 2018
  18. """
  19.  
  20. arq = open('./lista.txt', 'r')
  21. texto = len(arq.readlines()) -1
  22. valor = ""
  23. print "[+] Total de Emails [+] "
  24. print "========================="
  25. print texto
  26. print "========================="
  27. print valor
  28. arq.close()
  29.  
  30. def spam(self):
  31. # Credentials
  32. username = raw_input("Login [gmail]: ")
  33. password = raw_input("Senha: ")
  34. target = raw_input("Enviar email para: ")
  35. assunto = raw_input("Assunto: ")
  36. men = input("Body: ")
  37.  
  38. server = smtplib.SMTP('smtp.gmail.com:587')
  39. server.starttls()
  40. try: server.login(username, password)
  41. except: print "[-] Authentication Error" ; exit()
  42.  
  43. print "[!] Preparando para Enviar "
  44.  
  45. try:
  46. for i in xrange(texto):
  47. subj = assunto, random.randrange(0,9999999999999)
  48. content = MIMEText(men, 'html')
  49. name = "fulano"
  50. date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" )
  51. msg = "From: %snTo: %snSubject: %snDate: %snn%s" % (name, target, subj, date, content)
  52. server.sendmail(username, target, msg)
  53. except smtplib.SMTPException:
  54. print "[-] An Error Occured During Process | "
  55. print "[!] The target email might be wrong [Error] ===> ",target
  56. exit()
  57. server.quit()
  58. print "[+]", target, " [Enviado] Continue ===>"
  59.  
  60. try:
  61. spammer()
  62. except KeyboardInterrupt:
  63. print "n[!] Tchau! byeee byeeeeee.... "
  64. exit()
Add Comment
Please, Sign In to add comment