Made this out of boredom to change the name of my school's WIFI SSID (name) Could take help from you open source enthusiasts to make it perfect and more optimised I did know the the wifi password beforehand so that's something you should know and my code won't help you with it Used CUPP to make a password register to be used with the code, I did know some inner workings of my school so your social engineering skills are also needed..
This project contains a Python script that performs a brute-force attack on a login form. After 5 failed attempts, the script changes the MAC address and continues the attack. The project can also work with password lists generated using CUPP (Common User Passwords Profiler).
- Brute-force login attempts.
- Change MAC address after a defined number of failed attempts.
- Integration with CUPP for generating password lists.
- Python 3.x
requests
module (install withpip install requests
)subprocess
module (built-in for handling system commands)- Administrator/root privileges to change the MAC address.
- CUPP (Common User Passwords Profiler) for password list generation.
-
Clone or download the repository:
git clone https://github.com/YOUR_USERNAME/bruteforce-mac-changer.git cd bruteforce-mac-changer
-
Install the required dependencies:
pip install requests
-
Create or edit the
passwords.txt
file in the project directory to include your password list. Each password should be on a new line.Example
passwords.txt
:password123 admin qwerty 123456 letmein
CUPP (Common User Passwords Profiler) is a tool that generates custom password lists based on information you provide. You can use CUPP-generated passwords in this project.
-
Clone the CUPP repository:
git clone https://github.com/Mebus/cupp.git cd cupp
-
Run CUPP:
python3 cupp.py -i
- CUPP will ask you a series of questions (like the target's name, birthdate, favorite things, etc.) to generate a customized password list.
- After CUPP generates the password list, you can copy the generated file (e.g.,
pass.txt
) to the root of your project directory aspasswords.txt
.
-
Modify the
TARGET_URL
in the script to match the login page you are targeting. -
Place the CUPP-generated
passwords.txt
file or any other password list in the same directory as the script. -
Run the script using:
sudo python3 bruteforce_mac.py
Note:
sudo
is required because the script changes the MAC address, which requires administrative privileges.
The script automatically changes the MAC address after every 5 failed attempts. It uses the ifconfig
command to bring down the interface, change the MAC, and bring it back up.
Customizing the MAC Address Change:
- By default, the script uses the
eth0
interface. If you're using a different network interface, replaceeth0
with the correct interface name in thechange_mac()
function. - The MAC address is randomly generated. You can customize this behavior in the
change_mac()
function if you prefer a specific MAC address.
This script is intended for ethical hacking, security research, and penetration testing. Do not use this script on systems you don't have permission to test. Unauthorized use is illegal and unethical.
- Use CUPP to generate personalized password lists.
- Modify the
TARGET_URL
and the network interface name as needed. - Run the script and ensure that you have administrative privileges to change the MAC address.