DetectedLOOK at a simple hack,

Posts 1–12 of 12 · Page 1 of 1
LOOK at a simple hack,
take a look at a simple source code!!!!
main.cpp:
Code:
#include "hacks.h"

BOOL WINAPI WtFrGmLbs(LPVOID) 
{
	try	
	{
		if(!Hcks->RdyFrHcks()) throw 1;
	}
	catch (int rrr) 
	{
		switch (rrr) 
		{
		case 1:
			CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)WtFrGmLbs, NULL, NULL, NULL);
			return false;
		default:
			return false;
		}
	}
	Hcks = new cHcks();
	return true;
}

BOOL WINAPI DllMain(HINSTANCE nstnc, DWORD Rsn, LPVOID Rsrvd)
{
	if(Rsn == DLL_PROCESS_ATTACH)
	{
		DisableThreadLibraryCalls(nstnc);
		MessageBoxA(0,"for mpgh!","injected",0);
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE) WtFrGmLbs, 0, 0, 0);
	}
	return true;
}
hacks.cpp:
Code:
#include "hacks.h"
cHcks* Hcks;

cHcks::cHcks()
{
	DWORD cshll = (DWORD) GetModuleHandleA("CShell.dll");
	if(!cshll) return;

	dwwpnmgr = *(DWORD*)GtddrssFrmffst(cshll, WpnMgrffst);
	dwwllmgr	= *(DWORD*)GtddrssFrmffst(cshll, WllMgrffst);
	dwplyrmgr = *(DWORD*)GtddrssFrmffst(cshll, PlyrMgrffst);
	dwplyrnf= *(DWORD*)GtddrssFrmffst(cshll, Plyrnfffst);



	if(dwwpnmgr && dwwllmgr && dwplyrmgr && dwplyrnf) 
	{
		for(int z=0 ; z<533 ; z++) {
		{
			DWORD Wpn = *(DWORD*)GtddrssFrmffst(dwwpnmgr, (4*z));
			if(Wpn) 
			{
               *(float*)GtddrssFrmffst(Wpn, WpnMgr->mvspdpnlty) = 1;





				*(float*)GtddrssFrmffst(Wpn, WpnMgr->wllshtdmgrt) = 9999;
				*(float*)GtddrssFrmffst(Wpn, WpnMgr->rldnmrt) = 0;
				*(float*)GtddrssFrmffst(Wpn, WpnMgr->crsshrrtprrlsz) = 1;
				*(float*)GtddrssFrmffst(Wpn, WpnMgr->knckbck) = 999;


				*(float*)GtddrssFrmffst(Wpn, WpnMgr->gnknfrng) = 9999;
				*(float*)GtddrssFrmffst(Wpn, WpnMgr->rldnmrt) = 999;
				*(float*)GtddrssFrmffst(Wpn, WpnMgr->knfnrmlnrt) = 9999;
				*(float*)GtddrssFrmffst(Wpn, WpnMgr->gnknfmmdmg) = 999;

				*(float*)GtddrssFrmffst(Wpn, WpnMgr->lwrnmrt) = 999;

			}
		}
		}
		                for(int i = 0;i<64;i++)	{
		{
			DWORD Wll = *(DWORD*)GtddrssFrmffst(dwwllmgr, (4*i));
			if(Wll) 
			{
				*(float*)GtddrssFrmffst(Wll, WllMgr->dgShtEnbld) = 9999;
				*(float*)GtddrssFrmffst(Wll, WllMgr->wllshtnbld) = 999;
				*(float*)GtddrssFrmffst(Wll, WllMgr->prfctshtnbld) = 9999;

			}
		}
						}
						/*

		{
			for(int z = 0; z < 560; z++)
			DWORD Plyr = *(DWORD*)GtddrssFrmffst(dwplyrmgr, (4*z));
			if(Plyr) 
			{
				
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementSpeed) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementWalkRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementDuckWalkRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementSideMoveRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementFrontBackRunAnimationRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementLeftRightRunAnimationRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementFrontBackWalkAnimationRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementLeftRightWalkAnimationRate) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementAcceleration) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementFriction) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpTime) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpVelocity) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpLandedWaitTime) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpLandedNoJumpTimeRate) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpRepeatPenaltyMoveRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpRepeatPenaltyHeightRate) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpLandedMovePenaltyTimeRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->JumpLandedMovePenaltyMoveRate) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->DamagePenaltyTime) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->DamagePenaltyMoveRate) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->C4PlantTime) = 1;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->C4DefuseTime) = 1;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MaxCanDefuseDistance) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->CharacterHiddenAlpha) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->CharacterHiddenWalkAlpha) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->CharacterHiddenRunAlpha) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->MovementHiddenRate) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->CrossHairColor) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->CrossHairRedChangeRate) = 9999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->CrossHairGreenChangeRate) = 999;
				*(float*)GtddrssFrmffst(Plyr, Plyrnf->CrossHairBlueChangeRate) = 999;
				
			}
		
	}
	*/


	}
	
	else
		return;
}

bool cHcks::RdyFrHcks()
{
	if(GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFX.fxd") != NULL && GetModuleHandleA("crossfire.exe") != NULL)
		return true;
	return false;
}

DWORD cHcks::GtddrssFrmffst(DWORD Bs, DWORD ffst)
{
	if(Bs)
		return (Bs + ffst);
	else
		return NULL;
}
hacks.h
Code:
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#define Grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==126)||(i==135)||(i==209)||(i==210)||(i==240)||(i==263)||(i==272)||(i==338)||(i==382)||(i==383)||(i==384))
#define Knifes ((i==5)||(i==35)||(i==74)||(i==132)||(i==239)||(i==372)||(i==381))
class cWpnMgr
{
public:
	static const DWORD dmgcmrpnlty;
	static const DWORD mvspdpnlty =						0xA78;
	static const DWORD ZmnMvSpdPnlty;
	static const DWORD MvPnltyFrDlyFr;
	static const DWORD ZmTrgtTp;
	static const DWORD DmgPnltyTmndMvRt;
	static const DWORD NnGhstDmgPnltyTmndMvRt1;
	static const DWORD NnGhstDmgPnltyTmndMvRt2;
	static const DWORD wllshtdmgrt =					0x261C;
	static const DWORD chngwpnnmrt =					0x2654;
	static const DWORD rldnmrt =						0x2650;
	static const DWORD crsshrrtprrlsz =				0x2658;
	static const DWORD knckbck =								0x273C;
	static const DWORD mmDmg;
	static const DWORD Rng;
	static const DWORD gnknfrng =							0x2738;
	static const DWORD knfnrmlnrt =						0x9D4;
	static const DWORD gnknfmmdmg =						0x273C;
	static const DWORD nlmtdmm;
	static const DWORD lwrnmrt =							0x24D4;
	static const DWORD BlltPsffst1;
	static const DWORD BlltPsffst2;
	static const DWORD BlltPsffst3;
	static const DWORD BlltPsffst4;
	static const DWORD BlltPsffst5;
	static const DWORD BlltPsffst6;
	static const DWORD BlltPsffst7;
};

class cWllMgr
{
public:
	static const DWORD dgShtEnbld =						0x4E8;
	static const DWORD wllshtnbld =						0x4EC;
	static const DWORD prfctshtnbld =						0x4F0;
};

class cPlyrnf
{
public:
	/*
char Spcr00[40];
	float MovementSpeed;
	float MovementWalkRate;
	float MovementDuckWalkRate;
	float MovementSideMoveRate;
	float MovementFrontBackRunAnimationRate;
	float MovementLeftRightRunAnimationRate;
	float MovementFrontBackWalkAnimationRate;
	float MovementLeftRightWalkAnimationRate;
	float MovementAcceleration;
	float MovementFriction;
	float JumpTime;
	float JumpVelocity;
	float JumpLandedWaitTime;
	float JumpLandedNoJumpTimeRate;
	float JumpRepeatPenaltyMoveRate;
	float JumpRepeatPenaltyHeightRate;
	float JumpLandedMovePenaltyTimeRate;
	float JumpLandedMovePenaltyMoveRate;
char Spcr01[40];
	float DamagePenaltyTime;
	float DamagePenaltyMoveRate;
	float C4PlantTime;
	float C4DefuseTime;
	float MaxCanDefuseDistance;
	float CharacterHiddenAlpha;
	float CharacterHiddenWalkAlpha;
	float CharacterHiddenRunAlpha;
	float MovementHiddenRate;
	DWORD CrossHairColor;
	float CrossHairRedChangeRate;
	float CrossHairGreenChangeRate;
	float CrossHairBlueChangeRate;
	*/
};

class cHcks
{
public:
	bool RdyFrHcks();

	DWORD GtddrssFrmffst(DWORD Bs, DWORD ffst);

	cWpnMgr* WpnMgr;
	cWllMgr* WllMgr;
	cPlyrnf* Plyrnf;

	cHcks();
	~cHcks();
private:
	#define WpnMgrffst			0xA9BAE0
	#define WllMgrffst			0xA9BACC
	#define PlyrMgrffst			0xA349D4
	#define Plyrnfffst		0xA349D8

	DWORD dwwpnmgr, dwwllmgr, dwplyrmgr, dwplyrnf;
};extern class cHcks* Hcks;
question, where is the addy for this fucking shit addy(sorry for bad words, im furstrated, 24 hours sitted on chair to work for a hack)?
pakeke go to my thread about that d3d error and show me ur how u gonna fix that shit
ok, i just leaved making a d3dmenu for just a day, trying to make a simple dll, without d3d, theres noting wrong to that source code if you compile it, but when you inject it, game crushes, xtrap error, i think theres a wrong source in it??????, please check it,(addys are surely correct)
Quote Originally Posted by pakeke80 View Post
ok, i just leaved making a d3dmenu for just a day, trying to make a simple dll, without d3d, theres noting wrong to that source code if you compile it, but when you inject it, game crushes, xtrap error, i think theres a wrong source in it??????, please check it,(addys are surely correct)
as fly3r said...u unpacked the CShell in a wrong way....actually u dont need to unpack it...just load it with "loadib.exe" attach it in olly and make view>module"CShell" then searchfor> all refrenced test strings....its easier than unpacking it..
First this is @jeff 's base , i think its detected but not really sure.
And if you want to see the offset from that string go to the Tutorial ive posted about Cshell unpacking.
(The thread is stickied so you can find it easily)
Hope i helped
Umm dude lol i thought you could make by looking at that d3d You Shared with us.. i would suggest you to make pro memory hack and get into d3d.
tnx , but please give me full insruction, tnx for effort ^_^
Quote Originally Posted by pakeke80 View Post
tnx , but please give me full insruction, tnx for effort ^_^
Are you Beginner in C++ ?
i have many experince bout c++ in other uses of it, but not in crossfire
Quote Originally Posted by pakeke80 View Post
i have many experince bout c++ in other uses of it, but not in crossfire
like me but now i am expert in both CF and c++ cuz our next version is a full d3d version even if it was without a menu it will have 25 features and 7 and more D3D
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us