[Source] FindPattern in CF

Posts 1–9 of 9 · Page 1 of 1
[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.

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;
		}
	}
}
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.
I'm going to write how to make a LTC, then I fix this

More like this Btw:
Code:
    for(DWORD i = 0; i < 0x128000; i++ )
    {
      if ( (*(BYTE *)(Base+i+0x00))==0xC7
        && (*(BYTE *)(Base+i+0x01))==0x06
        && (*(BYTE *)(Base+i+0x06))==0x89
        && (*(BYTE *)(Base+i+0x07))==0x86
        && (*(BYTE *)(Base+i+0x0C))==0x89
        && (*(BYTE *)(Base+i+0x0D))==0x86 )
        return (DWORD_PTR *)(Base + i + 2);
    }
But you want to scan all addresss?
Quote Originally Posted by lauwy View Post
I'm going to write how to make a LTC, then I fix this

More like this Btw:
Code:
    for(DWORD i = 0; i < 0x128000; i++ )
    {
      if ( (*(BYTE *)(Base+i+0x00))==0xC7
        && (*(BYTE *)(Base+i+0x01))==0x06
        && (*(BYTE *)(Base+i+0x06))==0x89
        && (*(BYTE *)(Base+i+0x07))==0x86
        && (*(BYTE *)(Base+i+0x0C))==0x89
        && (*(BYTE *)(Base+i+0x0D))==0x86 )
        return (DWORD_PTR *)(Base + i + 2);
    }
But you want to scan all addresss?
Use switch instead of if and there are much better ways to do that.
Quote Originally Posted by Hahaz View Post
I try to use findpattern method so i can make my hack works on any cf versions & hopefully unpatchable for incoming updates.

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;
		}
	}
}
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.
Don't do CShellBase + Client. Just do ( ( client ) );
How do you want to use FindPattern = c++? becouse c++ doesnt have that function. only c++ .net had that one
you can upload project to media fire.com
well without looking into those numbers u have for the findpattern the first thing i c is where is ur decleration for client ?,, from this snippet i just see you assigning client a bunch of sh^t
PH LT point is
Please thank.
Code:
0x29CEE8
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us