This script allows you to change the MAC address of one or more network interfaces (e.g., wlan0
, eth0
) at regular intervals. You can specify the network interfaces and the time interval between MAC address changes. This can be useful for enhancing privacy or for use in network testing and security.
- Change MAC address for one or multiple interfaces at once.
- Specify the sleep time between MAC address changes.
- Supports infinite cycling of MAC addresses (set sleep time to 0).
- Works on Linux-based systems.
This script requires the following:
-
Linux Operating System: This script is designed to work on Linux systems.
-
macchanger: A tool for changing the MAC address of network interfaces. It should already be installed on most Linux distributions, but if not, you can install it using:
sudo apt-get install macchanger # For Debian/Ubuntu-based systems
-
On Red Hat-based systems:
sudo yum install macchanger
This section guides users on how to install and set up the script on their system. It includes steps for cloning the repository and making the script executable.
-
Clone the repository to your local machine:
git clone https://github.com/Stalin-143/mac_changer.git
-
Change the repository
cd mac_changer
-
Make the script executable
chmod +x mac_changer.sh
-
Run the script
sudo bash mac_changer.sh
This section explains how to use the script, including input prompts and expected behavior. You should explain the steps the user needs to follow and how the script works.
-
Run the script:
./mac_changer.sh
Provide the network interfaces to change (e.g., wlan0, eth0).
Provide the sleep time between MAC changes (in seconds). Enter 0 for infinite cycling (no sleep).
The script will: Change the MAC address for each interface specified. Sleep for the specified time (or continuously change MAC addresses if sleep time is 0).
Enter the network interfaces (e.g., wlan0, eth0): wlan0, eth0
Enter the sleep time between MAC changes (in seconds, press 0 for infinite): 5
This will change the MAC addresses for wlan0 and eth0 every 5 seconds.
This project is licensed under the MIT License - see the LICENSE file for details.
It's often good to include a disclaimer, especially for security-related tools, clarifying that the script should be used responsibly and that the author is not liable for any misuse.
This script is provided "as-is" without any warranties or guarantees. The author is not responsible for any misuse or unintended consequences that may arise from using this script. Please use it responsibly and in compliance with your local laws and network policies.