PyMacChanger is a Python script designed to facilitate the modification of MAC addresses for network interfaces on Linux systems.
- Show Current MAC Address: Display the current MAC address of a specified network interface.
- Random MAC Address: Change the MAC address to a randomly generated one.
- Original MAC Address: Change the MAC address back to the original (permanent) MAC address.
- Custom MAC Address: Change the MAC address to a user-specified one.
- Python 3
- Linux operating system
macchanger
tool (install it using:sudo apt-get install macchanger
)
-
Clone the repository:
git clone https://github.com/EmreDinleyici/Python-MacChanger.git
-
Navigate to the project directory:
cd PyMacChanger
-
Run the script with appropriate options:
python PyMacChanger.py -i <interface> -s
- -s, --show: Show the current MAC address.
- -r, --random: Change MAC address to a random MAC address.
- -p, --permanent: Change MAC address to the original (permanent) MAC address.
- -i, --interface: Specify the network interface (eth0, wlan0 etc.).
- -m, --mac: Enter a new MAC address.
-
Show current MAC address:
python PyMacChanger.py -i wlan0 -s
-
Change to a random MAC address:
python PyMacChanger.py -i wlan0 -r
-
Change to a specific MAC address:
python PyMacChanger.py -i wlan0 -m 00:11:22:33:44:55
-
Change to permanent(original) MAC address:
python PyMacChanger.py -i wlan0 -p
This script is provided as-is; use it at your own risk. Changing MAC addresses may interfere with network connectivity.