Spoof your WiFi's MAC Address automatically on boot
spoofmac randomises your hardware MAC Address & assigns a (semi) random MAC to your network card.
This is as good an explanation as any.
There are two parts to this repo. A .service
file & a shell script.
-
The service file makes sure that the MAC Address is assigned at boot etc.
-
The script
- uses predefined MAC prefixes & randomly generates the NIC specific octets
- automatically recognises the WiFi interface name
- applies the (semi) random MAC address to the interface
- Download the repo
❯ git clone https://github.com/frost19k/spoofmac.git
- Run the install script
❯ cd spoofmac
❯ sudo ./install.sh
-
Alternatively
- Copy the systemd
.service
file to a systemd unit search path - Copy the script to a location of your choosing
- Modify the service file & point to the absolute path of the script
- Enable the service
- Copy the systemd
-
Restart your system
- I would recommend using known OUI prefixes. Fully random MACs may cause issues.
- You can find OUI MAC prefixes here
- I recommend using at least 5 different prefixes
- If autodetect interface name fails you can always manually define the name in the
.service
file.