Linux控制台改变MAC地址命令

2020-09-06  本文已影响0人  Hack_J
# ifconfig has already become decrepated
# we need to use ip now

To change MAC address, follow the commands below

#Show all the network device
ip link show 

#turn down the device you wanna change MAC for 
sudo ip link set dev <your device here> down

#Change the MAC address for that device
sudo ip link set dev <your device here> address <your new mac address>

#Turn up the device again
sudo ip link set dev <your device here> up

Reference: "Learn Python & Ethical Hacking From Scratch" by Zaid Sabih. (On Udemy)

上一篇 下一篇

猜你喜欢

热点阅读