Change Mac address using Macchanger in Kali Linux

Premium Member
Joined
April 6, 2025
Messages
82
Reaction score
16
Points
8


Install macchanger :​

1
2
sudo apt update
sudo apt install macchanger
Screenshot 2022 05 22 20 18 22

Change the MAC address to a random address​

1sudo ifconfig wlan0 down
Now, use macchanger with the -r parameter to change the MAC address to a random address.

1sudo macchanger -r wlan0
Once the MAC address is changed, turn on the network interface by executing the following command:

1sudo ifconfig wlan0 up
Screenshot 2022 05 22 20 23 34

Now, Check the current MAC address by executing the following command:

1macchanger -s wlan0
Screenshot 2022 05 22 20 23 50

Other Features of Macchanger​

Note: Always turn off the network interface (as we did above) for every command that we will discuss below using the ifconfig command.

Change MAC address to a specific address​

To change the MAC address to a specific address, -s parameter is used. You can enter the MAC address of your choice. Execute the following command to set the MAC address:

1sudo macchanger -m XX:XX:XX:XX:XX:XX <network_interface>
1sudo macchanger -m 00:2t:d0:f0:r3:ee wlan0
Screenshot 2022 05 22 20 36 14

Change MAC address to a random address (known vendor)​

To change the MAC address to a random address but with a known vendor, -A is used. Don’t confuse it with -r parameter, -r also changes to a random address but with no vendor. Execute the following command with -A parameter:

1sudo macchanger -A wlan0
Screenshot 2022 05 22 21 14 34

Change MAC address to a random address (same vendor)​

To change the MAC address to a random address with the same vendor, -a is used. Execute the following command:

1sudo macchangern -a wlan0
Screenshot 2022 05 22 21 14 45

To print the list of all the known vendors available, Execute the following command with -l parameter:

1sudo macchanger -l
Screenshot 2022 05 22 21 15 17

To list only the wireless network, Just type the keyword followed by the –list parameter,

1macchanger --list wifi
Screenshot 2022 05 22 21 17 59

Reset to the original MAC address​

To change back to the original MAC address, execute the following command:

1sudo macchanger -p wlan0
Screenshot 2022 05 22 21 14 59

However, once you reboot the system, your spoofed MAC address will change back to its original MAC address automatically.

 
  • Tags
    change kali linux linux
  • Top