Skip to content

Instantly share code, notes, and snippets.

@int0x33
Created February 14, 2019 11:33
Show Gist options
  • Select an option

  • Save int0x33/4997187b087acf3c19a7b76f953795f7 to your computer and use it in GitHub Desktop.

Select an option

Save int0x33/4997187b087acf3c19a7b76f953795f7 to your computer and use it in GitHub Desktop.
#!/bin/sh
MACCHANGER=/usr/bin/macchanger
[ "$IFACE" != "lo" ] || exit 0
# Bring down interface (for wireless cards that are up to scan for networks), change MAC address to a random vendor address, bring up the interface
/sbin/ifconfig "$IFACE" down
macchanger -A "$IFACE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment