Skip to content

Instantly share code, notes, and snippets.

@framp
Created June 10, 2020 22:50
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 framp/4bd3fff897e1591b04e87b331a32aad6 to your computer and use it in GitHub Desktop.
Save framp/4bd3fff897e1591b04e87b331a32aad6 to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo ip link set down dev wlp3s0 && sudo ip link set dev wlp3s0 address $(tr -dc A-F0-9 < /dev/urandom | head -c 10 | sed -r 's/(..)/\1:/g;s/:$//;s/^/02:/') && sudo ip link set up dev wlp3s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment