what's wrong?

Posts 1–10 of 10 · Page 1 of 1
what's wrong?
what's wrong with this?
Code:
#include <windows.h>
#include <iostream>

using namespace std;

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


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

bool boxes = true;

	for(;;) {
	__asm pushad;
		if(boxes) {
			PushToConsole("ModelDebug_DrawBoxes 1");
		}
		Sleep(0);
			__asm popad;
	}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH ) {
		MessageBoxA(0, "blah blah blah", "Injected", 0);
		CreateThread(NULL, NULL, Main, NULL, NULL, NULL);
	}
	return TRUE;
}
because my tester said that the hack is not working

can someone help me with this?

i'll give you creds if you help me
boxes are patched/yea
I think NA only... my code is for PH not NA.

im still waiting for expert's answer
Quote Originally Posted by ovenran View Post
I think NA only... my code is for PH not NA.

im still waiting for expert's answer
boxes are patched thats the truth
Quote Originally Posted by ovenran View Post
I think NA only... my code is for PH not NA.

im still waiting for expert's answer
Boxes were patch at the PH too.... sorry my friend.... but im quite sure that there is nothing wrong with the code.....

but let me tell u this...
in my opinion... dont flame me for this.. lol
boxes were just transformed into another code...(not so sure.. savvy?)
ive been trying to discover it myself....
for(; {
__asm pushad; thats wrong...and you for got the code to turn it on
many things wrong! LOL
ow , i see.. because many months i have inactive here and in CF sorry ...

ok i see now the error one thanks to the expert's answer
In :

DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}
you forgot a "}"

DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}
}
solved

╪closed╪
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us