Skip to content

Instantly share code, notes, and snippets.

@sticks-stuff
Created July 16, 2020 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sticks-stuff/1c5f38938525083d5825a4408549e31a to your computer and use it in GitHub Desktop.
Save sticks-stuff/1c5f38938525083d5825a4408549e31a to your computer and use it in GitHub Desktop.
A dumb script I wrote in about an hour to send furry porn to the New Conservative Party of NZ
import smtplib, ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import praw
import config
import os
import re
import shutil
import random
import sys
from datetime import datetime
subject_list = [
"Opportunity for Campaign Advertisement",
"Expression of Interest from Investor",
"(((Letter to New Conservatives)))",
"Inquiry of Your Party",
"a Letter of interest",
"A letter of interest in your party",
"Inquiry of interest; potential investor.",
"A letter to @NewConservatives ",
"For New Conservatives NZ, potential supporter",
"Expression of interest",
"Inquiry into New Conservatives ",
"New Conservatives interest email",
"Interest in New Conservatives"
]
bodytext_list = [
"Kia Ora NCP! My name is Jeff and I, as well as my company, am a traditionalist who avidly supports your party. I would be interested in advertising your campaign on my product to further increase your",
"To whom it may concern, I am interested in your party and your beliefs. I would love to take the opportunity to discuss potential options moving forward",
"Greetings! I hope this email finds you well. I\'m just writing to let you know that I really appreciate the work you\'re doing for our country and the policies you\'re implementing. I would like to",
"Hello New Conservatives, I am a young New Zealand citizen looking to do work to support your party but I\'m not sure where to start. I was told the best course of action would be to contact you, I\'m hoping there\'s some way I can help with advertising or perhaps joining the party",
"Greetings, I want to join the mailing list but I don\'t know where to ask. Thanks for providing the environment for us to finally have our free speech and be heard, finally we can recite our 14 words in peace. Please add me to the mailing list if you can. Thank you",
"Hello, I\'m looking to join the party as I am an identitiarian but I\'m not sure where to start. Is there a sign up sheet or a meeting that I can attend in the Central Auckland area, somewhere around the postcode 1488? Cheers",
"Good morning/afternoon. I would like to express interest in your party and am wondering how to join. As an identitarian your message really resonates with me and I want to do my part. Get back to me as soon as you can",
"Hi, I would like to express my interest in entering your party however I'm noticing a significant lack of party leadership in your party that really concerns me.",
"Hello \@NewConservatives, thank you for listening but I\'m interested in your party. Cheers 1488",
"Greetings, I am interested in your new party but I am noticing certain deficits in your party leadership that concern me and are holding potential investors and other traditionalists.",
"Thank you for reading this short inquiry, I am wondering how to best support your party and this is due to some shortcomings in how to support the cause given some restrictions to free speech on behalf of (((them.)))",
"Hello, I am an identitarian concerned with ways to support New Conservatives NZ due to concerns of being targeted and would like insight in how to support you.",
"Thanks for receiving, I am wondering how to sign up to support New Conservatives. 14 words brothers, cheers.",
"Hi, I would like to support New Conservatives but I am not good with technology and want to stand up for freedom of speech. 1350.",
"I would like to support this party and I want to stand with my brothers on the political right but I am concerned with free speech and anonymity for identitarians like myself.",
"Thank you for standing up for free speech, and thank you for standing up for traditional values. 14 words, say them with pride. I would like to support you and don\'t know how."
]
email_list = [
"contact@newconservative.org.nz",
"elliot.ikilei@conservativeparty.org.nz",
"bruce.welsh@newconservative.org.nz",
"deborah.burnside@newconservative.org.nz",
"lee.smith@newconservative.org.nz",
"margaret@margaretcolmore.co.nz",
"at.solomon@gmail.com",
"roger.earp@newconservative.org.nz",
"fuiavai.ala'ilima@newconservative.org.nz",
"bernadette.soares@newconservative.org.nz",
"fiona.mackenzie@newconservative.org.nz",
]
def login_reddit():
reddit = praw.Reddit(
client_id = "foo",
client_secret = "bar",
user_agent = "testscript by /u/Thestickman391")
print("Successfully logged into Reddit!")
return reddit
port = 465 # For SSL
smtp_server = "smtp.gmail.com"
sender_email = sys.argv[1] # Enter your address
receiver_email = random.choice(email_list) # Enter receiver address
password = sys.argv[2]
message = MIMEMultipart("alternative")
message["Subject"] = random.choice(subject_list)
message["From"] = sender_email
message["To"] = receiver_email
# Create the plain-text and HTML version of your message
text = """
"""
text += random.choice(bodytext_list)
# run login
reddit = login_reddit()
# create starting html garbage
html = """
<html>
<body>
"""
html += random.choice(bodytext_list)
# THE SUB LIST IS TAKEN FROM https://old.reddit.com/r/yiff/wiki/relatedsubs, I SWEAR IDK ANY OF THESE
for submission in reddit.subreddit("ArousingAvians+baddragon+carsfuckingdragons+clopclop+cuntboyfur+dragonpenis+dragonsfuckingcars+dragonsfuckingdragons+femyiff+fyiff+feralpokeporn+feralyiff+furrybooty+furrycomics+furryfemdom+furrypee+furryporn+furrypornsubreddit+furryTF+furskin+fursuitsex+GayPokePorn+gfur+gfurcomics+gurofur+hyiff+Hot_Bitches+Hot_Mares+hyperfurs+HypnoFur+Kemofurry+KinkyFur+latex_furs+pureyc+scalieporn+SergalYiff+sharktits+yiff+yiffbondage+yiffcomics+yiffgif+yiffplus").new(limit=25): #this will be less than the wanted number if some of them arent direct images
if re.search(r'(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*\.(?:jpg|gif|png))(?:\?([^#]*))?(?:#(.*))?', submission.url): #ugly regex check for direct image
html += "<img src=\"" + submission.url + "\" alt=\"very important\" width=\"100%\" height=\"100%\"><br>"
#end html shit
html += """
</body>
</html>
"""
print(html)
# Turn these into plain/html MIMEText objects
part1 = MIMEText(text, "plain")
part2 = MIMEText(html, "html")
# Add HTML/plain-text parts to MIMEMultipart message
# The email client will try to render the last part first
message.attach(part1)
message.attach(part2)
print(str(datetime.now()) + ": Sending to " + receiver_email + " from " + sender_email, file=open('C:\\Users\\Thestickman391\\Desktop\\emailLog.txt', 'a'))
# Create secure connection with server and send email
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as server:
server.login(sender_email, password)
server.sendmail(
sender_email, receiver_email, message.as_string()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment