BruteForceDB is a simple Python application that attempts to connect to a MySQL database using a list of passwords, effectively functioning as a basic brute force password attack. This tool can be used for testing the strength of your database passwords or for educational purposes.
- Python 3 and above
- Poetry
-
Clone this repository onto your local machine:
git clone https://github.com/AiWaldoh/ccnb-brute
-
Navigate to the cloned repository:
cd ccnb-brute
-
Install all python dependencies with Poetry:
poetry install
-
Create a
.env
file in the root directory with the following variables:DB_HOST=your_database_host DB_USERNAME=your_database_username
-
Create a
password_list.txt
file in the root directory. This text file should contain a list of passwords, one password per line.
Important: Be sure to properly secure your .env and password_list.txt files to prevent leakage of sensitive data.
To start the brute force attack, simply run brute_forcer.py:
poetry run python3 brute_forcer.py
The script will attempt to connect to the database using each password in the list. The results of each attempt are printed to the console.
This tool is provided for educational purposes only. It is illegal to use this tool for unauthorized attempts to access any database systems. We are not responsible for any misuse or damage caused by this tool. Please use responsibly.