diff --git a/local/bin/.gitignore b/local/bin/.gitignore index f2ea9cd..924de70 100644 --- a/local/bin/.gitignore +++ b/local/bin/.gitignore @@ -4,3 +4,6 @@ ctags readtags html2text dwm + +# shouldn't share this one with the world +macaddress diff --git a/local/bin/macspoofer.sh b/local/bin/macspoofer.sh new file mode 100755 index 0000000..61d795a --- /dev/null +++ b/local/bin/macspoofer.sh @@ -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