In my previous articles about how to spoof a Mac address, I showed you how to manually change or spoof your Mac address, or physical address, by making registry changes. It’s a hectic process, going to registry, finding the registry keys, and changing them. To bypass this process, I have written a C program which will retrieve the list of all network adapters, along with serial and parallel mini ports. It will prompt you to select the device whose Mac address you want to change, and then it will ask for the new Mac address with which you want to spoof your Mac address.
![]() |
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 Driver Development kit, the MAC address is read from the Windows registry when the card is initialized. When you launch any hack attempt, your MAC address is registered at your ISP, noting that your physical address has accessed that particular website. You can be easily identified because a MAC address is always unique.
The overall concept is that our windows operating system adds an extra layer of device conventions with the help of registry. Whenever a tool or website tries to inquire your physical address, it picks it from registry. So your device’s Mac address will remain the same but the Mac address at the windows user level will be spoofed or changed.
The below technique of changing the Mac address has been converted into an automated C program.
To write a C program to spoof the Mac address or change the window’s level machine 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[]=”SystemCurrentControlSetControlClass{4D36E972-E325-11CE-BFC1-08002bE10318} 000″;
char macaddress[60];
……….CONTINUED
To read the Complete C program visit CCodeChamp (My new website to teach C programming to users) below:
Leave a Reply