Not able to spoof MAC address in Kali Linux
Solution 1:
Just save this code in to a bash script (changeMac.sh) and try running it with elevated permissions (sudo bash changeMac.sh
) when you wanna change the mac address.
service NetworkManager stop
ifconfig wlan0 down
macchanger -r wlan0
ifconfig wlan0 up
service NetworkManager start