Saturday, 19 October 2013

How to spoof Mac Address using C Program

Hey friends, welcome back ! In my previous articles about how to spoof a Mac address, i have shown you how to change or spoof your Mac address or Physical Address manually by making registry changes. Its a very hectic process, going to registry, then finding the registry keys and then changing it. To bypass all this hectic process, i have written a C program which will retrieve the list of all the network adapters along with serial and parallel mini ports. Then it will prompt you to select the device whose Mac address or Physical address you want to change and then it will ask you the new Mac address with which you want to spoof your Mac address. Thats all ! I hope you all might be under impression that how can someone change or spoof the Mac address or Physical address. Let us discuss it in detail ...

How to spoof Mac Address using C Program
Change or Spoof Mac address


Mac Address or Physical Address:

The MAC address uniquely identifies the network card within the current network segment. It consists of a vendor id that is unique among all network vendors, and a relative id that is unique to the vendor. The address is hard-coded onto the network adapter. But since most of the drivers were developed with the Windows DriverDevelopment kit, the MAC address is read from the Windows registry, when the card is initialized. Now when you are launching any hacking attempt your MAC address is registered at your ISP that your physical address has accessed the particular website and you can be easily identified as MAC address is always unique.

Actually overall concept is that : Our windows operating system adds an extra layer of device conventions with the help of registry and then whenever some tool or website tries to inquire your physical address it picks it from registry. So in reality your device's physical address or Mac address will remain same and unique but Device's Physical address or Mac address at windows user level will be spoofed or changed. 

The below technique of changing Mac address is converted into an Automated C program by me(Lokesh).

Now let us see how to write a C program to Spoof Mac address or Change window's level Machine address i.e. Physical address or Mac address.

#include <windows.h>
#include <iostream>
#include <conio.h>
using namespace std;

void readregistry();
char* spoofmac();

int main(int argc, char* argv[])
{

readregistry();
spoofmac();

}

char* spoofmac()
{
    char buffer[60];
    unsigned long size = sizeof(buffer);
    HKEY software;
    LPCTSTR location;
    char adapternum[10]="";
    char numbers[11]="0123456789";
    char editlocation[]="System\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002bE10318}\\0000";
    char macaddress[60];
      ..........CONTINUED

To read the Complete C program visit CCodeChamp( My new website to teach C programming to users) below :



We hope you all have enjoyed the Magic of C programming... Like us on Ccodechamp to make it a success.

0 comments:

Post a Comment