Simply put, I am adding strings to a script that I run upon login to spoof my MAC address for anonymity. I have installed
macchanger on my Ubuntu 16.04 machine and I am experimenting with it from the command line before adding the lines so the script.sh.
When I run
ifconfig | grep HWaddr I get the following output:
enp3s0 Link encap:Ethernet HWaddr xx:31:50:5f:21:xx wlo1 Link encap:Ethernet HWaddr xx:26:c7:a9:e2:xx
After some looking around I understood that wlo1 is my Network Adapter that needs spoofing (I am not sure what enp3s0 is at this moment).
This is how I proceeded to change my MAC address (unsuccessfully):
sudo service network-manager stop sudo ifconfig wlo1 down sudo macchanger -a wlo1
At this point my MAC address is changed because the output is:
Current MAC: xx:26:c7:a9:e2:xx (Intel Corporate) Permanent MAC: xx:26:c7:a9:e2:xx (Intel Corporate) New MAC: 00:26:0d:15:d0:62 (Mercury Systems, Inc.)
I proceed with:
sudo ifconfig wlo1 up sudo service network-manager start
And then when I check the MAC address, it was reset to it's original state:
$ ifconfig | grep HWaddr enp3s0 Link encap:Ethernet HWaddr xx:31:50:5f:21:xx wlo1 Link encap:Ethernet HWaddr xx:26:c7:a9:e2:xx
What am I doing wrong?