Change MAC address using python script
Jan 15, 2022
Let’s discuss how to change the mac address of a Linux computer using python script.
I use Kali linux as the operating system. You can try it yourself.
— Note —
Get Akila Tharanga’s stories in your inbox
Join Medium for free to get updates from this writer.
Before run this script you have to get the super user control. Follow these steps:
- type “sudo su”
- hit “Enter”
- it will ask your password, then type your password
Then run the following script “python3 change_mac_address.py”
Press enter or click to view image in full size![]()
try the command “ifconfig” and check the new MAC address.
Enjoy…!!!




