From b9b4675af53f2e5ce954d9e683c546c5ce169837 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Sun, 11 Sep 2016 23:20:28 +0200 Subject: [PATCH] add macspoofer script --- local/bin/.gitignore | 3 +++ local/bin/macspoofer.sh | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100755 local/bin/macspoofer.sh 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