summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2017-07-05 07:55:22 +0200
committerPatrick Simianer <p@simianer.de>2017-07-05 07:55:22 +0200
commit4d09a9128fd5ed971242d6c3d5ca86565fbf2332 (patch)
tree03c4e434ce451ea6742ef85f696e65e36146bc43
parent385f9032d949274f61c2e83bc0a376af3c1421b6 (diff)
spoof MAC address on mac
-rwxr-xr-xspoof-mac.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/spoof-mac.sh b/spoof-mac.sh
new file mode 100755
index 0000000..40f89b4
--- /dev/null
+++ b/spoof-mac.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+openssl rand -hex 6 | sed 's/(..)/1:/g; s/.$//' | xargs sudo ifconfig $1 ether
+