Created
January 17, 2018 15:35
-
-
Save Nealsoni00/5c4fb713df6f963b2475812bca754743 to your computer and use it in GitHub Desktop.
Automatic Emailer for AP Assassination target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
import time | |
import random | |
import csv | |
from email.Header import Header | |
from email.mime.text import MIMEText | |
#Open a file for reading | |
me = '[email protected]' # | |
p_reader = open('password.txt', 'rb') # | |
cipher = p_reader.read() | |
recipients = ['[email protected]', '[email protected]'] # | |
class Assasin: | |
count = 0 | |
def __init__(self, name, email, target): | |
self.name = name | |
self.email = email | |
self.target = target | |
Assasin.count += 1 | |
def sendEmail(): | |
while(True): | |
fp = open('message.txt', 'rb') | |
msg = MIMEText(fp.read(), 'plain', 'utf-8') | |
fp.close() | |
thread_number = random.randint(0, 10000) | |
msg['Subject'] = Header('Minutely Spam Report (randomizer: ' + str(thread_number) + ')', 'utf-8') | |
msg['From'] = me | |
msg['To'] = ', '.join(recipients) | |
s = smtplib.SMTP(host='smtp.gmail.com', port=587) | |
s.ehlo() | |
s.starttls() | |
s.ehlo() | |
s.login(me, cipher) | |
s.sendmail(me, recipients, msg.as_string()) | |
print "Email sent to: " + ', '.join(recipients) | |
s.quit() | |
time.sleep(1) # change rate of fire here | |
# | |
#with open('TargetList.csv') as csvDataFile: | |
# csvReader = csv.reader(csvDataFile) | |
# for row in csvReader: | |
# print(row) | |
sendEmail() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NERD