summaryrefslogtreecommitdiff
path: root/spoof-mac
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2020-11-10 12:23:22 +0100
committerpks <pks@pks.rocks>2020-11-10 12:23:22 +0100
commita9e6dadf3a9ade7204e803e14dd7c7bac2aecef9 (patch)
treec215f08866ab1a096e6bcfa01b2a941dcef89050 /spoof-mac
parent5549f662d63c1d016248e2b86422cae18a628a85 (diff)
spoof-mac
Diffstat (limited to 'spoof-mac')
-rwxr-xr-xspoof-mac3
1 files changed, 3 insertions, 0 deletions
diff --git a/spoof-mac b/spoof-mac
new file mode 100755
index 0000000..722efb5
--- /dev/null
+++ b/spoof-mac
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+openssl rand -hex 6 | sed 's/(..)/1:/g; s/.$//' | xargs sudo ifconfig $1 ether