Install Macchanger using this command
Code:
sudo apt-get install macchanger
set crontabs for rebooting
at the end of opened file, add these two lines (ETHERNET CARD : eth0 ; WIFI CARD : wlan0)
Code:
@reboot macchanger -r eth0
@reboot macchanger -r wlan0
save and close using (CTRL+o & CTRL+x)
now open /etc/NetworkManager/NetworkManager.conf
Code:
nano /etc/NetworkManager/NetworkManager.conf
if there is a connection section, leave first line and add next two lines
Code:
[connection]
ethernet.cloned-mac-address=preserve
wifi.cloned-mac-address=preserve
and now reboot the system and you can see the MAC address is changed
Remember that this only works during reboot it will not work when you are logged in
if you want changes to occur during the session is running, use this script
You can also run the commands(Italic commands) in the terminal directly without the first line if you don't want to create the script
Code:
touch macc.sh
nano macc.s
add these lines to the file
Code:
#!/bin/bash
service network-manager stop
ifconfig eth0 down
macchanger -r eth0
ifconfig eth0 up
ifconfig wlan0 down
macchanger -r wlan0
ifconfig wlan0 up
service network-manager start
save and close nano
run these in terminal
Code:
chmod +x macc.sh
./macc.sh
voila! you just changed mac address during session