如何修改macbook的MAC地址

修改命令

sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx

查看

ifconfig en0 | grep ether

随机生产一个MAC地址

openssl rand -hex 6 | sed ‘s/\(..\)/\1:/g; s/.$//’

电脑重启后,MAC地址会恢复到之前,为了方便,可以使用脚本或则安装spoof-mac,每次电脑重启后,会随时生产一个MAC地址
执行命令

brew install spoof-mac
sudo brew services start spoof-mac

参考链接
Change or Spoof a MAC Address in Windows or OS X

posted @ 2018-07-26 13:00  superxjhw  阅读(1718)  评论(0编辑  收藏  举报