configuration/local/bin/macspoofer.sh
Felix Van der Jeugt 7e9b3cd2ca thanks @procrat
2016-10-22 17:53:42 +02:00

12 lines
270 B
Bash
Executable File

#!/bin/sh
# Reading our private mac
here="$(dirname "$0")"
mac="$(cat "$here/macaddress")"
link="$(basename /sys/class/net/enp*)"
# Setting the MAC address for our wired
sudo ip link set "$link" down
sudo ip link set "$link" address "$mac"
sudo ip link set "$link" up