How do i make this base undetected?!

Posts 1–4 of 4 · Page 1 of 1
How do i make this base undetected?!
Hey guys no one is helping me with this so im gunna ask mpgh so heres my code but when i try login i get DC so my base is detected so how do i make it undetected?
#include "stdafx.h"
#define WeaponMgr 0xA68F90
#define NoReload 0x269C

DWORD WINAPI Hacks(LPVOID)
{
bool noreload = true;
bool recoil = true;

while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);

if(noreload)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload ) = 150;
}

}
}
Sleep(100);
}

}

bool Ready2Hook()
{
if(GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}

DWORD WINAPI Wait(LPVOID)
{
while(!Ready2Hook()) Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);

if ( dwReason == DLL_PROCESS_ATTACH )
{

MessageBoxA(0, "your test Here for the message","your title message", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
edit the hook
and i suggest u learn C++
Im learning c++ atm , but @DaRk can you instruct me on how to edit my hook in a pm or via msn? please? it would help me out with m learning of c++ aswell
1ste of all, there is no hook in here. And you don't need one.
150 is no float.
Do you include windows.h in stdafx.h?
Are the addies and offsets correct?

Next time, tab the file. Then we can read the code beather.

Code:
#include "stdafx.h" 
#define WeaponMgr 0xA68F90
#define NoReload 0x269C

DWORD WINAPI Hacks(LPVOID) 
{
	bool noreload = true;
	bool recoil = true;

	while(1)
	{
		DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
		DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);

		if(noreload)
		{
			if (pWeaponMgr)
			{
				for(int i=0; i<560; i++)
				{
					if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
						*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload ) = 150;
				}

			}
		}
		Sleep(100);
	}

}

bool Ready2Hook()
{
	if(GetModuleHandleA("CShell.dll") != NULL
		&& GetModuleHandleA("ClientFx.fxd") != NULL)
		return 1;
	return 0;
}

DWORD WINAPI Wait(LPVOID)
{
	while(!Ready2Hook()) Sleep(200);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);

	if ( dwReason == DLL_PROCESS_ATTACH )
	{

		MessageBoxA(0, "your test Here for the message","your title message", 0);


		CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
	}
	return 1;
}
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us