News for hackers. Stuff that matters.
Re:How to randomize your MAC address on OS X by easytiger on Wednesday June 11, 2014 @04:35AM (#7876972)
that really should be a bash script, not a python one.
Re:How to randomize your MAC address on OS X by column on Wednesday June 11, 2014 @05:04AM (#7877042)
why?
Re:How to randomize your MAC address on OS X by easytiger on Wednesday June 11, 2014 @06:05AM (#7877169)
Because mostly you are just shelling out. Also you can't just use any mac addr as some bits are reserved, e.g. multicast.

But you can collapse that as so or suchlike:

    ifconfig  eth34 hw ether $(openssl rand 6 | xxd -p | sed 's/\(..\)/\1:/g; s/:$//')
Obviously doing this is wrong anyway but that will do what your script does.
Re:How to randomize your MAC address on OS X by column on Wednesday June 11, 2014 @10:51AM (#7878273)
To each his own, my point was readability, but some might prefer a one-liner such as yours.
Re:How to randomize your MAC address on OS X by easytiger on Thursday June 12, 2014 @03:00AM (#7882143)
Well the whole point of scripting is to get the job done.