Why isnt't this working?

Posts 1–6 of 6 · Page 1 of 1
Why isnt't this working?
Additional info: I waited for cshell to load(Sleep function in the dllmain). And the dllmain works cuz i hear a beep. So i dont think thats the issue. Is it the addy? I tried the one from @DaRk 's thread but that didn't work either, luizmoko(i hope i spelt that right) also made a nobugdamage hack for me but that didn't work either. I'm not posting the full source.

Code:
void Hacks()
{
	bool iNoBugDamage = true;
	

	while(true)
	{
		DWORD CShell = (DWORD)GetModuleHandleA("Cshell.dll");

		if(iNoBugDamage) 
		{
			*(float *)(CShell + 0x310F5C) = 0.0f;
		}
         }     
 }
easy way to check it...

Code:
DWORD CShell = (DWORD)GetModuleHandleA("Cshell.dll");
if(CShell != NULL) 
{
	*(float *)(CShell + 0x310F5C) = 0.0f;
        messagebox(0, "its working", "NoBugDamage", mb_ok );
}
else
{
        Beep(1000, 1000);
}
if u hear the beep it means didn't work, check your dllmain input.
Quote Originally Posted by Genkidesu View Post
easy way to check it...

Code:
DWORD CShell = (DWORD)GetModuleHandleA("Cshell.dll");
if(CShell != NULL) 
{
	*(float *)(CShell + 0x310F5C) = 0.0f;
        messagebox(0, "its working", "NoBugDamage", mb_ok );
}
else
{
        Beep(1000, 1000);
}
if u hear the beep it means didn't work, check your dllmain input.
It beeped
Code:
BOOL APIENTRY DllMain( HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
{   Sleep(10000);
	switch (ul_reason_for_call)
	{   
		DisableThreadLibraryCalls(hModule);
	case DLL_PROCESS_ATTACH:
		
		Hacks();
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		
		break;
	}
	return TRUE;
}
I still don't know what's wrong T_T. This is my first hack :/
try this:
Code:
#define boolean bool

bool iNoBugDamage = true;

inline boolean IsHooked( void )
{
	if( GetModuleHandle( "CShell.dll" ) != NULL ) return true;

	return false;
}

then..

while( !IsHooked() )
        Sleep(200);

while( true )
{
	DWORD CShell = (DWORD)GetModuleHandleA( "Cshell.dll" );

	if( iNoBugDamage ) 
	{
		*(float *)( CShell + 0x310F5C ) = 0.0f;
        }     
 }
you dont need this...
Code:
Sleep(10000);
Xtrap will kill every GetModuleHandleA function in outside part what i mean whit an outside function, outside function is like you make it a DLL main whitout CreateTheard so you need to make a DLL main ussing CreateTheard
Quote Originally Posted by bandi12 View Post
Xtrap will kill every GetModuleHandleA function in outside part what i mean whit an outside function, outside function is like you make it a DLL main whitout CreateTheard so you need to make a DLL main ussing CreateTheard
I made one with create thread, ill pm you the source, its detected already
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us