hi all
im trying to make an aob scanner but its not working...
I got this code:
Code:
BYTE* ScanAOB(BYTE* AOB, BYTE* memdump, unsigned long searchsize, int aobsize)
{
unsigned long a = 0, i = 0;
for(i = 0; i < searchsize; i++)
{
if(memdump[i] == AOB[a])
{
if(a == (aobsize - 1))
{
return &memdump[i-a];
}
a++;
}
else a = 0;
}
return 0;
}
and then doing like:
Code:
byte SendAob[6] = {0x53, 0x56, 0x8B, 0xF1, 0x8D, 0x9E};
DWORD SendAddy = (DWORD)ScanAOB(SendAob, (byte*)0x00000000, 0xFFFFFFFF, 6);
this->textBox1->Text = SendAddy.ToString("X8");
It compiles without any error or warning but when i inject it and press button1. It gives a runtime error:
Can someone help me?
Credits to NoMercy for the code btw.