Skip to content

Instantly share code, notes, and snippets.

@Nealsoni00
Created January 17, 2018 15:35
Show Gist options
  • Save Nealsoni00/5c4fb713df6f963b2475812bca754743 to your computer and use it in GitHub Desktop.
Save Nealsoni00/5c4fb713df6f963b2475812bca754743 to your computer and use it in GitHub Desktop.
Automatic Emailer for AP Assassination target
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 = 'nealsoni00@gmail.com' #
p_reader = open('password.txt', 'rb') #
cipher = p_reader.read()
recipients = ['evanfeder@gmail.com', 'nealsoni00@gmail.com'] #
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()
@nqmetke
Copy link

nqmetke commented Jan 17, 2018

NERD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment