Linux command
macchanger 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show
macchanger -s [eth0]
Example
sudo macchanger -r [eth0]
Example
sudo macchanger -r -b [eth0]
Example
sudo macchanger -m [XX:XX:XX:XX:XX:XX] [eth0]
Example
sudo macchanger -a [eth0]
Reset
sudo macchanger -p [eth0]
Example
macchanger -l
说明
macchanger manipulates the MAC address of network interfaces. It can set random addresses, vendor-specific addresses, or restore the original hardware address. Useful for privacy, testing, and network troubleshooting.
参数
- -s, --show
- Show current and permanent MAC addresses
- -r, --random
- Set a completely random MAC address
- -b, --bia
- Pretend to be a burned-in address (vendor bit)
- -m, --mac _address_
- Set a specific MAC address
- -p, --permanent
- Reset to the permanent hardware MAC
- -l, --list
- Print known vendor MAC prefixes
- -e, --ending
- Only change the last bytes, preserving the vendor prefix
- -a, --another
- Set random vendor MAC of same kind
- -A
- Set random vendor MAC of any kind
FAQ
What is the macchanger command used for?
macchanger manipulates the MAC address of network interfaces. It can set random addresses, vendor-specific addresses, or restore the original hardware address. Useful for privacy, testing, and network troubleshooting.
How do I run a basic macchanger example?
Run `macchanger -s [eth0]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --show do in macchanger?
Show current and permanent MAC addresses