This blog is NOT OFFICIAL website of Kali Linux. We just share Tutorials to learn Cybersecurity.

MAC Changer -- Change MAC Address

MAC address is stands for Media Access Control Address. MAC address is an unique identifier assigned to a network interface controller (NIC).

Basically it's a hardware id when we are connecting an Ethernet and Wi-fi.
As we know that MAC address is unique that means every device have a MAC address that doesn't match with any other devices. We can't change it permanently, but we are able to spoof it. MACchanger will help us to do that.

Why we need to change MAC address

For the normal purpose we don't need to change our MAC but in the penetration testing we have many benefits. Suppose some wireless system has blocked our original mac address then we can bypass it easily, or we can spoof our original MAC address before perform penetration test activity on wireless networks so if the admin of network can't see or ban our original MAC address. Then the admin can see or block/ban our spoofed MAC address.

How to Change MAC address

Spoofing MAC address is very very easy in Kali Linux. To do that we need to open the terminal window in our Kali Linux system. At first we check all the adapters using ifconfig command :

The screenshot of the command is following:

The highlighted MAC address in the above screenshot is the MAC address of our eth0 Ethernet interface.

We need to turn off our network interface. We are going to change MAC address of our eth0 so we type following command :

ifconfig eth0 down
The screenshot is following:

Then we can change our MAC address by using following command:

macchanger -r eth0
-r will change our MAC address in a random MAC address in eth0 network interface. The screenshot is following:

We can see in the screenshot that we have successfully spoofed our mac address.

Then we need to turn on our network interface again. To do this we use following command:

ifconfig eth0 up

The screenshot is following:

Now we will check our MAC address by using ifconfig command again:

The screenshot is following :

Check the highlighted area of MAC address it's changed.

If we learned something new together or got any error discuss it in the comment section.
Kali Linux


Post a Comment
  • Unknown photo
    UnknownAugust 20, 2020 at 11:45 PM

    hei, when i change my mac address it says the networkdriver didnt actually changed to the new one,can anybody help?

    Delete Comment
    • Kali Linux photo
      Kali LinuxAugust 21, 2020 at 3:52 AM

      Mac Changer have some issues with Realtek Adapters. We think that it comes due to Realtek adapters. We found this might be useful for you.

      Delete Comment
    • AnonymousJuly 26, 2022 at 5:21 PM

      Delete Comment