What's wrong?

Posts 1–15 of 17 · Page 1 of 2
What's wrong?
#include<windows.h>


#define LtClient 0xA287A8
#define dmg 0x0x7f8





DWORD WINAPI Hacks(LPVOID)
{

bool ammodmg = false;





while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pLtClient = *(DWORD*)(CShell + LtClient);



if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_F2) &1) { ammodmg = true; Beep(512, 100); }






if(ammodmg)
{
if (pLtClient)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+ (4*i))) + 0x7f8) = 9999;
}
}
}



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, " made by Alpino "," Alpino v.1 ", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
Yeah,i know it's leeched,but who cares?
The message box appeared,but the hack didn't work.
Could you help me?
Buddy,every "small" coder or whatever uses Swift's base...And i didn't say it's my base...
Use this:

Code:
#include "stdafx.h"
#define WeaponMgr 0x????????
#define ValHit 99999
#define SetHit 0x7F8
void t()
{
	DWORD Cshell;
	while (!(Cshell = (DWORD)GetModuleHandle("Cshell.dll")))//Full Modules
	{
		Sleep(100);
	} PDWORD p = (PDWORD)(Cshell+WeaponMgr);
	while (!(*p)) Sleep(10);
	
		for (int i=0;i<440;i++)
		{
			PDWORD pp = (PDWORD)(*p+0x4*i);
			if (*pp)
			{
				PFLOAT pf = (PFLOAT)(*pp+SetHit);
				if (*pf) *pf = ValHit;
				
				}
			
			}
		}

void s()
{
	HWND hWnd;
	while (!(hWnd = FindWindow("CrossFire", 0))) { Sleep(100); }
	SetTimer(hWnd, 99, 80, (TIMERPROC)t);
}

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
	if (ul_reason_for_call == 1)
	{
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)s, 0, 0, 0);
	}
    return TRUE;
}
Quote Originally Posted by ***** View Post
Use this:

Code:
#include "stdafx.h"
#define WeaponMgr 0x????????
#define ValHit 99999
#define SetHit 0x7F8
void t()
{
	DWORD Cshell;
	while (!(Cshell = (DWORD)GetModuleHandle("Cshell.dll")))//Full Modules
	{
		Sleep(100);
	} PDWORD p = (PDWORD)(Cshell+WeaponMgr);
	while (!(*p)) Sleep(10);
	
		for (int i=0;i<440;i++)
		{
			PDWORD pp = (PDWORD)(*p+0x4*i);
			if (*pp)
			{
				PFLOAT pf = (PFLOAT)(*pp+SetHit);
				if (*pf) *pf = ValHit;
				
				}
			
			}
		}

void s()
{
	HWND hWnd;
	while (!(hWnd = FindWindow("CrossFire", 0))) { Sleep(100); }
	SetTimer(hWnd, 99, 80, (TIMERPROC)t);
}

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
	if (ul_reason_for_call == 1)
	{
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)s, 0, 0, 0);
	}
    return TRUE;
}
Hi, I get an Error in this line: "} PDWORD p = (PDWORD)(Cshell+WeaponMgr);"
Can you say what I made false please?
@***** i'll try it
#include"stdafx.h"
#define WeaponMgr 0xA287A8
#define ValHit 99999
#define SetHit 0x7F8
void t()
{
DWORD Cshell;
while (!(Cshell = (DWORD)GetModuleHandle("CShell.dll")
{
Sleep(100);
} PDWORD p = (PDWORD)(Cshell+0xA287A8);
while (!(*p)) Sleep(10);

for (int i=0;i<440;i++)
{
PDWORD pp = (PDWORD)(*p+0x4*i);
if (*pp)
{
PFLOAT pf = (PFLOAT)(*pp+0x7F8);
if (*pf) *pf = 99999;

}

}
}

void s()
{
HWND hWnd;
while (!(hWnd = FindWindow("CrossFire", 0))) { Sleep(100); }
SetTimer(hWnd, 99, 80, (TIMERPROC)t);
}

BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
if (ul_reason_for_call == 1)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)s, 0, 0, 0);
}
return TRUE;
}

I did what you said,but now I can't compile the dll.
dont use ***** base...correct your base...
Leech i got this now:
#include<windows.h>


#define LtClient 0xA287A8
#define dmg 0x7f8





DWORD WINAPI Hacks(LPVOID)
{

bool ammodmg = false;





while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pLtClient = *(DWORD*)(CShell + LtClient);


if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_F2) &1) { ammodmg = true; Beep(512, 100); }



if(ammodmg)
{
if (pLtClient)
{
for(int i=0; i<445; i++)

{
if((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA287A8)) +(4*i))) + 0x7F8) = 9999;
}
}
}





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, " made by Alpino "," Alpino v.1 ", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}

It injected well,but the feature doesn't work...
It still doesn't work...
Should i use #define WeaponMgr 0xA287A8 instead of #define LtClient 0xA287A8?

I made this:
#include<windows.h>


#define WeaponMgr 0xA287A8
#define dmg 0x7f8





DWORD WINAPI Hacks(LPVOID)
{

bool ammodmg = false;





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


if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_F2) &1) { ammodmg = true; Beep(512, 100); }



if(ammodmg)
{
if (WeaponMgr)
{
for(int i=0; i<445; i++)

{
if((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA287A8)) +(4*i))) + 0x7F8) = 9999;
}
}
}





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, " made by Alpino "," Alpino v.1 ", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}
u just used [Hectic] tut..
and his tut is wrong..
and wtf is 0x0x7F8?
Nah ,i used another tut...
I corrected it...
Fuck,i'll stop everything ;D
It's useless
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?