C++

Posts 31–35 of 35 · Page 3 of 3
Quote Originally Posted by WeaponHacker View Post
Code:
#include "stdafx.h" 
#define WeaponMgr                   0xA65EE8
#define NoReload                    0x2698

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

 while(1)
 {
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	 
if(hak)
{
   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;
}


After all this, just debug it, by pressing the "start" icon up there.
then go to your project folder--debug.
then you will see a .dll file, thats it

[/CENTER][/SIZE][/COLOR][/FONT]
You can use a shortkey to make your code look nicer He will tab for you the code:

Code:
#include "stdafx.h" 
#define WeaponMgr                   0xA65EE8
#define NoReload                    0x2698

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

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

		if(hak)
		{
			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;
}
can you help me evry time i get faild while compiling : 1>------ Build started: Project: ha4k, Configuration: Debug Win32 ------
1> stdafx.cpp
1> ha4k.cpp
1>c:\projects\ha4k\ha4k\ha4k.cpp(1): warning C4627: '#include "windows.h"': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\projects\ha4k\ha4k\ha4k.cpp(2): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\projects\ha4k\ha4k\ha4k.cpp(18): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Quote Originally Posted by amdid3 View Post
can you help me evry time i get faild while compiling : 1>------ Build started: Project: ha4k, Configuration: Debug Win32 ------
1> stdafx.cpp
1> ha4k.cpp
1>c:\projects\ha4k\ha4k\ha4k.cpp(1): warning C4627: '#include "windows.h"': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\projects\ha4k\ha4k\ha4k.cpp(2): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\projects\ha4k\ha4k\ha4k.cpp(18): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
your are codding on ha4k.cpp but i said to make the hack on the Dllmain.cpp -_-
This is Right or Not ???

How to make multi hack with this base ??
How to change addys ?? because i'm pick up from CShell CF Indo with Ollydbg
This my C++ plese tell me whats wrong !

#include <windows.h>
#include "stdafx.h"

#define WeaponMgr 0xA97CC8 // 3 Step Up From ReloadAnimRatio
#define NoReload 0x2F740C // ReloadAnimRatio
#define OneHit 0x2F7C44 // AmmoDamage
#define NoWeight 0x2F7790 // MoveSpeedPenalty
#define NoDelay 0x2F741C // ChangeWeaponAnimRatio
#define Wallshot1 0x2F6F7C // EdgeShotEnabled
#define Wallshot2 0x2F6F6C // WallShotEnabled
#define Wallshot3 0x2F6F54 // PerfectWallShotEnabled
#define Wallshot4 0x2F7434 // WallShotDamageRatio

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

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

if(GetAsyncKeyState(VK_F5)&1){
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;}
Beep(300,300); } }
Sleep(100); }

if(GetAsyncKeyState(VK_F6)&1)
if (pWeaponMgr){
for(int i=0; i<560; i++){
{
if (*(DWORD*)((CShell)+WeaponMgr) != NULL){
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(0x474*i))) + Wallshot1 ) = true;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(0x474*i))) + Wallshot2 ) = true;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(0x474*i))) + Wallshot3 ) = true;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + Wallshot4 ) = 150;}
Beep(300,300);}
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;
}
Compile with this error :
1>------ Build started: Project: CrossfireKiller-1, Configuration: Release Win32 ------
1> Main.cpp
1>Main.cpp(32): error C2065: 'pWeaponMgr' : undeclared identifier
1>Main.cpp(35): error C2065: 'CShell' : undeclared identifier
1>Main.cpp(36): error C2065: 'CShell' : undeclared identifier
1>Main.cpp(37): error C2065: 'CShell' : undeclared identifier
1>Main.cpp(38): error C2065: 'CShell' : undeclared identifier
1>Main.cpp(39): error C2065: 'CShell' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========[/spoiler]


Quote Originally Posted by dicky87smd View Post
This is Right or Not ???

How to make multi hack with this base ??
How to change addys ?? because i'm pick up from CShell CF Indo with Ollydbg
This my C++ plese tell me whats wrong !



Compile with this error :


ARRRRRRRRRRRRHHHHHHHHHHH plz code in Dllmain.cpp -_-

and your hotkeys are wrong... it should be somthing like this:

if (getassbla bla VK_F1, &1)
{

hack = true;
(or)

hack = hack!;

}
Posts 31–35 of 35 · Page 3 of 3

Post a Reply

Tags for this Thread

None

Talk with us