MAC Spoofing | Change Your MAC Address on Windows and Linux!

In this tutorial, we’ll learn about MAC address (Media Access Control) and ways to spoof it. We’ll focus on applications and tools to change MAC address of your system (Linux, Windows as well as Mac OSX).


In this section, we’ll learn about Media Access control (MAC), Spoofing MAC address, and motivation behind changing and required software tools.

Media Access control – MAC

A media access control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment.

In simple words, whether you are on wireless WiFi or Ethernet connection you have a hard coded identification number on your NIC (Network Interface Card – a hardware piece which helps to connect you with other devices on your local area network).

Example of MAC Address: 00-04-DC-01-B3-4D

Note: The first three octets defines manufacturer and rest three unique octets defines the particular hardware piece. For example

Nortel: 00-04-DC
Dell: 00-14-22
Cisco: 00-40-96

Rest part (last 3 octets) of media access control address address is unique for each of us.

Find Your MAC Address

All devices (that are able to connect to any network) have a MAC address, regardless of the operating system they have. You can check your device Media Access Control address (of WiFi, Bluetooth and Ethernet card) with the following commands:

  • Windows CMD Command #1: getmac
  • Windows CMD Command #2: ipconfig /all
  • Linux Terminal: ifconfig –a
  • For OSX – Terminal: networksetup –listallhardwareports
  • For Android: Select Phone Settings> About Phone> Status> WiFi MAC Address

Android users might have to turn ON WiFi to view the WiFi media access control address. And same holds true for Bluetooth MAC address.

Motivation for MAC Spoofing

There are many reasons one needs to spoof one’s MAC address.

Identity masking: If a user chooses to spoof his or her MAC address in order to protect the user’s privacy, this is called identity masking.

New hardware for existing ISP: Many internet service providers register the client’s MAC address for service and billing services. Since Media Access Control address are unique and hard-coded on network interface controller (NIC) cards. When a client wants to connect a new gadget or change his/her existing gadget, the ISP will detect different MAC addresses and the ISP might not grant Internet access to those new devices. [source: wikipedia]  

Fulfilling software requirements: Some software are licensed to a particular MAC address only. If, for any reason- you need it to run on other device, you have to clone the media access control address.

Free WiFi: I had found many folks, changing MAC address for sole purpose of getting a few more hours of free WiFi down at your local coffee shop/college/mall.

Software Apps Required

You might be using different Operating Systems but regardless of that you’ll have a MAC address. You can change it using following applications:

Changing MAC Address on Windows

It can be changed manually by going to System Registry Keys under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}

But we have a nice software build by Shreyas Zare known as TMAC. It’s freeware software that’s made in India. You just need to install TMAC and you can change MAC address of all your adapters.

Download TMAC: TMAC Address Changer

  1. Open TMAC and choose appropriate Network Connection.
  2. Click Random MAC Address button (to change deafault) or type the address you like (to clone).
  3. Click change now and it’s Done!
Tmac MAC Address Changer for Windows

Tmac MAC Address Changer for Windows

Spoofing MAC Address on Linux

Changing MAC address on Linux system is fairly simple! You have macchanger pre-installed on Kali Linux and we’ll use it.

Download (for other linux Distros): apt-get install macchanger

Open the Terminal and first turn down your interface card. Type the command:

Terminal | Turn OFF WiFi
[email protected]:~# ifconfig down wlan0
Terminal | Turn DOWN Ethernet Card
[email protected]:~# ifconfig down eth0

Get a Random MAC!

Now you can easily change the MAC address as the network card is not in action. Now type the following command:

Terminal | For Wireless
[email protected]:~# macchanger –r wlan0
Terminal | For Ethernet
[email protected]:~# macchanger –r eth0

Now a random MAC address should be assigned to you. And you have to turn ON your wireless/ethercard. (scroll down a bit for commands)

Clone MAC Address!

IF you need a Media Access Control address of your choice then use the following Linux command:

Terminal | For WiFi
[email protected]:~# macchanger –mac 34:A1:A3:DC:F9:AF wlan0
Terminal | For Ethernet
[email protected]:~# macchanger –mac 34:A1:A3:DC:F9:AF eth0

Change 34:A1:A3:DC:F9:AF with Media Access Control address of your choice.

Finally, when you have successfully changed your MAC address, it’s time to turn your network card on with following command.

Kali Terminal | Turn ON Wireless Card
[email protected]:~# ifconfig up wlan0
Kali Terminal | Turn ON Ethernet Card
[email protected]:~# ifconfig up eth0

Points To Be Noted!

  • Although, it’s fairly easy to view and change MAC address but you might get confused to identify particular address between different MAC addresses of bluetooth, WiFi, Ethernet etc.
  • Spec. if you are running more than one WiFi adapter then, it might a bit confusing, be careful!

Note: Active WiFi adapters will show some network traffic on it. This will help you to select your desired chip whose MAC address you wish to change.

External Resources

Here are few external resources and guides that you may find interesting.

References and Further Readings:

You may also like...

Would You Like to Contribute Something?