Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: UTF-8 -*-
- import smtplib
- import datetime
- import random
- import time
- class spammer():
- def __init__(self):
- self.logo = """
- _______..______ ___ .___ ___. .___ ___. _______ .______
- / || _ \ / \ | \/ | | \/ | | ____|| _ \
- | (----`| |_) | / ^ \ | \ / | | \ / | | |__ | |_) |
- \ \ | ___/ / /_\ \ | |\/| | | |\/| | | __| | /
- .----) | | | / _____ \ | | | | | | | | | |____ | |\ \----.
- |_______/ | _| /__/ \__\ |__| |__| |__| |__| |_______|| _| `._____|
- |~) (\_ _ _
- |_)\/ (_/_| (_|
- /
- Based off: https://github.com/Hadesy2k/mail-spammer/blob/6166c2f57a9xxe38227ba6047da0606de419a1f4a5/mail-spammer.py
- """
- self.banner()
- self.spam()
- def banner(self):
- print(self.logo)
- def spam(self):
- # Credentials
- precon = input("Enter a preconfig ID: ")
- if precon.lower() == "t":
- global username, password, target
- username = "1234567890asdghjklafienafepi@gmail.com"
- password = "asdfghjkl;'"
- target = "ezra@manmans.com"
- elif precon.lower() == "a":
- username = "1234567890asdghjklafienafepi@gmail.com"
- password = "asdfghjkl;'"
- target = "21ashah@athenian.org"
- elif precon.lower() == "d":
- username = "1234567890asdghjklafienafepi@gmail.com"
- password = "asdfghjkl;'"
- target = "20dzhong@athenian.org"
- else:
- username = input("Enter your gmail: ")
- password = input("Enter your password")
- target = input("Target email: ")
- spams = int(input("No. of mails to send: "))
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- try: server.login(username, password)
- except: print("[-] Authentication Error") ; exit()
- print("[!] Engaging the target")
- with open('quotelist.txt', 'r') as add_message:
- global bodies
- bodies = add_message.read().split('",\n')
- print(len(bodies))
- try:
- for i in range(1, spams+1):
- global bodies
- namelist = ["Emmanuel Johnson", "Grey Dickenson", "James Bamford", "Crawford Benedict",
- "Ezra Newman", "Pixie", "James Stewart", "Porter Robertson",
- "Okonkwo and the men of Umoafia", "Porygon2", "Prince Ikumefuna"]
- subj = random.randrange(0, 999999999999999999)
- content = bodies[random.randrange(0, len(bodies))] + '"'
- name = namelist[random.randrange(0, len(namelist))]
- date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" )
- msg = "From: %s\nTo: %s\nSubject: %s\nDate: %s\n\n%s" % (name, target, subj, date, content)
- server.sendmail(username, target, msg)
- print("Email #" + str(i) + " sent.")
- time.sleep(random.randrange(1, 1000)/10)
- except smtplib.SMTPException:
- print( "[-] An Error Occured During Process")
- print( "[!] The target email might be wrong")
- exit()
- server.quit()
- print("[+] Target engaging complete")
- try:
- spammer()
- except KeyboardInterrupt:
- print( "\n[-] Program Interrupted")
- exit()
- RAW Paste Data
- # -*- coding: UTF-8 -*-
- import smtplib
- import datetime
- import random
- import time
- class spammer():
- def __init__(self):
- self.logo = """
- _______..______ ___ .___ ___. .___ ___. _______ .______
- / || _ \ / \ | \/ | | \/ | | ____|| _ \
- | (----`| |_) | / ^ \ | \ / | | \ / | | |__ | |_) |
- \ \ | ___/ / /_\ \ | |\/| | | |\/| | | __| | /
- .----) | | | / _____ \ | | | | | | | | | |____ | |\ \----.
- |_______/ | _| /__/ \__\ |__| |__| |__| |__| |_______|| _| `._____|
- |~) (\_ _ _
- |_)\/ (_/_| (_|
- /
- Based off: https://github.com/Hadesy2k/mail-spammer/blob/6166c2f57a9xxe38227ba6047da0606de419a1f4a5/mail-spammer.py
- """
- self.banner()
- self.spam()
- def banner(self):
- print(self.logo)
- def spam(self):
- # Credentials
- precon = input("Enter a preconfig ID: ")
- if precon.lower() == "t":
- global username, password, target
- username = "1234567890asdghjklafienafepi@gmail.com"
- password = "asdfghjkl;'"
- target = "ezra@manmans.com"
- elif precon.lower() == "a":
- username = "1234567890asdghjklafienafepi@gmail.com"
- password = "asdfghjkl;'"
- target = "21ashah@athenian.org"
- elif precon.lower() == "d":
- username = "1234567890asdghjklafienafepi@gmail.com"
- password = "asdfghjkl;'"
- target = "donovanzhong@gmail.com"
- else:
- username = input("Enter your gmail: ")
- password = input("Enter your password")
- target = input("Target email: ")
- spams = int(input("No. of mails to send: "))
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- try: server.login(username, password)
- except: print("[-] Authentication Error") ; exit()
- print("[!] Engaging the target")
- with open('quotelist.txt', 'r') as add_message:
- global bodies
- bodies = add_message.read().split('",\n')
- print(len(bodies))
- try:
- for i in range(1, spams+1):
- global bodies
- namelist = ["Emmanuel Johnson", "Grey Dickenson", "James Bamford", "Crawford Benedict",
- "Ezra Newman", "Pixie", "James Stewart", "Porter Robertson",
- "Okonkwo and the men of Umoafia", "Porygon2", "Prince Ikumefuna"]
- subj = random.randrange(0, 999999999999999999)
- content = bodies[random.randrange(0, len(bodies))] + '"'
- name = namelist[random.randrange(0, len(namelist))]
- date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" )
- msg = "From: %s\nTo: %s\nSubject: %s\nDate: %s\n\n%s" % (name, target, subj, date, content)
- server.sendmail(username, target, msg)
- print("Email #" + str(i) + " sent.")
- time.sleep(random.randrange(1, 1000)/10)
- except smtplib.SMTPException:
- print( "[-] An Error Occured During Process")
- print( "[!] The target email might be wrong")
- exit()
- server.quit()
- print("[+] Target engaging complete")
- try:
- spammer()
- except KeyboardInterrupt:
- print( "\n[-] Program Interrupted")
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement