Skip to content

Spoof your WiFi's MAC Address automatically on boot

License

Notifications You must be signed in to change notification settings

frost19k/spoofmac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spoofmac

Spoof your WiFi's MAC Address automatically on boot

What does this do?

spoofmac randomises your hardware MAC Address & assigns a (semi) random MAC to your network card.

Why?

This is as good an explanation as any.

How does it work?

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

Install

  • 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
  • Restart your system

Notes

  • 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.

About

Spoof your WiFi's MAC Address automatically on boot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages