add macspoofer script
This commit is contained in:
parent
d896296c8d
commit
b9b4675af5
3
local/bin/.gitignore
vendored
3
local/bin/.gitignore
vendored
@ -4,3 +4,6 @@ ctags
|
||||
readtags
|
||||
html2text
|
||||
dwm
|
||||
|
||||
# shouldn't share this one with the world
|
||||
macaddress
|
||||
|
10
local/bin/macspoofer.sh
Executable file
10
local/bin/macspoofer.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user