Problem At Weapon Hack Code ..

Posts 1–15 of 21 · Page 1 of 2
Problem At Weapon Hack Code ..
Hello Guys,
Iam Started To Learn C++ And Make Hacks ,, And Iam Done Many Books
And I Love To Start Hack With Making A Weapon Hack ..
So i Done The Code But It,s Still Don't Work .. Can You Guys Tell Me What The Lost ?

Code:
#include "stdafx.h"

#include <iostream>

#define a Mgr

using namespace std;

int main()
{
	bool weaponhack = true;
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD WeaponMgr = *(PDWORD)(CShell+WeaponMgr);
	DWORD WeaponClass = NULL;
	int szd = sizeof(DWORD);

                    if(weaponhack)
                    {
                        memcpy((DWORD*)(WeaponClass+25*szd),(DWORD*)(WeaponClass+56*szd),szd); // M16 to AK Gold
                        memcpy((DWORD*)(WeaponClass+14*szd),(DWORD*)(WeaponClass+110*szd),szd); // M700 to AWM Camo
                        memcpy((DWORD*)(WeaponClass+18*szd),(DWORD*)(WeaponClass+75*szd),szd); // USP to Deagle Scope
                        memcpy((DWORD*)(WeaponClass+4*szd),(DWORD*)(WeaponClass+75*szd),szd); // M9 to Deagle Scope
                        memcpy((DWORD*)(WeaponClass+17*szd),(DWORD*)(WeaponClass+188*szd),szd); // M60 to gatling
                        memcpy((DWORD*)(WeaponClass+158*szd),(DWORD*)(WeaponClass+257*szd),szd); // m60adv to gatling gold
					}

}
Thx.
WTF? lool wrong here u got



Code:
#define WeaponMgr              (put addy here)



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

while(1)
 {
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);          
DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4); 
DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4); 
DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4); 
DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
then

Code:
if (hak) 

   *m16 = *m4silver;
   *k2 = *m4gold;
   *deagle = *deaglegold; 
   *anaconda = *deaglegold2;
press thanks if i helped u
Thanks Gonna Try ..

---------- Post added at 10:50 PM ---------- Previous post was at 10:27 PM ----------

What The Addy Cause I Cant Find It In Ollydbg .. ?
Code:
0xA974A0
Credits: assassin screed
Code:
#define WeaponMgr (0xA974A0)

#include "stdafx.h"

int main()
{
	bool hak = true; 
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);          
	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4); 
	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4); 
	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4); 
	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	
	if (hak)
   *m16 = *m4silver;
   *k2 = *m4gold;
   *deagle = *deaglegold; 
   *anaconda = *deaglegold2;
}
it still don't Work ?
do u have at least one base? ?
#define WeaponMgr (0xA974A0)

#include "stdafx.h"

int main()
{

DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
{
if ((m16 != NULL) && (m4silver ! =NULL) && (k2 ! =NULL) && (m4gold ! =NULL) && (deagle ! =NULL) && (deaglegold ! =NULL) && (anaconda ! =NULL) && (deaglegold2 ! =NULL))

*m16 = *m4silver;
*k2 = *m4gold;
*deagle = *deaglegold;
*anaconda = *deaglegold2;
}
}

Press thanks if i help you.
Thx But Got 2 Errors
error C2059: syntax error : ')'
error C2143: syntax error : missing ')' before '!'
Quote Originally Posted by Ever4Ever View Post
Thx But Got 2 Errors
error C2059: syntax error : ')'
error C2143: syntax error : missing ')' before '!'
dude remove the brackets between the addy...and ur missing the dllmain (create thread)


---------- Post added at 12:40 PM ---------- Previous post was at 12:39 PM ----------

look at the stickies u will find alot of usefull stuff (up at Cf Source section u will find red sticky)
Thanks But still Dont Work
Code:
//Weapon Hack
#define WeaponMgr 0xA974A0

#include "stdafx.h"

int main()
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
{
	if ((m16 != NULL) && (m4silver != NULL) && (k2 != NULL) && (m4gold != NULL) && (deagle != NULL) && (deaglegold != NULL) && (anaconda != NULL) && (deaglegold2 != NULL))

	*m16 = *m4silver;
	*k2 = *m4gold;
	*deagle = *deaglegold;
	*anaconda = *deaglegold2;
}
}
ok thx but can you fix the code to know what are lost ? thx .
Quote Originally Posted by Ever4Ever View Post
Thanks But still Dont Work
Code:
//Weapon Hack
#define WeaponMgr 0xA974A0

#include "stdafx.h"

int main()
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
{
	if ((m16 != NULL) && (m4silver != NULL) && (k2 != NULL) && (m4gold != NULL) && (deagle != NULL) && (deaglegold != NULL) && (anaconda != NULL) && (deaglegold2 != NULL))

	*m16 = *m4silver;
	*k2 = *m4gold;
	*deagle = *deaglegold;
	*anaconda = *deaglegold2;
}
}
ok thx but can you fix the code to know what are lost ? thx .
dude ur missing a dllmain the most important part of the code...it creates the thread lol did u look at the stickies or any tuts?
Ya Iam Looked Your Tut And it,s was just 4 parts what part are i messing ?
1. Includes and Defines (Defines: You will need the addys or offsets to work it out)
2. Loading CShell (You use them to find Offsets or Addys)
3. Base - Contains Loops and values(Will be mentioned, but not explained.)
4. Hook
Quote Originally Posted by Ever4Ever View Post
Ya Iam Looked Your Tut And it,s was just 4 parts what part are i messing ?
1. Includes and Defines (Defines: You will need the addys or offsets to work it out)
2. Loading CShell (You use them to find Offsets or Addys)
3. Base - Contains Loops and values(Will be mentioned, but not explained.)
4. Hook
i didnt write the dllmain ...it can get detected by xtrap if i written it..
Posts 1–15 of 21 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us