add macspoofer script
This commit is contained in:
parent
d896296c8d
commit
b9b4675af5
2 changed files with 13 additions and 0 deletions
3
local/bin/.gitignore
vendored
3
local/bin/.gitignore
vendored
|
@ -4,3 +4,6 @@ ctags
|
||||||
readtags
|
readtags
|
||||||
html2text
|
html2text
|
||||||
dwm
|
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…
Add table
Add a link
Reference in a new issue