Created
October 29, 2015 21:02
-
-
Save saleph/9585daf20c6d4c432df7 to your computer and use it in GitHub Desktop.
Simple spamscript integrated with gmail
This file contains 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 | |
fromaddr = '' | |
toaddrs = '' | |
msg = "\r\n".join([ | |
"From: %s" % fromaddr, | |
"To: %s" % toaddrs, | |
"Subject: THIS PYTHON SHIT IS WORKING!!!", | |
"", | |
]) | |
username = '' | |
password = '' | |
server = smtplib.SMTP('smtp.gmail.com:587') | |
server.ehlo() | |
server.starttls() | |
server.login(username,password) | |
for i in range(10): | |
msg = "\r\n".join([ | |
"From: %s" % fromaddr, | |
"To: %s" % toaddrs, | |
"Subject: %d THIS PYTHON SHIT IS WORKING!!!" % i, | |
"", | |
"%d" % i | |
]) | |
print(i) | |
server.sendmail(fromaddr, toaddrs, msg) | |
server.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment