Spoofing MAC address in MacOS Ventura on M1 chip
In macOS Ventura you can randomize MAC address involving the command line utility called spoof-mac. Here, we'll go through the HomeBrew-dependent mac-spoof technique.
MAC addresses are used by some services to filter who or what is allowed onto a particular network. Your computer's MAC address is unique and identifies it to connected networks. A MAC address is also used by some services to track computers and other devices. By the way, this article will discuss altering the MAC address on a Mac; however, MAC in this case refers for Media Access Control, not to be confused with Mac - which is short for Macintosh.
Note: There are other ways to spoof MAC address however this is the only one that worked for me in MacOS Ventura on M1 chip.
Using “spoof-mac” to randomize your MAC address in MacOS Ventura
Step 1: Install Command line tools in terminal
xcode-select --install
Step 2: install homebrew in terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 3: Disable analytics:
brew analytics off
You might already have Homebrew and Command line tools installed on your system. In this case just skip these 3 steps.
Now you can install packages through homebrew. You can read documentation with this command:
brew help
Installing packages is simple and you can run following syntax:
brew install [package name]
Step 4: Install spoof-mac with homebrew
brew install spoof-mac
Step 5: Interface name
Option-click on wifi icon in menu bar and get interface name (normally it is en0 or en1)
Step 6: Disconnect wi-fi
Disconnect wifi by toggling the wifi button so you’re no longer connected to wi-fi
Step 7: Run spoof-mac
in terminal run following command to generate random MAC address at your interface en0 (change en0 to en1 or other if applicable)
sudo spoof-mac randomize en0
Step 8: Turn on wi-fi
Toggle the button again and turn your wi-fi on. The MAC address will be changed untill you switch it back or reboot.
Restart spoof-mac
To restart spoof-mac after an upgrade or anytime you need you can run this command:
sudo brew services restart spoof-mac
Check your MAC address
If you want to check what is your MAC address you can run following commands:
spoof-mac list
You will see what is your spoofed mac address on the line where is en0 (or en1 if applicable)
Another option is to run following command:
ifconfig en0 | grep ether
It will show you MAC address on en0 (you can change en0 to en1 or other if applicable for you)
Double checking your MAC address:
Log into your wi-fi router and check connected devices and look for MAC address of your device. The MAC address should have same value like when running “ifconfig” command or "spoof-mac list" command.
Checking hardware MAC address and spoofed Mac address
Run following command where you can see hardware MAC address on port en0.
networksetup -listallhardwareports
You should be able to see difference in hardware mac address retrieved from the command above and spoofed mac address that you get from command “ifconfig” above.
Did it help or do you like it? You can send some sats to stallion@walletofsatoshi.com or to bitcoin lightning LNURL: lnurl1dp68gurn8ghj7ampd3kx2ar0veekzar0wd5xjtnrdakj7tnhv4kxctttdehhwm30d3h82unvwqhhxarpd3kxjmmwavy8ja