On 2011年12月14日, in soft, by netoearth

A Media Access Control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. MAC addresses are used for numerous network technologies. Logically, MAC addresses are used in the Media Access Control protocol sub-layer of the OSI reference model.

MAC addresses are most often assigned by the manufacturer of a network interface card (NIC) and are stored in its hardware, the card’s read-only memory, or some other firmware mechanism. If assigned by the manufacturer, a MAC address usually encodes the manufacturer’s registered identification number and may be referred to as the burned-in address. It may also be known as an Ethernet hardware address (EHA), hardware address or physical address. A network node may have multiple NICs and will then have one unique MAC address per NIC.

MACChanger is a GNU/Linux utility for viewing/manipulating the MAC addresses of network interfaces. It can set specific, random, vendor-based (with a 6600+ vendor list), and device-type-based MACs.

MACChanger Features: 
* Set specific MAC address of a network interface
* Set the MAC randomly
* Set a MAC of another vendor
* Set another MAC of the same vendor
* Set a MAC of the same kind (eg: wireless card)
* Display a vendor MAC list (today, 6800 items) to choose from

Finding MAC address under Ubuntu Linux:
Go to terminal and type following command:

sudo ifconfig -a

From the output, find eth0 (this is the default first Ethernet adapter)
Locate the number next to the HWaddr. This is your MAC address
The MAC Address will be displayed in the form of 88:1f:be:8a:85:73.

nikesh@poison:~$ sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr 88:1f:be:8a:85:73
inet addr:  Bcast:  Mask:
inet6 addr: fe80::a00:27ff:feab:daca/64 Scope:Link

Installaing MACChanger:
Go to terminal and type following command:

sudo apt-get install macchanger

Using MACChanger:
Below pic shows the various use to MACChanger, looks more at the MACChanger man pages for more detail options.

Macchanger is a Linux utility developed by Alvaro Lopez Ortega for viewing/manipulating the MAC addresses of network interfaces.Macchanger, or also by its official name MAC Changer, is an open source GNU/Linux utility.

It is very easy to use and handy to anyone who needs to do analysis, testing, or other activities with network adapters.

Is Macchanger free?

Yes, Macchnager is free of charge. The source code can be downloaded from the project website and was released under the terms of the GNU General Public License (GPL).

Does Macchanger come as part of the UBUNTU core?

No, Macchanger is external application and needs to be downloaded and installed first. You can do so by executing the following line of code in your Ubuntu terminal:

sudo apt-get install macchanger

This will download Macchanger and install it. Once you have Macchanger installed, you can start using it.

How do I use Macchanger?

Using Macchanger is very simple. It takes only a few command lines to change your MAC address. (For more details about MAC addressing, see this page: Wireless security: MAC addressing.)

Before you change your MAC address, it is a good idea to make a record of your existing MAC address. You can view your network adapter MAC address by executing the following command:


This will show you a list of your network adapters. Take a note of your existing MAC address. Before you can change your MAC address, you need to bring down your network adapter. You can do so in Ubuntu by executing the following code:

sudo /etc/init.d/networking stop

or alternatively

sudo ifconfig [adapter_name] down

You can find your adapter name in the iwconfig screen. If you attempt to change your MAC address without bringing the adapter down first, you will likely get the following message:

ERROR: Can’t change MAC: interface up or not permission: Device or resource busy

Finally, the following example shows how to change the MAC address:

sudo macchanger -m 12:34:56:12:34:56 [adapter_name]

After you are done changing your MAC address, you need to bring the adapter back up.

sudo /etc/init.d/networking start

or alternatively

sudo ifconfig [adapter_name] up

Easy as that.

How do I verify my spoofed MAC?

Now you can verify your new MAC address by typing and executing the ifconfig [adapter_name] command. Theifconfig screen will display output similar to the following:

james@tulen:~$ sudo ifconfig wifi0
wifi0     Link encap:UNSPEC  HWaddr 00-19-51-01-05-42-E0-E3-00-00-00-00-00-00-00-00
RX packets:244607 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11299065 (10.7 MB)  TX bytes:26 (26.0 B)
Interrupt:21 Base address:0xe000 Memory:d7dff000-d7dfffff

You can see your fake MAC address on the HWaddr line. Note, alternate way of checking your MAC address is to use the macchanger –show [adapter_name] command.

james@tulen:~$ sudo macchanger –show wifi0
Current MAC: 00:19:51:01:05:42 (unknown)

Nevertheless, this verification is not always reliable. You can run into a situation when the MAC address provided by the Macchanger command will be different from the one you get in ifconfig.

I would like to see a print screen…

Here you can find a print screen of Macchanger and how it is used:

Download Macchanger

This print screen shows how to easily change MAC address.

What is the syntax for MAC changer?

Macchanger accepts the following options:

-h, –help        Show summary of options.
-V, –version     Show version of program.
-e, –endding     Don’t change the vendor bytes.
-a, –another     Set random vendor MAC of the same kind.
-A                Set random vendor MAC of any kind.
-r, –random      Set fully random MAC.
-l, –list[=keyword]   Print known vendors (with keyword in the vendor’s description string)
-m, –mac XX:XX:XX:XX:XX:XX  Set the MAC XX:XX:XX:XX:XX:XX

Ready to download Macchanger?

Where can I download Macchanger?

Macchanger can be downloaded at the following website:

Check the author website for the most current version before you install it.

Is there a similar tool for Windows?


Yes, we can suggest reading about the Macshift tool.

Comments are closed.