Thursday, November 3, 2016

// //

Spoof Mac Address in Windows, Android, Linux and Mac OS X

Spoof Mac Address
Media Access Control address (MAC address) is a 12-character unique identifier assigned to a specific piece of hardware such as the network adapter of your WiFi device. In simple words, a MAC address can be used to uniquely identify your Android phone on the Internet or the local network as we describe in the whatsapp hack and hack wifi password tutorial.
Each network interface on your computer or any other networked device has a unique MAC address. These MAC addresses are assigned in the factory, but you can change, or “spoof,” MAC addresses in software.
MAC stands for “media access control.” MAC addresses are also commonly referred to as physical addresses or hardware addresses because they correspond to a hardware adapter.

Main Uses of MAC address

  • Static IP Assignment: Routers allow you to assign static IP addresses to your computers. When a device connects, it always receives a specific IP address if it has a matching MAC address
  • MAC Address Filtering: Networks can use MAC address filtering, only allowing devices with specific MAC addresses to connect to a network. This isn’t a great security tool because people can spoof their MAC addresses.
  • MAC Authentication: Some Internet service providers may require authentication with a MAC address and only allow a device with that MAC address to connect to the Internet. You may need to change your router or computer’s MAC address to connect.
  • Device Identification: Many airport Wi-Fi networks and other public Wi-Fi networks use a device’s MAC address to identify it. For example, an airport Wi-Fi network might offer a free 30 minutes and then ban your MAC address from receiving more Wi-Fi. Change your MAC address and you could get more Wi-Fi. (Free, limited Wi-Fi may also be tracked using browser cookies or an account system.)
  • Device Tracking: Because they’re unique, MAC addresses can be used to track you. When you walk around, your smartphone scans for nearby Wi-Fi networks and broadcasts its MAC address. A company named Renew London used trash bins in the city of London to track people’s movements around the city based on their MAC addresses. Apple’s iOS 8 will use a random MAC address each time it scans for nearby Wi-Fi networks to prevent this sort of tracking.

Why You need to spoof mac address

    • A very important reason is privacy. Just like an IP address is your ID on the internet, a MAC address is your ID on the local Ethernet network. Recently, as the rise of the mobile network, with WiFi & Bluetooth hotspots everywhere, the privacy implications of MAC address tracking have been the subject of increasing debate.
    • When scanning for wireless networks, client devices like the laptops or mobile phones periodically broadcast identifying packets that include the MAC address. In recent years, a number of firms have taken advantage of these broadcasts to track individual devices as they move around — for example, some retail outlets use MAC address-based tracking to record the path that consumers take as they move through the store, allowing long-term measurement of shopping habits and better placement of sale materials and advertising.
    • Not only the merchants who provide WiFi hotspots, actually your MAC address can be seen by everyone on the local Ethernet network using many simple tools. A hacker on local network thus can track machines (and thus you) on the network, for purposes such as man-in-the-middle attacks that let them intercept users’ traffic. This is especially a threat when you are on a wireless network and are using a public WiFi network like in coffee shops, hotels or airports.
    • And according to Edward Snowden, the National Security Agency has a system that tracks the movements of everyone in a city by monitoring the MAC addresses of their electronic devices.

Spoof mac address in android device

Method 1: spoof mac address in android

Even though MAC address is embedded on the hardware device during manufacture, it can still be spoofed to input a new one of your choice. Here is a detailed instruction on how to spoof MAC address on your Android phone.
Before you spoof the MAC address, you need to record the original/current MAC address of your device which can be done according to the instruction below:
  • On the Home Screen of your phone, tap Menu button and go to Settings.
  • Tap About Device and go to Status
  • Now scroll down to record the 12-digit code shown under Wi-Fi Mac address. An address would read something like E5:12:D8:E5:69:97

Requirements for Spoofing the MAC Address

  1. Rooted Android Phone
  2. BusyBox app installed on your phone
  3. Once BusyBox is installed, you need to install Terminal app
Once the above requirements are satisfied, follow the instructions below to spoof your MAC address:
  1. Open the Terminal app and type the commands as listed below:
    su [HIT ENTER]
    busybox iplink show eth0 [HIT ENTER]
    (This will show your current MAC address, just for your confirmation)
  2. Now, type the following command:
    busybox ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX [HIT ENTER]
    (In the above command, replace XX:XX:XX:XX:XX:XX with your new MAC address)
  3. You have now spoofed your MAC address successfully. To check for the change enter the following command again:
    busybox iplink show eth0 [HIT ENTER]

Method 2: mac address spoofing in android

  1. If your wi-fi is on turn it off
  2. Open Root Explorer and go to the /data folder
  3. Find and select via long touch the file
  4. Use the option “Open in Text Editor”
  5. Change the MAC address to the what you want (I suggest to insert the letters as big characters).
  6. Touch the menu button and select “Save & Exit”
  7. Turn on your wi-fi and connect to the preferred network. You Ace should connect to the network witch the new MAC address
Note: In this method, the location of the wifi mac address is in /data/ but it could be different depending on different devices as I am using CyanogenMod on Samsung device

Other Apps Used for MAC address spoofing in android

These apps are used for mac address spoofing.I don’t which device you have so I listed almost all the apps if any app does not work for you then try another app.These apps surely will change your android mac address.

Spoof MAC address in Windows

Method 1: Spoof mac address in Windows

Bear in mind that each network interface has its own MAC address. So, on a typical laptop with both a Wi-Fi radio and a wired Ethernet port, the wireless and wired network interface each have unique, separate MAC addresses.


Most network cards will allow you to set a custom MAC address from their configuration panes in the Device Manager, although some network drivers may not support this feature.
First, open the Device Manager. On Windows 8.1, press Windows Key + X and click Device Manager. On Windows 7, press the Windows key, type “Device Manager” to search for it, and click Device Manager.
Locate the network interface you want to modify under Network Adapters, right-click it, and select Properties.


Click the Advanced tab and select Network Address in the list. Your network driver doesn’t support this feature if the option isn’t here.
Enable the Value option and enter your desired MAC address without any separating characters — don’t use dashes or colons. Click OK afterward.


Method 2: spoof mac address in windows

Step 1: Click on Start, then Control Panel, then Network Connections, and right-click on the network connection you want to change the MAC address for and select Properties. It will normally either be Local Area Connection or Wireless Network Connection.
If you are using Windows Vista, Windows 7 or higher, you have to go to Control Panel, thenNetwork and Internet, then Network and Sharing Center, and then click on Manage Network Connections or Change adapter settings.


Then you can right-click on the adapter and choose Properties.
Step 2: On the General or Networking tab, click the Configure button.


Step 3: Now click on the Advanced tab and click on the Locally Administered Address property or the Network Address property.


By default, the Not Present value is selected. Go ahead and click on the Value radio button and enter a new MAC address. The MAC address is a combination of 6 pairs of numbers and characters, i.e. 40-A2-D9-82-9F-F2. You should enter the MAC address without the dashes.

Spoof Mac Address
Spoof Mac Address

 You can go to the command prompt and type in IPCONFIG /ALL to check that the MAC address has been changed. Go ahead and restart the computer in order for the changes to take effect.
This is the simplest way to change your MAC address in Windows. You can also do so via the registry, but it’s much more technical and probably not required by most people.

Method 3: spoof Mac Address in windows using Technitium


  1. Starting MAC address changer will list all available network adapters.
  2. Select the adapter you want to change the MAC address. You will get the details of your selection below.
  3. In the Information tab, find the Change MAC Address frame. Enter new MAC address in the field and click Change Now! button. You may even click Random MAC Address button to fill up a randomly selected MAC address from the vendor list available.
  4. To restore the original MAC address of the network adapter, select the adapter, click Restore Original button in the Change MAC Address frame.
NOTE: This tool cannot change MAC address of Microsoft Network Bridge. Network Bridge will automatically use the original MAC address of the first NIC added into the bridge with the first octet of MAC address set to 0x02.

Spoof mac address in Linux

Method 1: Spoof MAC address in Linux

Modern Linux distributions like Ubuntu typically use Network Manager, which provides a graphical way to spoof a MAC address.
For example, on Ubuntu, you’d click the network icon on the top panel, click Edit Connections, select the network connection you want to modify, and click Edit. On the Ethernet tab, you’d enter a new MAC address under “Cloned MAC address” and save your changes.


Method 2: Spoof MAC address in Linux

You can also do this the old-fashioned way. This involves taking the network interface down, running a command to change its MAC address, and then bringing it back up. Be sure to replace “eth0” with the name of the network interface you want to modify and enter the MAC address of your choice:
sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up


You’ll have to modify the appropriate configuration file under /etc/network/interfaces.d/ or the /etc/network/interfaces file itself if you want this change to always take effect at boot time. If you don’t, your MAC address will be reset when you restart.

Method 3: spoof Mac address in Linux

This Method uses a tool known as mac changer which helps Linux user to change the mac address in the terminal using commands as you can see in the tutorial below now if you want to change the wlan mac address just put wlan0 instead of eth0
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:16:d3:23:7c:f7
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Turn off your network interface:
# ifconfig eth0 down
Use macchanger to randomly generate new MAC address and assign it to eth0 network interface:
# macchanger -r eth0
Current MAC: 00:16:d3:23:7c:f7 (unknown)
Faked MAC:   32:cf:cb:6c:63:cd (unknown)
In case you see the following error message:
ERROR: Can't change MAC: interface up or not permission: Cannot assign requested address
Make sure that your interface is down and you are running macchanger as a root user.
Enable eth0 network interface and check new MAC address:
# ifconfig eth0 up
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 32:cf:cb:6c:63:cd
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
If for example a specific MAC address is required use macchanger as follows:
# macchanger -m b2:aa:0e:56:ed:f7 eth0
Current MAC: 32:cf:cb:6c:63:cd (unknown)
Faked MAC:   b2:aa:0e:56:ed:f7 (unknown)
macchanger also allows you to change mac address for a specific network card vendor. Use a -l option to print a list of all knows network card vendors.

Method 1: Spoof mac address in Mac OS X

Mac OS X’s System Preferences pane displays each network interface’s MAC address but doesn’t allow you to change it. You can do so with a single command.
Open a Terminal window (press Command + Space, type Terminal, and press Enter.) Run the following command, replacing en0 with the network interface’s name and filling in your own MAC address:
sudo ifconfig en0 xx:xx:xx:xx:xx:xx
The network interface will generally be either en0 or en1, depending on whether you want to configure a Mac’s Wi-Fi or Ethernet interface. Run the ifconfig command to see a list of interfaces if you’re not sure of the appropriate network interface’s name.


As on Linux, this change is temporary and will be reset when you next reboot. You’ll need to use a script that automatically runs this command on boot if you’d like to permanently change your Mac address.
You can verify your change took effect by running a command that shows your network connection details and checking what MAC address your network interface reports afterward. On Windows, run the ipconfig /all command in a Command Prompt window. On Linux or Mac OS X, run the ifconfig command.
If you need to change the MAC address on your router, you’ll find this option in your router’s web interface.

Spoof Mac Address in OSX Advance options
Spoof Mac Address in OSX Advance options

Method 2: spoof MAC address in Mac OSX

you need to manually figure out the technical name of the adapter before you can change the settings. I’ll explain everything below step by step, but it gets a bit complicated at times.
To start, let’s find out the current MAC address for your Mac. You can do this in one of two ways: via System Preferences or via Terminal. Open System Preferences, click on Networkand then click on the Advanced button. Make sure to select the appropriate interface first (WiFi, Ethernet, etc) in the listbox on the left.
Click on the Hardware tab and you will see the first line is MAC Address. I thought you could simply choose Manually from the Configure dropdown, but that doesn’t allow you to edit the MAC address.

Spoof mac address in os x network hardware mac
Spoof mac address in os x network hardware mac
In Terminal, you can get the MAC address by typing in the following command:
ifconfig en0 | grep ether
This will give you the MAC address for the en0 interface. Depending on how many interfaces you have on your computer, you might need to run this command several times adding 1 to the number each time. For example, I ran the following commands below until I reached an interface that didn’t exist.


openssl rand -hex 6 | sed ‘s/\(..\)/\1:/g; s/.$//’
Now that you have a new MAC address, you can change the current one using the following command below. Replace XX with the actual MAC address you want to use.
sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
In order to do this, you need to be logged in as an Administrator or you have to enable the root account in OS X. By default, root is disabled and it’s better to leave it disabled if you can. Just login as an admin and you should be able to run the command just fine. It will ask you for your password, though, before changing the MAC address.
Also, the address won’t change if you are still connected to a WiFi network. You need to first disconnect from any networks and then run the command. Surprisingly, disconnecting from a wireless network in OS X is not intuitive at all. You have to press and hold the Option key and then click on the WiFi icon to see the disconnect option.


So here is a rundown of all the commands I ran in order to get the current MAC address, generate a random one, update the MAC address and then verify to make sure it had actually changed.

As I mentioned earlier, this is definitely not as straightforward as the process is on Windows, but you should be able to do it if you simply copy and paste the commands above.