Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: UTF-8 -*-
- import smtplib
- import datetime
- import random
- import getpass
- from email.mime.multipart import MIMEMultipart
- from email.mime.text import MIMEText
- class spammer():
- def __init__(self):
- self.banner()
- self.spam()
- def banner(self):
- print """
- By Mandrake Venom 2018
- """
- arq = open('./lista.txt', 'r')
- texto = len(arq.readlines()) -1
- valor = ""
- print "[+] Total de Emails [+] "
- print "========================="
- print texto
- print "========================="
- print valor
- arq.close()
- def spam(self):
- # Credentials
- username = raw_input("Login [gmail]: ")
- password = raw_input("Senha: ")
- target = raw_input("Enviar email para: ")
- assunto = raw_input("Assunto: ")
- men = input("Body: ")
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- try: server.login(username, password)
- except: print "[-] Authentication Error" ; exit()
- print "[!] Preparando para Enviar "
- try:
- for i in xrange(texto):
- subj = assunto, random.randrange(0,9999999999999)
- content = MIMEText(men, 'html')
- name = "fulano"
- date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" )
- msg = "From: %snTo: %snSubject: %snDate: %snn%s" % (name, target, subj, date, content)
- server.sendmail(username, target, msg)
- except smtplib.SMTPException:
- print "[-] An Error Occured During Process | "
- print "[!] The target email might be wrong [Error] ===> ",target
- exit()
- server.quit()
- print "[+]", target, " [Enviado] Continue ===>"
- try:
- spammer()
- except KeyboardInterrupt:
- print "n[!] Tchau! byeee byeeeeee.... "
- exit()
Add Comment
Please, Sign In to add comment