Monday 23 June 2014

HOW TO SPOOF MAC ADDRESS USING C++ PROGRAM


# 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];
cout <<
"\n//////////////////////////////////////////////////////////////////
\nPlease Enter number of Network Adapter to
Spoof or type 'E' to Exit.\nE.g. 6\n\nNumber:
";
cin >> adapternum;
if (adapternum[0]=='E')
{
exit(0);
}
if (strlen(adapternum)==2)
{
editlocation[strlen
(editlocation)-2]=adapternum[0];
editlocation[strlen
(editlocation)-1]=adapternum[1];
}
if (strlen(adapternum)==1)
{
editlocation[strlen
(editlocation)-1]=adapternum[0];
}
if (strlen(adapternum)!=1 && strlen
(adapternum)!=2)
{
cout

No comments:

Post a Comment