PTC

Posts 1–3 of 3 · Page 1 of 1
PTC
I Make a new thread to call PTC but i get send error report always :S

Code:
  void PTC(){
				if(GetAsyncKeyState(VK_F8) &1)  { FogEnable = 1; Beep(1000, 100);}
			if(GetAsyncKeyState(VK_F8) &1) {  FogEnable= 0; Beep(512, 100);  }
                                                                             
			for(;;) {
	__asm pushad;

						if (FogEnable) {
				PushToConsole("FogEnable 1");
			} 
			else {
				PushToConsole("FogEnable 0");
			}

             
			__asm popad;
	}
Sleep(100);
  }
Code:
void __cdecl PushToConsole(char* szVal ) {
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	if( CShell != NULL )
	{
		DWORD *LTClient = ( DWORD* )( (CShell + 0x347274) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1FC);
		_asm
		{
			push szVal;
			call CONoff;
			add esp, 4;
		}
	}
}
Credit lauway toxic coder

---------- Post added at 02:25 PM ---------- Previous post was at 02:25 PM ----------

Help plz

/msg 2 short
DWORD *LTClient = ( DWORD* )( (CShell + 0x347274) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1FC);
wrong addies...search FogEnable in olly and renew those..
void __cdecl PushToConsole(char* szVal ) {
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
if( CShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (CShell + 0x34D614) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1FC);
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us