Results 1 to 15 of 63

Threaded View

  1. #1
    hooch's Avatar
    Join Date
    Aug 2007
    Gender
    male
    Posts
    208
    Reputation
    6
    Thanks
    1,194
    My Mood
    Hungover

    Arrow [Release]Name tag hack / Unlimited Ammo + Source Code!

    Inject it into game using any injectior. I prefer WinJect.

    F4 - Freez Ammo / No reload / Unlimited Ammo / Press second time to disable.
    F3 - Name tag hack / Press second time for name hack / press third tome to disable

    You should hear beep after hack activation.
    Tested on Windows 7 x64.

    UPDATE:
    There is source code for you. Compile it as dll.
    Code:
    #include <Windows.h>
    #include <wchar.h>
    
    #define ThreadMake(x) CreateThread(NULL,0, (LPTHREAD_START_ROUTINE)&x,NULL,0,NULL); 
    #define ThreadMakeParam(x, param) CreateThread(NULL,0, (LPTHREAD_START_ROUTINE)&x,param,0,NULL);
    
    #define BEEP_ACTIVATED Beep(2000, 500);
    #define BEEP_DEACTIVATED Beep(1000, 500);
    
    void Initialize();
    void ToggleAmmo();
    void ToggleTagHack();
    void Write2Asm(void*, BYTE*, int);
    DWORD pAmmo;
    DWORD pTagHack;
    
    void Hotkeys()
    {
    	while(true)
    	{
    		if (GetAsyncKeyState(VK_F4))
    		{
    			ToggleAmmo();
    		}
    
    		if (GetAsyncKeyState(VK_F3))
    		{
    			ToggleTagHack();
    		}
    		Sleep(500);
    	}
    }
    
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
    					 )
    {
    	switch (ul_reason_for_call)
    	{
    	case DLL_PROCESS_ATTACH:
    		Beep(5000, 1000);
    		Initialize();
    		ThreadMake(Hotkeys);
    	case DLL_THREAD_ATTACH:
    	case DLL_THREAD_DETACH:
    	case DLL_PROCESS_DETACH:
    		break;
    	}
    	return TRUE;
    }
    
    void Initialize()
    {
    	DWORD CrysisBase = (DWORD)GetModuleHandle(L"CryGameCrysis2");
    	pAmmo = (CrysisBase + 0x4225D);
    	pTagHack = (CrysisBase + 0xF50C2);
    
    	//WCHAR tempChar[256];
    	//swprintf(tempChar, 256, L"0x%X", pAmmoOffset);
    	//MessageBox(NULL, tempChar,  L"Info", MB_OK | MB_ICONASTERISK);
    }
    
    void ToggleAmmo()
    {
    	static bool hack_activated = false;
    
    	if(hack_activated)
    	{
    		Write2Asm((void*)pAmmo,(PBYTE)"\x89\x70\x04",3);
    		hack_activated = false;
    		BEEP_DEACTIVATED
    	} 
    	else
    	{
    		Write2Asm((void*)pAmmo,(PBYTE)"\x90\x90\x90",3);
    		hack_activated = true;
    		BEEP_ACTIVATED
    	}
    }
    
    void ToggleTagHack()
    {
    	static int hack_state = 0;
    	
    	switch(hack_state)
    	{
    		case 0:
    			Write2Asm((void*)pTagHack,(PBYTE)"\xB3\x01",2);			
    			hack_state++;
    			BEEP_ACTIVATED
    			break;	
    		case 1:
    			Write2Asm((void*)pTagHack,(PBYTE)"\xB3\x02",2);			
    			hack_state++;
    			BEEP_ACTIVATED
    			break;	
    		case 2:
    			Write2Asm((void*)pTagHack,(PBYTE)"\x8A\xD8",2);			
    			hack_state = 0;
    			BEEP_DEACTIVATED
    			break;	
    	}
    
    }
    void Write2Asm(void* pxAddress, BYTE * MyBytes,  int size)
    {
    	unsigned long Protection;
    	VirtualProtect((void*)pxAddress, size, PAGE_READWRITE, &Protection);
    	memcpy((void*)pxAddress, (const void*)MyBytes, size);
    	VirtualProtect((void*)pxAddress, size, Protection, 0);
    }

    Scan 1
    Scan 2
    Last edited by B4M; 03-07-2011 at 05:16 AM.

  2. The Following 9 Users Say Thank You to hooch For This Useful Post:

    alimarin (03-06-2011),flecki (03-07-2011),gokmen (03-08-2011),hackrazor (03-09-2011),NAZZ309 (04-03-2011),Sleekdigital (03-12-2011),teh.exploit (03-06-2011),wheredabudat (03-09-2011),Z_k (03-07-2011)

Tags for this Thread