This Python-based script facilitates MAC address manipulation on Linux-based systems (especially Kali Linux). It allows users to either manually assign a MAC address or generate one randomly using OUIs from vendors like Cisco and Dell.
The script:
- Displays current MAC
- Changes to manual or random MAC
- Uses
ifconfigvia Python’ssubprocess
- Python 3
- Built-in modules:
re,subprocess,random
- Root/sudo access
ifconfigutility (Install vianet-tools):
sudo apt update
sudo apt install net-tools
How to Run
sudo python3 mac_changer.py
Script Options
Enter 1: Manual MAC address change
Enter 2: Generate Random MAC using Cisco or Dell OUIs