[go: up one dir, main page]

@alvaro
sign in · lmno.lol

Changing MAC address in org

Via Minko Gechev's tweet. Saving in an org block, just because…

changeMAC() {
    local mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
    ifconfig en0 ether $mac
    ifconfig en0 down
    ifconfig en0 up
    echo "Your new physical address is $mac"
}

changeMAC
#+RESULTS:
Your new physical address is b4:b2:f8:77:bb:87

ps. Also see Execute org blocks as root.



powered by LMNO.lol

privacy policy · terms of service