Spoofing your MAC address in Snow Leopard

Spoofing your MAC address in Snow Leopard

A MAC address, sometimes also refereed to as “physical address” is a unique identifier assigned to every network device. Contrarily to the IP address, which can change dynamically, a MAC address is a bit like a serial number intended to differentiate every network device on the planet. Here’s what it looks like : 01:23:45:67:89:ab.

Changing or “spoofing” your MAC address can be desired for multiple reasons and is quite simple to do in Snow Leopard.

In this tutorial, we’ll assume you want to change your wireless adapter’s physical address.

To find out what is your AirPort card’s current MAC address, type this in the Terminal.

ifconfig en1 | grep ether

Step 1 : disassociate from all wireless networks

This means to disconnect all current wireless network connections while leaving AirPort enabled.

Open the Terminal and paste this command :

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z

You will be asked for your password to execute this command.

The airport command is part or Apple’s Apple80211 framework. Essentially, it’s what connects you to Wifi networks. The -z option disassociates from any network.

Tip: You can set up a simpler access to the airport command by creating a symbolic link. To do this, paste the following command in the Terminal:

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

Next time, you will simply need to type ariport -z to disassociate. You may also use airport -I to get information on your current connection.

Step 2: Change your MAC address

Once disassociated from the wireless network. You can change the MAC address with:

sudo ifconfig en1 ether 00:00:00:00:00:00

You can of course enter what ever you want as long as it is in the correct format. You can verify with ifconfig en1 | grep ether that your address is changed.

To revert your MAC address back to its default, simply reboot your machine.

  • dudu
    it doesn't work properly.
    if i change the mac address, I get "Connection Timeout" message everytime i try to join any connection.
    If i change back to the original MAC address it works good again.
    it's not useful, someone help me, please...
  • andy111
    yep, same for me.
    doesnt work, get connection timeout.
    if i return mac to original, all good again....
    i'm using macbook pro.
  • Robert
    No it does not work for most people, I would like to find the solution. Apparently Apple had removed the ability to change it in the update to snow leopard, it worked in Leopard... I like the GUI and many aspects of the apple OS X but if this is their standard, well I will then think on alternative solutions in unix and start buying regular pc's and just run unix off them.
  • That's cool. I didn't know you could change your MAC address. Oh the possibilities.
blog comments powered by Disqus