Hacker News new | ask | show | jobs
by fnord77 2421 days ago
https://github.com/feross/SpoofMAC
2 comments

On OpenBSD:

    # echo "lladdr random" >> /etc/hostname.athn0
Does this work with OSX? Its 5 years since the last update...
Had this alias for years and it still works:

    alias random-mac='openssl rand -hex 6 | sed '\''s/\(..\)/\1:/g; s/.$//'\'' | xargs sudo ifconfig en0 ether'
Awesome, so does that change the permanent mac address that comes with the laptop, and it is forever gone? Or does it somehow "reset" when you restart, and you rerun this command multiple times
It resets when you turn the NIC on and off, I believe.
Yes it still works.