feross / SpoofMAC

:briefcase: Change your MAC address for debugging
https://feross.org/spoofmac/
3.03k stars 269 forks source link

Cannot change MAC address on Macbook Pro 2018 and newer #87

Closed blaesus closed 4 years ago

blaesus commented 6 years ago

Solution: Update to macOS 10.15 Catalina

Updating to macOS 10.15 Catalina appears to fix the issue.

Original report

I cannot randomize any MAC address with spoof-mac. The program returns fine, but the MAC addresses are not changed. I tried changing en0 and en1 and neither took effect. The Node.js spoof doesn't work either.

I tried rebooting or signing in as another user; neither worked.

By the way, sudo ifconfig en0 ether aa:bb:cc:dd:ee:ff doesn't work either.

spoof-mac version: 2.1.1

untitled untitled 2

This is a new machine. I have another Macbook which runs on 10.12, where spoof-mac works just fine.

Thanks for making the tool! It is really helpful.

allyoucaneattogo commented 4 years ago

@onpaws Im sorry ill try @harshanand120 solution and if it won't work ill give an bug report

onpaws commented 4 years ago

@onpaws Im sorry ill try @harshanand120 solution and if it won't work ill give an bug report

Good luck! :)

robbhaker commented 3 years ago

Solution: Update to macOS 10.15 Catalina

Updating to macOS 10.15 Catalina appears to fix the issue.

Original report

I cannot randomize any MAC address with spoof-mac. The program returns fine, but the MAC addresses are not changed. I tried changing en0 and en1 and neither took effect. The Node.js spoof doesn't work either.

I tried rebooting or signing in as another user; neither worked.

By the way, sudo ifconfig en0 ether aa:bb:cc:dd:ee:ff doesn't work either.

spoof-mac version: 2.1.1

untitled untitled 2

This is a new machine. I have another Macbook which runs on 10.12, where spoof-mac works just fine.

Thanks for making the tool! It is really helpful.

this is a eye opener.

Danny-Z commented 3 years ago

兄弟们, 我发现这样是可以的 sudo ifconfig en3 ether 9A-44-B4-04-4E-49, 酱紫是不行的 9A:44:B4:04:4E:49

jorpilo commented 6 months ago

I manage to make it work on my Macbook M1... 1- disconnect from the wifi (don't turn the adapter off) 2- generate a mac address like mac_address="$(networksetup -listallhardwareports | awk -v RS= '/en0/{print $NF}' | head -c 8):$(openssl rand -hex 3 | sed 's/\(..\)/\1:/g; s/.$//')" 3- sudo ifconfig en0 ether "$mac_address" 4- networksetup -detectnewhardware 5- Check the spoofed mac with ifconfig en0 | grep ether | awk '{print $2}' and networksetup -listallhardwareports | awk -v RS= '/en0/{print $NF}'