Sniffing & Spoofing
macchanger is a utility for viewing and manipulating the MAC address of network interfaces. Useful for network anonymity and bypassing MAC filtering.
sudo apt install macchanger
macchanger [options] <interface>
macchanger is a utility for viewing and manipulating MAC addresses of network interfaces. It allows you to spoof, randomize, or restore hardware addresses for network anonymity, MAC filtering bypass, and security testing.
The tool supports random MAC generation, vendor-specific MAC selection, and permanent MAC restoration. Changes are temporary and revert on reboot unless configured in startup scripts.
macchanger --helpDisplay the summary of all available optionsmacchanger --versionShow the installed macchanger versionmacchanger -s eth0Show the current and permanent MAC address of eth0macchanger --show wlan0Print the current MAC of wlan0 without changing itmacchanger -r eth0Assign a fully random MAC address to eth0macchanger --random wlan0Set a completely random MAC on wlan0macchanger -a eth0Set a random MAC keeping the same vendor kindmacchanger -A wlan0Set a random vendor MAC of any kindmacchanger -e eth0Randomize only the last bytes, keeping the vendor prefixmacchanger --ending wlan0Change device bytes but leave the vendor bytes unchangedmacchanger -p eth0Restore the original permanent hardware MAC of eth0macchanger --permanent wlan0Reset wlan0 back to its burned-in hardware MACmacchanger -m 00:11:22:33:44:55 eth0Set eth0 to a specific chosen MAC addressmacchanger --mac=00:11:22:33:44:55 wlan0Assign an exact MAC using the long-form optionmacchanger -lList all known hardware vendors and OUI prefixesSpoof an authorized device's MAC address to bypass MAC-based access controls.
Change your MAC address to prevent tracking on public WiFi networks.
Verify that MAC filtering provides meaningful security benefit.
Displays the original factory address alongside the newly applied temporary address.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.