Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 841
Verim Avatar asked Sep 20 '18 09:09

Verim


People also ask

Can you change the MAC address of a Macbook?

Changing Your Mac AddressOpen Finder on your Mac and click Applications. Then, double-click on Utilities. Double-click on Terminal. The terminal will launch and you can start the process to change your MAC address.

Why can't I change my MAC address?

All MAC addresses are hard-coded into a network card and can never be changed.

How do I manually spoof a MAC address?

To spoof the address go to Control Panel>Network Connections. Then right click on the connection you want to spoof and select properties. Now go to the advanced tab and click on Network Address. Then select the black box and type the MAC address you want to have.


2 Answers

What you can get from https://forums.developer.apple.com/thread/106768 is: It has been actively removed and Apple is not willing to restore it

It does not work with new devices (2018+), on these it does not even when used with external adapters (like USB-C to Ethernet Adapters). So it is NOT caused by hardware, it's the combination of MacOS and new hardware that disables the feature.

I wonder if there is a way to trick MacOS in "thinking" that it deals with an older Mac. Maybe then it'll work again.

like image 163
Arno N. Uehm Avatar answered Jan 01 '23 07:01

Arno N. Uehm


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

like image 40
Verim Avatar answered Jan 01 '23 07:01

Verim