Search code examples
mac-addressmacos-high-sierramac-spoofing

Can't spoof MAC address in a MacBook


I'm having some trouble spoofing my MAC address on my new MacBook Pro (OSX 10.13.6): it simply doesn't change -.-"

On my prevous MacBook I created and used this script:

#! /bin/bash

echo "Old MAC:"
sudo ifconfig en0 ether | grep ether

MAC=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
sudo ifconfig en0 ether $MAC

echo "New MAC ($MAC):"
sudo ifconfig en0 ether | grep ether

It worked fine on my old MacBook, but after migrating my user to the new MacBook, the old and the new MAC addresses are the same. I also tried third party tools (brew install spoof-mac) with the same result.

If I try to spoof my MAC address now, the output is always like this, does't matter if the WIFI is connected, disconnected or disabled.

tim@Tim:~$ ./renewMac.sh
Old MAC:
    ether 88:e9:fe:83:XX:XX
New MAC (cd:4c:a0:01:9f:e4):
    ether 88:e9:fe:83:XX:XX

Any tips what is wrong configured?


Solution

  • Spoofing works again on Catalina (macOS 10.15) (thanks @Life is complex & source)