This Code works fine, but i try add all Offsets and memory bytes into txt db, anyone have idea? i want
read all lines from a txt to compare in memory... is for anticheat.. :)
ex of txt..
Offset Memory Dump
Offset Memory Dump..
but i donw know how use loaded data, cuz when i try load Array (mMemory) whit data from txt i have error
#define MAX_DUMP_SIZE 32
#define MAX_PROCESS_DUMP 1
bool ScanProcessMemory(HANDLE hProcess)
{
for(int i = 0; i < MAX_PROCESS_DUMP; i++)
{
char aTmpBuffer[MAX_DUMP_SIZE];
SIZE_T aBytesRead = 0;
char mMemory[MAX_DUMP_SIZE] = {0x64,0x89,0x25,0x00,0x00,0x00,0x00,0x83,0xec,0x58,0x53,0x56,0x57,0x89,0x65,0xe8,0xff,0x15,0x04,0xf4,0x48,0x00,0x33,0xd2,0x8a,0xd4,0x89,0x15,0xd8,0x0a,0x4d,0x00},
char mOffset = 0x0044e08c;
ReadProcessMemory(hProcess, (LPCVOID)mOffset, (LPVOID)aTmpBuffer, sizeof(aTmpBuffer), &aBytesRead);
if(memcmp(aTmpBuffer,mMemory, MAX_DUMP_SIZE) == 0)
{
return true;
break;
}
}
}
Thanks