CFFG - CrossFire Fantasy Games Hacks


You are not connected. Please login or register

Hack help ! c++

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Hack help ! c++ on 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//

View user profile

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

Quackers 196

avatar
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



If You Click These You're AWESOME!!!
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
Cheers


Quackers 196 [Only admins are allowed to see this image]

[Only admins are allowed to see this image][Only admins are allowed to see this image]
[Only admins are allowed to see this image]




View user profile

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

Cr4zy[ox]

avatar
Admininstrator
Admininstrator
you code wont work.





[Only admins are allowed to see this image]
View user profile http://cffg.umforum.net

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

Quackers 196

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



If You Click These You're AWESOME!!!
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
Cheers


Quackers 196 [Only admins are allowed to see this image]

[Only admins are allowed to see this image][Only admins are allowed to see this image]
[Only admins are allowed to see this image]




View user profile

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

Cr4zy[ox]

avatar
Admininstrator
Admininstrator
look thought it next time





[Only admins are allowed to see this image]
View user profile http://cffg.umforum.net

6 Re: Hack help ! c++ on 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 ?

View user profile

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

Quackers 196

avatar
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]



If You Click These You're AWESOME!!!
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
[Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link] || [Only admins are allowed to see this link]
Cheers


Quackers 196 [Only admins are allowed to see this image]

[Only admins are allowed to see this image][Only admins are allowed to see this image]
[Only admins are allowed to see this image]




View user profile

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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