CFFG - CrossFire Fantasy Games Hacks


You are not connected. Please login or register

[Help] First Hack Help

2 posters

Go down  Message [Page 1 of 1]

1[Help] First Hack Help Empty [Help] First Hack Help Sat Sep 08, 2012 1:16 pm

Quackers 196

Quackers 196
Admininstrator
Admininstrator

Have I Done Anything Wrong? :)

Hey :) I have followed the video and tut on making a hack and have made a dll with no errors, and it injects fine. but i get and Xtrap error. i did PM you Admin but i realised this would be better.

here is the error i get :



and here is the code :

Code:
#include <Windows.h>

#define WeaponMgr          0xB65E94//

#define nochange            0xBDC//
#define NoReload            0xBD8//



DWORD WINAPI hacks(LPVOID)
{
  while(1)
{
 DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
 DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr )) + 25*4);
 DWORD* Kriss_Super_V_Tiger = (DWORD*)((*(DWORD*)(CShell + WeaponMgr )) + 274*4);

*m16 = *Kriss_Super_V_Tiger;


if (CShell + WeaponMgr)
 

for(int i=0; i<700; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
{
for (int j=0; j<10 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload +j*4) = 100.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + nochange +j*4) = 100.0f;

}
}
}

 }


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

DWORD WINAPI Wait(LPVOID)
{
while(!Ready2Hook()) Sleep(100);
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, "MY Hack :)","Inject Successful", 0);

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

2[Help] First Hack Help Empty Re: [Help] First Hack Help Sat Sep 08, 2012 1:37 pm

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

i will check tomorow i gtg now

https://cffg.umforum.net

3[Help] First Hack Help Empty Re: [Help] First Hack Help Sat Sep 08, 2012 2:28 pm

Quackers 196

Quackers 196
Admininstrator
Admininstrator

no problem :) thanks dude

---Edit---

okay so i restarted my computer and tried again and i have now officially made my very own hack Very Happy

Thanks guys WIN!

4[Help] First Hack Help Empty Re: [Help] First Hack Help Sat Sep 08, 2012 2:49 pm

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

closed - solved

https://cffg.umforum.net

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum