Created
October 12, 2015 22:39
-
-
Save vinzdef/96325a8238380e631c98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MAC ADDRESS SPOOFER | |
MAC="" | |
for i in {0..5}; do | |
VAL=$RANDOM | |
PART=$(printf "%2X" $VAL) | |
MAC+=$(printf "%.2s" $PART) | |
if [ $i -lt 5 ] | |
then MAC+=":" | |
fi | |
done | |
echo $MAC | |
sudo ip link set dev wlp3s0 down | |
sudo ip link set dev wlp3s0 address $MAC | |
sudo ip link set dev wlp3s0 up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lulz
love it - great work. The simple solutions are often the best solutions.
Your script inspired me so I built an expanded version...
Source is available here: macspoof.sh