Disconnection Help.

Posts 14 of 4 · Page 1 of 1
Disconnection Help.
So i've got my hack menu working, all hacks working etc.

But i'm facing a bit of a problem, see the hack disconnects within about 2-3 minutes of playing.
Ive tried just hooking the menu, and not the hacks but it still disconnects.
And i've tried countless other things.

I'm pretty sure it's probably the detours causing this, or a string being detected, but if it's a string i've tried three different packers and all the same result, and if it's the detours why would it be disconnecting so late in the game? Would you reccomend i try different detour lengths?

I know this section is dead these days but i hope someone can shed some light on this.
Packers can cause D/C..
You'll need to encrypt the strings yourself, and it's probably your detours.

E.g
Most of the strings in my hack looks like this
Code:
Hmfrx
Fair enough,

Looks like i'll need to do that then.
Try something like this:

Code:
DWORD CreateJMP_REL( DWORD  SrcVA, DWORD  DstVA, DWORD  Size )
{
	DWORD DetourVA, dwProtect, i;

#define SIZEOF_JMP_REL  5

	if ( SrcVA && DstVA && Size >= SIZEOF_JMP_REL )
	{
		DetourVA = (DWORD) VirtualAlloc( 
			NULL, Size + SIZEOF_JMP_REL, 
			MEM_COMMIT, PAGE_EXECUTE_READWRITE );

		if ( DetourVA && VirtualProtect( (VOID*)SrcVA, Size, PAGE_EXECUTE_READWRITE, &dwProtect ) )
		{
			for ( i=0; i < Size; i++ ) {
				*(BYTE*)( DetourVA + i ) = *(BYTE*)( SrcVA + i );
			}
			
			*(BYTE*)( DetourVA + Size + 0 ) = 0xE9;
			*(DWORD*)( DetourVA + Size + 1 ) = ( SrcVA - DetourVA - SIZEOF_JMP_REL );

	    	        *(BYTE*)( SrcVA + 0 ) = 0xE9;
			*(DWORD*)( SrcVA + 1 ) = ( DstVA - SrcVA - SIZEOF_JMP_REL );

			VirtualProtect( (VOID*)SrcVA, Size, dwProtect, &dwProtect );

			VirtualProtect( (VOID*)DetourVA, Size + 
				SIZEOF_JMP_REL, PAGE_EXECUTE_READ, &dwProtect );

	    	return DetourVA;
		}
	}
	return (0);
}
And to use:

Code:
pPresent = (oPresent)CreateJMP_REL((DWORD)VTable[17],(DWORD)PresentHook, 7);


It is almost certain that its your detours but if it is detected strings here is how to encrypt them:
http://www.mpgh.net/forum/207-combat...ion-class.html
Posts 14 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?