add macspoofer script

This commit is contained in:
Felix Van der Jeugt 2016-09-11 23:20:28 +02:00
parent d896296c8d
commit b9b4675af5
2 changed files with 13 additions and 0 deletions

View File

@ -4,3 +4,6 @@ ctags
readtags
html2text
dwm
# shouldn't share this one with the world
macaddress

10
local/bin/macspoofer.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Reading our private mac
here="$(dirname "$0")"
mac="$(cat "$here/macaddress")"
# Setting the MAC address for our wired
sudo ip link set enp5s0u1u4 down
sudo ip link set enp5s0u1u4 address "$mac"
sudo ip link set enp5s0u1u4 up