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.
[ Parent
| on HN ]
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.