web analytics

Changing your MAC Address in Windows, OSX & Backtrack 5

Changing your MAC address can give you many security advantages when hacking wireless networks or connecting to public services. Not only can it help to “untrace” you to your laptop but it can also serve in getting past some hotel and public wifi networks allowing consistent free access to their network.

Last summer i stayed in a hotel just outside of London City (Premier Inn). I noticed when i connected to their wireless network that they offered complimentary WiFi for 30 minutes (after which it was £7 for 24 hour access). After doing a bit of snooping around I found that their router used mac address logging to time the user on the network. With this in mind i fired up Terminal on my Macbook and I spoofed my MAC address and to my joy it reconnected me as a new user giving me all the free internet i could have ever wanted.

So what is a MAC address? A MAC address (Media Access Control address) is a unique 12 character string that is used to identify any device that connects to a network or has networking properties. From modems to routers, wifi cards, ethernet ports and even bluetooth devices all these devices have a unique MAC address used to identify and communicate information.

Below i’ve included short tutorials to change your MAC address in the 2 major operating systems i work with and links to change it within Windows. The newly assigned address will default back to the original address upon a full system reboot.

Mac OSX Lion 10.7

Open up Terminal in Mac OSX and type the command below with “|” being the “pipe” symbol:

ifconfig en1 | grep ether

OR

ifconfig en1 | grep “ether”

It is important to understand what we are typing because we will be using similar commands in future articles to query other information and print it to the screen. (print meaning show)

  • “ifconfig” is a unix command line utility used to query your TCP/IP network interfaces such as ethernet ports or wireless network cards.
  • “en1″ is your interface ID (this name can change pending on your interface chipset and amount of interfaces you have running, both virtual and real and the type of interfaces they are) Do a quick google search to find out how to view all your existing interface ID’s if your not sure what your networks ID is. In Mac OSX & Linux Backtrack you can query your devices by using the command “ifconfig -a”
  • “| grep ether” is to pipe the data you are querying from the interface ID via the “ifconfig” utility and print it to the screen so that we can see the data visually.
What you will see on the Terminal window will be something like “ether 21:f4:84:a2:41:a7″. This string “excluding ether” is your devices existing MAC address and it is unique to your computer only. Being a unique code it is possible to trace this mac to your computer or at least your interface’d vendor which may get you into some serious trouble if your doing some corporation hacking and things of that magnitude OR if the network you are attempting to hack has a geek on the other end who knows how to trace back MAC addresses.

 

To change your existing MAC address is quite simple actually. You may need to disconnect or switch off your laptops wireless interface to make this work. In this example we are going to change our existing mac address to “aa:bb:cc:dd:ee:ff”

 

Again fire up Terminal and type in the following command:

sudo ifconfig en1 ether aa:bb:cc:dd:ee:ff

Please note the “sudo” command will require you to enter your root password.

If all goes well that that’s it, your MAC address should be changed. Before we make any attempts at hacking our annoying neighbors network let’s do another MAC address query as we done above to verify the change has happened.

In Terminal type the following:

ifconfig en1 | grep ether

OR

ifconfig en1 | grep “ether”

Grep should now print the following to your screen:

“ether aa:bb:cc:dd:ee:ff”

You can also check your MAC address on some routers. Using Eircom’s ZyXEL P-660HW-T1 v3 modem/router we can check the MAC address by heading over to http://192.168.1.254 and entering our network password (default is broadband1) then heading to Network/LAN/Client List and viewing our MAC address and local DNS IP.

Windows

Im one of those people who claims Mac and Linux are both far more better then Windows. Don’t get me wrong, i still use Windows for writing some .exe’s, playing some games and doing other things but when it comes to network cracking, exploiting and general hacking I tend to stay far away from Windows. If your finding Windows to be very challenging then i suggest you try out some Linux operating systems or switch to the Mac OS. You can try out Linux via Live CD’s or run it virtually within Windows through an application called “Virtual Box” (google it for more info). I liked Windows 98 & XP even though they were seriously sluggish and full of spyware and malware however i moved to Mac when i seen the appalling operating system that Microsoft made called “Vista”. Now i know Windows 7 is a milestone improvement and i have played around with it but i strongly feel that any company who pushes out a shit OS like vista doesn’t deserve much of my time.

Anyway that’s my rant over. Below are some links to help you change your Windows MAC address in Windows.

Linux Backtrack

First lets query the interface to see the existing MAC address. Open up a new shell and type in the command below:

ifconfig -a

You will now see a list of network interfaces, chipset details and their mac addresses. Pick the ID which corresponds to your network card you want to spoof the MAC address on. In this example we will be using “eth1″

First we need to bring our interface down. To do this we type the following command into the shell:

ifconfig eth1 down

To change your MAC address type the following command into the shell window swapping out 11:22:33:44:55:66 for the MAC address you want to use:

macchanger –mac 11:22:33:44:55:66

Now we need to bring our interface back up. To do this we type the following command into the shell:

ifconfig eth1 up

To verify our newly assigned MAC address we can query the interface again using:

ifconfig -a

We can also verify our new MAC address via our router if it supports it. Details on how to do this can be found in the end of the Mac OSX instructions.

Summary

If you’ve pushed through this little tutorial then pat yourself on the back. You’ve learned some basic Unix commands, You’ve learned how those commands work and you’ve learned about MAC addresses. Like i said at the start of this article its important to know how to change your MAC address if you want to spoof routers into thinking your somebody else. When I’m doing some wireless hacking i tend to change my MAC address to something very close to the router/modem’s MAC address. If the network administrator was to see this they might mistake it for an error or a dummy loop and not cause suspicion on the network.

In the following weeks i will be posting articles about cracking WEP, WPA & WPA2 using cheap hardware in both Mac OSX and Backtrack. If you plan to follow my blog and practice some of the articles i’ve posted about then i suggest that maybe you partition your hard drive with about 10gb’s and run Linux Backtrack locally or if you have a nice powerful machine run a virtual version of the operating system.

If you have any comments, tips or ideas on new articles i would love to hear from you so use the comment section below each article to express yourself.

Tags: , , , , , , , , , , , , ,

9 Responses to “Changing your MAC Address in Windows, OSX & Backtrack 5”

  1. Peter Donnelly January 9, 2012 at 7:58 pm #

    Is it possible to change your MAC address on an iOS device like the iPhone or iPad?

  2. Ross Canpolat January 10, 2012 at 9:10 pm #

    You will need a Jailbroken iOS device to do this within Terminal however it should be fairly easy to accomplish.

    There is a nice guide here to spoof your MAC address however it may not be relevant on the new iOS so you might need to downgrade to get this to work:

    http://www.ifans.com/forums/showthread.php?t=35210

    I think there was also an app in the Cydia called MacSpoof. Again this might not work in iOS 5

  3. helpful hints July 23, 2012 at 4:23 pm #

    To start out, you’ll want to use your painter’s tape to mark the pattern on the wall. Use translucent dividers including glass or screens to keep a space open and light-weight, and opaque or solid ones for additional separation.

  4. asus eee pc 701 May 1, 2013 at 2:01 pm #

    Keep this going please, great job!

    Have a look at my web-site – asus eee pc 701

  5. home alarm security company May 15, 2013 at 7:42 pm #

    Some people known as Nikon one V1 a conveyable DSLR the place you are able to just slip correct by way of your pocket but
    its shooting strength is identical as that of
    a DSLR. four GHz which is why you want to invest in a jammer that can tamper this signal.
    s r CMOS sensor, BIONZ impression processor chip in addition to a Sony Grams
    contact with powerful (10x optical move, 25-250 mm range) wide-angel mega-zoom (26 mm) help in choosing stunning golf swings quite possibly with low-light circumstances.

  6. Www.Slictraining.Org.Uk May 20, 2013 at 3:40 am #

    Keeping these plants in flowerbeds or flower boxes near your home
    will attract tachnid flies, who will then help control the population of earwigs.

    Also be aware that any indoor pet, such as a cat or dog, may want to drink from your pond and then find himself a healthy treat in the process.
    The first step in the process of maintaining a mosquito-free bedroom is to secure the
    structure of the house.

    Stop by my web blog http://Www.Slictraining.Org.Uk

  7. canton michigan May 21, 2013 at 4:35 pm #

    While waiting for help, the homeowner may call their insurance provider to inform them of the problem and inquire if it’s part of the coverage. If you find that the area immediately around your house is very damp, you can add a gravel and limestone border, which will help with drainage. However, installing a bathroom in a basement that hasn’t already been stubbed for a
    bathroom can be very difficult and costly.

  8. ringo starr May 21, 2013 at 9:33 pm #

    This slim and light tablet comes with specifications
    that provides high computing power. Uncooked ginkgo biloba seeds have shown some small levels
    of toxins, so if you prefer the seeds it is advised to cook them prior to ingestion.

    The actual pc is usually Wi-Fi enabled and can connect to web anywhere.

Trackbacks/Pingbacks

  1. How to: Hack Eircom & UPC Internet – WPA & WPA-2 Cracking With Reaver | Insanity Pop - January 27, 2012

    [...] NOTE: You might want to change your MAC address now. This is a unique identifier which only your wireless interface has. Its a good reason to change this if you are trying to spoof your identity, otherwise the attack could be traced back to your computer if somebody was to investigate it deep enough. To change your MAC address check this article i wrote a while back (it opens in a new page): http://insanitypop.com/2012/01/changing-your-mac-address-in-windows-osx-10-7-backtrack-5/ [...]

Leave a Reply