Skip to content

Instantly share code, notes, and snippets.

@YetAnotherMinion
Last active August 29, 2015 14:26
Show Gist options
  • Save YetAnotherMinion/bada2ddafae4acbb2afe to your computer and use it in GitHub Desktop.
Save YetAnotherMinion/bada2ddafae4acbb2afe to your computer and use it in GitHub Desktop.
To spoof a MAC address to a different value:
$ sudo macchanger --mac=00:00:00:00:00:01 eth0
To spoof a MAC address to a random value while preserving the same OUI:
$ sudo macchanger -e eth0
To spoof a MAC address to a completely random value:
$ sudo macchanger -r eth0
To get all MAC address OUIs associated with a particular vendor (e.g., Juniper):
$ macchanger -l | grep -i juniper
To show the original permanent and spoofed MAC addresses:
$ macchanger -s eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment