In this thread I'm going to be releasing an HWID whitelist method that I wrote up. Keep in mind, this can be easily bypassed by hooking certain functions to spoof the HWID keys. To prevent this, you will have to add your own security because I didn't really add any. This is basically just meant to start someone off with making an HWID type of whitelist. Anyways, enjoy and message me if you have any questions!
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int oemID;
int processorNumber;
int processorType;
int activeProcessorMask;
int processorLevel;
int processorRevision;
int hwid;
int hwidArray[2] = {123456789, 987654321}; // Whitelisted HWID's go here
void hwidHandler();
void hwidChecker();
void hwidHandler()
{
SYSTEM_INFO siSystemInformation;
GetSystemInfo(&siSystemInformation);
oemID = siSystemInformation.dwOemId;
processorNumber = siSystemInformation.dwNumberOfProcessors;
processorType = siSystemInformation.dwProcessorType;
activeProcessorMask = siSystemInformation.dwActiveProcessorMask;
processorLevel = siSystemInformation.wProcessorLevel;
processorRevision = siSystemInformation.wProcessorRevision;
int hwidArray2[6] = {oemID, processorNumber, processorType, activeProcessorMask, processorLevel, processorRevision};
hwid = hwidArray2[0, 1, 2, 3, 4, 5] * 2 * 4 * 8 * 16 * 32 * 64 * 120;
}
void hwidChecker()
{
if (hwid == hwidArray[0] || hwid == hwidArray[1])
{
cout << "You have been granted access!" << endl << endl << endl << endl;
}
else if (hwid != hwidArray[0] || hwid != hwidArray[1])
{
cout << "You have been denied access!" << endl << endl << endl << endl;
}
}
int main()
{
hwidHandler();
cout << "Your HWID: " << hwid << endl << endl;
hwidChecker();
system("pause");
return 0;
}