[Source] FindPattern in CF
I try to use findpattern method so i can make my hack works on any cf versions & hopefully unpatchable for incoming updates.
But... It still gave me an error at loading screen or after my hack injected, im not expert in c++ so any of u knows solution for this, please do share with me.
Code:
void __cdecl PushToConsole(char* szVal )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
client = FindPattern(dwCShell, 0xc18000, (PBYTE)"\x8B\x15\x00\x00\x00\x00\x8B\x82\x00\x00\x00\x00\x68\x00\x00\x00\x00\xFF\xD0\x83\xC4\x04\x53\xE8\x00\x00\x00\x00\x8B\xC8", "xx????xx????x????xxxxxxx????xx");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + client) ); //0x299D40 NA //0x206370 RUS //0x262750 CN //0x?????? PH
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}


