Skip to content

Instantly share code, notes, and snippets.

@sandaru1
Last active December 31, 2015 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandaru1/7938906 to your computer and use it in GitHub Desktop.
Save sandaru1/7938906 to your computer and use it in GitHub Desktop.
#!/bin/bash
mac=68:a8
mac0=`openssl rand -hex 1`
mac1=`openssl rand -hex 1`
mac2=`openssl rand -hex 1`
mac3=`openssl rand -hex 1`
final=$mac:$mac0:$mac1:$mac2:$mac3
ifconfig en1 ether $final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment