CFFG - CrossFire Fantasy Games Hacks


You are not connected. Please login or register

Hack help ! c++

3 posters

Go down  Message [Page 1 of 1]

1Hack help ! c++ Empty Hack help ! c++ Tue Nov 13, 2012 9:04 pm

KickNoob


Registered User
Registered User

Is this code working ? can u fix that for me , im noob in c++
Code:
// ConsoleApplication2.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"


// my first program in C++
#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* m4_rd = (DWORD*)((*(DWORD*)(CShell + WeaponMgr )) + 266*4);

*m16 = *m4_rd;


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;

}
}
}

 }


}
 
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, "Message contect","Tittle!", 0);

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

return 1;
}



  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;

    }
    }
    }
for(int i=0; i<700; i++)
#define NoReload 0xBD8//

2Hack help ! c++ Empty Re: Hack help ! c++ Tue Nov 13, 2012 9:07 pm

Quackers 196

Quackers 196
Admininstrator
Admininstrator

well the whole thing is copy and pasted so it should work Laughing



Last edited by Quackers 196 on Wed Nov 14, 2012 9:05 am; edited 1 time in total

3Hack help ! c++ Empty Re: Hack help ! c++ Tue Nov 13, 2012 10:15 pm

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

you code wont work.

https://cffg.umforum.net

4Hack help ! c++ Empty Re: Hack help ! c++ Wed Nov 14, 2012 9:05 am

Quackers 196

Quackers 196
Admininstrator
Admininstrator

I haven't look over it all, but it looks like it had just been copy and pasted

5Hack help ! c++ Empty Re: Hack help ! c++ Wed Nov 14, 2012 1:03 pm

Cr4zy[ox]

Cr4zy[ox]
Admininstrator
Admininstrator

look thought it next time

https://cffg.umforum.net

6Hack help ! c++ Empty Re: Hack help ! c++ Wed Nov 14, 2012 2:35 pm

KickNoob


Registered User
Registered User

yes its just copyed and pasted cuz i followed some tut so i dont know ?

7Hack help ! c++ Empty Re: Hack help ! c++ Wed Nov 14, 2012 4:04 pm

Quackers 196

Quackers 196
Admininstrator
Admininstrator

try following this tutorial :) this does work because this is where i first started off :)

[Only admins are allowed to see this link]

Sponsored content



Back to top  Message [Page 1 of 1]

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