Advertisement
AresTheGod

Mirai Botnet MySQL Login String Maker

Mar 10th, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.03 KB | None | 0 0
  1. import os, sys, time
  2. #Coded by Ares
  3. #If you're using this script, you must be doing something illegal :/
  4. #You're going to jail skiddo
  5. try:
  6.     mode = sys.argv[1]
  7. except IndexError:
  8.     pass
  9. def main():
  10.     try:
  11.         try:
  12.             if(mode.upper() == '-H' or mode.upper() == '-HELP'):
  13.                 print("""HELP:
  14.     How to make the login:
  15.         In order to make the login you must enter 'mysql -u root -p'. Then enter your MySQL Password. After entering your password you select your database. A lot of times it will be named after your source, \n   for instance if your using a source named Akuma you would type 'use Akuma;' Replace the name with your source. after that, run the command printed in red after completing the script with no arguments.\n
  16.     """)
  17.                 exit()
  18.             else:
  19.                 if(os.name == 'nt'):
  20.                     os.system('cls')
  21.                 else:
  22.                     print("Invalid argument '" + mode + "'")
  23.                     print("Use the argument '-h' or '-help' for help!")
  24.         except NameError:
  25.             print('No help Detected.')
  26.             if(os.name == 'nt'):
  27.                 os.system('cls')
  28.             else:
  29.                 os.system('clear')
  30.             print('Preparing MySQL..')
  31.             os.system('service mysqld restart')
  32.             username = raw_input('Enter the username you would like to add: ')
  33.             password = raw_input('Please create a password for ' + username + ' : ')
  34.             max_boot = raw_input('Please enter the maxmimum boot time for this user: ')
  35.             attack_cooldown = raw_input("Please enter the cooldown time for this user's attacks: ")
  36.             max_bots = raw_input('Maxmimum bot count(-1 for full botnet): ')
  37.             admin = raw_input('Would you like this user to be admin?(ENTER 1[YES] OR 0[NO]')
  38.             print('\033[1;37m*** NOTICE *** THE FOLLOWING IS THE COMMAND YOU ENTER TO ADD THE LOGIN! PASTE THIS COMMAND AFTER ENTERING THE PROPER DATABASE IN WHICH YOUR LOGINS ARE STORED!')
  39.             print("\x1b[91mINSERT INTO users VALUES (NULL, '" + username + "', '" + password + "', " + max_boot + ", " + attack_cooldown + ", 0, 0, " + max_bots + ", " + admin + ", 30, '');\033[0m")
  40.             exit()
  41.     except KeyboardInterrupt:
  42.             print('\nExiting..')
  43.             time.sleep(1)
  44.             exit()
  45.  
  46. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement