Changing MAC addresses
A MAC (medium access control) address is a 48-bit unique identifier for a LAN or WLAN adapter. The most common format of a MAC address is the universlly administered address, which is composed of a organization identifer (OUI, 24 bits) and a station identifier (24 bits). OUI-composed MAC addresses have long been "hard wired" into adapter cards, but modern operating systems make it possible to change a MAC address.
Many reasons exist to change a MAC address. Some are evil and some good. For example, by changing a MAC address, an attacker can impersonate a "trusted" MAC address to fool intrusion detection systems, evade traffic filters applied to LAN protocol headers, and receive LAN traffic intended for the station legitimately identified by the impersonated MAC address. By impersonating a trusted MAC address, an attacker can also obtain an IP address from a DHCP server that is supposed to be assigned to a different host and this allows the attacker to impersonate not only a host on a LAN but a host in an IP network as well.
Very few users ever encounter situations where they must change a MAC address. Today, I'll offer a scenario where you might, and I'll identify some software you might find helpful.
You register as a guest in a hotel. The hotel offers broadband Ethernet in your room, and wireless Internet service throughout the property. Both services are for fee, and are offered by the same provider. You arrive in your room, register and pay for service using your Ethernet adapter. This particular service provider (and many others) use your MAC address as your customer identity. You work in your room for a while. At 1:30 a.m., you take your laptop to the bar to "work" with others, only to discover that the service provider doesn't recognize you as a customer and wants you to pay another fee. Assume that for this example, the service provider's AUP and the registration page say "unlimited Ethernet *and* wireless service for 24 hours" (typically noon until noon). You explain your circumstance to the front desk, then to the concierge, and eventually, to a help desk operator at a remote NOC who tells you, "there's nothing I can do about this right now but I'll open a ticket and we'll look into it".
If only your WLAN adapter had the same MAC address as your Ethernet adapter, your problem might be solved!
If you have admin privileges on your laptop, you can change your WLAN adapter's MAC address, temporarily - but do remember to change it back! And before you change the address, copy down the MAC address of your Ethernet adapter and disable it. Now, to change the MAC address in Windows XP/2000 and I imagine Vista, you must change the sub key that corresponds to your WLAN adapter under the Registry Key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\
Modifying the Registry is iffy territory for even experienced users, so I recommend that you use one of the following freeware. Technitium MAC Address Changer and KLC Consulting's SMAC are free/shareware MAC address changers with graphical UIs that tell you the existing MAC Address (remember to write this down so you can restore it later), IP configuration, etc. For folks who favor DOS command line utilities, there's Mike Fratto's EtherChange.
If you are a MAC OS X or Linux/BSD type, visit Irongeek.com for a long list ofways to change MAC addresses on these OSs, including how to modify the Windows Registry for those who dare.
Archived at http://www.securityskeptic.com/arc20070101.htm#BlogID584
by Dave Piscitello