configuration/local/bin/macspoofer.sh

11 lines
240 B
Bash
Raw Normal View History

2016-09-11 23:20:28 +02:00
#!/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