Friday, 9 September 2016

MAC changer in Kali Linux

Some times we need to spoof.

So here is a quick tutorial on MAC Address Spoofing in Kali Linux.

First we need to take down the network adapter in order to change the MAC address. This can be done using the following command:

ifconfig wlan1 down

Replace wlan1 with your own network interface.

Now use the following command to change your MAC address to a new random MAC Address:

macchanger -r wlan1

MAC Address spoofing with macchanger

Macchanger will show you the permanent, current and changed MAC address. The permanent MAC Address will be restored to your network adapter after a reboot or you can reset your network adapters MAC address manually. Use the following command to restore the permanent MAC address to your network adapter manually:

macchanger permanent wlan1

You can also spoof a particular MAC address using the following command:

macchanger -m [Spoofing MAC Address] wlan1

macchanger -m XX:XX:XX:XX:XX:XX wlan1

If you receive the following error you need to take down the network interface first before changing the MAC Address (Command: ifconfig wlan1 down):

Use the following command to bring up your network adapter with the new MAC address:

ifconfig wlan1 up

Use the following command to show the current MAC address:

No comments:

Post a Comment