How to change / spoof MAC Address from Terminal on MacOS | MAC Address Spoofing

Mert Kadir Gursoy
2 min readNov 21, 2021

--

1) Open Macbook Terminal on your Macbook.

cmd(button) + space bar(button) => Search “Terminal”

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

2) We need to know what is our current MAC Address.

  • Copy & Paste the following command and press enter.
ifconfig en0 | grep ether
  • Ether value is your Mac Address value.

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

3) Now we can change Mac Address value.

  • Copy & Paste your new Mac Address & press enter.
sudo ifconfig en0 ether "add here your new MAC address"

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

BONUS: Apple Silicon

If you have an Apple Silicon Macbook, You can also use the following steps to spoof your Macbook’s MAC Address.

Disconnect from the wifi:

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z

Change the ether:

sudo ifconfig en0 lladdr "add here your new MAC address"

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Once you’re done, check the Mac Address again.

Check it again:

ifconfig en0 | grep ether

Congratulations.

You’ve just changed your Mac Address successfully.

--

--

Mert Kadir Gursoy

Product Team Lead | Product Management ~ Product Design ~ UX Research ~ Technical Project Management | https://www.linkedin.com/in/mert-gursoy