why doesnt this work?

Posts 1–6 of 6 · Page 1 of 1
why doesnt this work?
I have put this on UPX and without debug and it still gives me that error report when I inject it! please help!
srz ,but i didn't even got the problem !
more info plz
I've moved it to Hack Source Section, try to ask coders here for help. It will be better for ya.
Maby some source?
Quote Originally Posted by lauwy View Post
Maby some source?
could it be a problem with the source code?
Here it is....

Code:
 #include <windows.h>



void __cdecl PushToConsole(char* szVal ) {
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if( dwCShell != NULL )
	{
		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
		_asm
		{
			push szVal;
			call CONoff;
			add esp, 4;
		}
	}
}


DWORD WINAPI Paulsag(LPVOID) {
	while(GetModuleHandleA("CShell.dll") == NULL ) {
	Sleep(100); 
}

	bool boxes = true; 
	bool nosky = true;
	


for(;;) {
						
			if  (boxes) {
				PushToConsole("ModelDebug_DrawBoxes 1");
			}
			else {
				PushToConsole("ModelDebug_DrawBoxes 0");
			}

			if  (nosky) {
				PushToConsole("DrawSky 0");
			}
			else {
				PushToConsole("DrawSky 1");
			}

		
		
		
	}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(0, "Codded by koolman123", "Injected", 0);
		CreateThread(NULL, NULL,Paulsag, NULL, NULL, NULL);
	}
	return TRUE;
}
Lauwy logg in msn !!!
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us