mirror of
https://github.com/tcsenpai/powertux.git
synced 2025-06-06 03:05:24 +00:00
change mac address on the fly
This commit is contained in:
parent
e8fdd65d66
commit
fad7218091
14
bin/machange
Executable file
14
bin/machange
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Requirements:
|
||||||
|
# macchanger [ on Ubuntu: sudo apt-get install macchanger | dnf and pacman -S works too ]
|
||||||
|
WIFICARD="wlp2s0"
|
||||||
|
echo "MAC Address for WiFi card: $(ip link show $WIFICARD | grep link)"
|
||||||
|
# Downing the WiFi card
|
||||||
|
sudo ip link set $WIFICARD down
|
||||||
|
# Do the magic
|
||||||
|
sudo macchanger -r $WIFICARD
|
||||||
|
# Upping the WiFi card
|
||||||
|
sudo ip link set $WIFICARD up
|
||||||
|
echo "MAC Address for WiFi card: $(ip link show $WIFICARD | grep link)"
|
||||||
|
echo "..:: G O O D L U C K I A M B E H I N D 7 P R O X I E S ::.."
|
Loading…
x
Reference in New Issue
Block a user