Guest User

Untitled

a guest
Jul 15th, 2018
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. print 'Welcome To MR.A_404 Spammer Email'
  2. print 'Contact : Andy.Notfound@gmail.com'
  3. print ' '
  4. print ' '
  5. import os
  6. import smtplib
  7. import getpass
  8. import sys
  9.  
  10.  
  11. server = raw_input ('Pilih Gmail/Yahoo ? : ')
  12. user = raw_input('Username : ')
  13. passwd = getpass.getpass('Password : ')
  14.  
  15.  
  16. to = raw_input('\nMasukan Email Target : ')
  17. #subject = raw_input('Subject: ')
  18. body = raw_input('Pesan Spam ? : ')
  19. total = input('Jumlah : ')
  20.  
  21. if server == 'gmail':
  22. smtp_server = 'smtp.gmail.com'
  23. port = 587
  24. elif server == 'yahoo':
  25. smtp_server = 'smtp.mail.yahoo.com'
  26. port = 25
  27. else:
  28. print 'Applies only to gmail and yahoo.'
  29. sys.exit()
  30.  
  31. print ''
  32.  
  33. try:
  34. server = smtplib.SMTP(smtp_server,port)
  35. server.ehlo()
  36. if smtp_server == "smtp.gmail.com":
  37. server.starttls()
  38. server.login(user,passwd)
  39. for i in range(1, total+1):
  40. subject = os.urandom(9)
  41. msg = 'From: ' + user + '\nSubject: ' + subject + '\n' + body
  42. server.sendmail(user,to,msg)
  43. print "\rE-mails sent: %i" % i
  44. sys.stdout.flush()
  45. server.quit()
  46. print '\n Sucsess !!'
  47. except KeyboardInterrupt:
  48. print '[-] Sorry Unsucsess'
  49. sys.exit()
  50. except smtplib.SMTPAuthenticationError:
  51. print '\n[!] Username Or Password Wrong'
  52. sys.exit()
Add Comment
Please, Sign In to add comment