Skip to content

This script allows you to change the MAC address of one or multiple network interfaces (e.g., wlan0, eth0) at regular intervals. The user inputs the desired interfaces and sleep time between MAC address changes, with an option for infinite cycling.

License

Notifications You must be signed in to change notification settings

Stalin-143/mac_changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAC Address Changer

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.

Features

  • 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.

Prerequisites

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
    
    

Installation

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.

  1. Clone the repository to your local machine:

    git clone https://github.com/Stalin-143/mac_changer.git
    
  2. Change the repository

     cd mac_changer
  3. Make the script executable

      chmod +x mac_changer.sh
    
  4. Run the script

     sudo bash mac_changer.sh
    
    

WhatsApp Image 2024-11-21 at 9 35 58 PM

Usage

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.

  1. 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).

Example

 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.


License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

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.

💰 You can help me by Donating

BuyMeACoffee PayPal

About

This script allows you to change the MAC address of one or multiple network interfaces (e.g., wlan0, eth0) at regular intervals. The user inputs the desired interfaces and sleep time between MAC address changes, with an option for infinite cycling.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages