Warrock - Code Snippets

02/27/2013 17:57 n4n033#751
Quote:
Originally Posted by [N]oSoul View Post
fk all :D

Health Bar :D
Credits to MaxyLopez93
02/27/2013 18:17 SonyRazzer#752
Quote:
Originally Posted by n4n033 View Post
Credits to MaxyLopez93
Ich sehe das nichts, was auf MaxyLopez93 zurückweist .. Außerdem sind solche Beiträge voll unnötig, sonst müsste man das bei 9/10 Codes die hier veröffentlicht werden machen ..
02/27/2013 18:30 ignorehax#753
Quote:
Originally Posted by ~ExoduS~* View Post
but this methode crash and making partyprogramm too on 32bit system :D
Quote:
Originally Posted by n4n033 View Post
not if you got a good detour ;)
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:
if (CH_SpeedHack==1)
{
	g_pBase->pLocal->PlayerSpeed = 96;

}
if (CH_SpeedHack==2)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 2;


}
if (CH_SpeedHack==3)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 3;


}
if (CH_SpeedHack==4)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 5;


}
if (CH_SpeedHack==5)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 10;


}
02/27/2013 19:56 n4n033#754
Quote:
Originally Posted by ignorehax View Post
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:
if (CH_SpeedHack==1)
{
	g_pBase->pLocal->PlayerSpeed = 96;

}
if (CH_SpeedHack==2)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 2;


}
if (CH_SpeedHack==3)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 3;


}
if (CH_SpeedHack==4)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 5;


}
if (CH_SpeedHack==5)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 10;


}
Ye xD but is bit different working with structs :P
02/27/2013 20:28 GigaByte™#755
Quote:
Originally Posted by ignorehax View Post
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:
if (CH_SpeedHack==1)
{
	g_pBase->pLocal->PlayerSpeed = 96;

}
if (CH_SpeedHack==2)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 2;


}
if (CH_SpeedHack==3)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 3;


}
if (CH_SpeedHack==4)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 5;


}
if (CH_SpeedHack==5)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 10;


}
Quote:
Originally Posted by n4n033 View Post
Ye xD but is bit different working with structs :P
What N4N033 said ;) and btw the source you're using should be right even though it can be made another simple way and you need to change a sign..

If it's going backwards have you thought of how to make it go forward?

Tip: You're missing a sign just before the value ;)
02/28/2013 15:18 ignorehax#756
Quote:
Originally Posted by GigaByte™ View Post
What N4N033 said ;) and btw the source you're using should be right even though it can be made another simple way and you need to change a sign..

If it's going backwards have you thought of how to make it go forward?

Tip: You're missing a sign just before the value ;)
Hmmm about which character are you talking about? The structures have rather good, do not know if this is the full code for the speed of the structures


AND@

Request@ GetPlayerInfo and EnemyOnle struckt.

What it is:
Code:
if([B]GetScreenCoordFromWorld[/B](pDevice, g_vView, g_pPlayer)
03/01/2013 01:02 n4n033#757
Quote:
Originally Posted by SonyRazzer View Post
Ich sehe das nichts, was auf MaxyLopez93 zurückweist .. Außerdem sind solche Beiträge voll unnötig, sonst müsste man das bei 9/10 Codes die hier veröffentlicht werden machen ..
Nothing say it's MaxyLopez93 source but i know it cos i know this exact source from now 1 year & half and i know that it's his made.
03/01/2013 15:11 [N]oSoul#758
Fk All :D

Check Hack :D

for this credit to : i dont know :(

Code:
int checkhack (void)
{  
    char szLink[256]="";
    char szReponse[256]="";
	
    sprintf(szLink,"http://yoursite/Check1.php");
    if ( URLgetpage(szLink,szReponse,256) == 0 ) return (0);
if ( strcmp(szReponse,"Offline") == 0 )
 { 
	 ExitProcessSurvive=1;	

     if ( strcmp(szReponse,"Online") == 0 )
	 {
		 
 }
 }
}
Code:
int checkhack (void)
{  
    char szLink[256]="";
    char szReponse[256]="";
	
    sprintf(szLink,"http://yoursite/Check2.php");
    if ( URLgetpage(szLink,szReponse,256) == 0 ) return (0);
if ( strcmp(szReponse,"Offline") == 0 )
 { 
	 ExitProcessSurvive=2;	

     if ( strcmp(szReponse,"Online") == 0 )
	 {
		 
 }
 }
}


for this , credits to me :) and C++ Builder xD


Code:
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	if (dwReason==DLL_PROCESS_ATTACH) 
	{
		//YourThread...
	} 
	

	else if (ExitProcessSurvive == 1) 
	{

		MessageBoxA(GetActiveWindow(),"Frenz >> Hack Detected, Need an Update. ","<Error>",MB_OK);
		ExitProcess(0); 
	}else if (ExitProcessSurvive == 2) 
	{

		MessageBoxA(GetActiveWindow(),"Frenz >> Hack Expired ","<Error>",MB_OK);
		ExitProcess(0); 
	}


	return FALSE;
}
03/01/2013 16:37 Lazl07#759
#Request detour

if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
{
pPresent = (oPresent) memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
}
if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
{
pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,( DWORD)VTable[44]);
}

Kicking me.
03/01/2013 19:33 iSkyLikeX#760
Quote:
Originally Posted by Lazl07 View Post
#Request detour

if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
{
pPresent = (oPresent) memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
}
if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
{
pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,( DWORD)VTable[44]);
}

Kicking me.
These Hooks:
Code:
  if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
  {
	pPresent              = (oPresent)	            memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
  }
   if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
  {
	pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,(DWORD)VTable[44]);
	 }
are using the HotPatch detours ( *Hackz* , BlackLegend ):
Code:
DWORD MEMhotpatch(DWORD dwAddress, DWORD dwFunction)
{
    BYTE OriginalBytes[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x8b, 0xff};
    BYTE NewBytes[] = { 0xe9, 0x00, 0x00, 0x00, 0x00, 0xeb, 0xf9};
    dwAddress -= 5;
    if (memcmp((void *)dwAddress,(void *)OriginalBytes, 7) != 0)
    {
        return 0;
    }
    *(DWORD*)(&NewBytes[1]) = (dwFunction - dwAddress) - 5;
    WriteMemory((void *)dwAddress, (void *)NewBytes, 7);
    return (dwAddress + 7);
}
But i would use a VMT Hook:
Code:
VMTInitialize(17,myPresent);
VMTInitialize(44,mySetTransformations);
03/02/2013 07:00 Lazl07#761
i got no menu with this MemPatch thing.
03/02/2013 09:41 iSkyLikeX#762
Quote:
Originally Posted by Lazl07 View Post
i got no menu with this MemPatch thing.
Code:
#define ADR_DEVICEPOINTER           0x00A53440
#define OFS_DEVICEPOINTER           0x002B930

HRESULT   __stdcall nPresent   (  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
typedef HRESULT ( APIENTRY* Present_t )(  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
Present_t   pPresent;

HRESULT   __stdcall nReset    (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
typedef HRESULT ( APIENTRY* Reset_t ) (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
Reset_t     pReset;

HRESULT _stdcall nPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
	_asm PUSHAD;

         //Your Code Here :D

	_asm POPAD;

	return pPresent(pDevice,pSourceRect, pDestRect,hDestWindowOverride,pDirtyRegion); 
}

HRESULT __stdcall nReset (LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
	_asm PUSHAD;

	pFont->OnLostDevice();
	HRESULT hRet = pReset(pDevice, pPresentationParameters);
	pFont->OnResetDevice();

	_asm POPAD;

    return hRet;
}


DWORD WarRockDevice (int index)
{
	if (!ADR_DEVICEPOINTER) return 0;
	DWORD dwDevicePointer = *(DWORD*)ADR_DEVICEPOINTER;
    if(!dwDevicePointer) return 0;
	DWORD dwDeviceAddress = *(DWORD*)(dwDevicePointer + OFS_DEVICEPOINTER);
    if(!dwDeviceAddress) return 0;
    dwDeviceAddress = *(DWORD*)dwDeviceAddress;
    if(!dwDeviceAddress) return 0;
    return dwDeviceAddress + (4*index);
}

#define InitializeDevice(name, index)\
        DWORD dw##name##1 = WarRockDevice (index);\
        if(*(DWORD*)dw##name##1 != (DWORD)&n##name && dw##name##1 != NULL)\
{\
         p##name = (name##_t) *(DWORD*)dw##name##1;\
        *(DWORD*)dw##name##1 = (DWORD)&n##name;\
}

int __stdcall DeviceHook(void)
{
    bool Ready = false;
    while( true ) 
    {
        Ready = WarRockDevice(0) > 0;
        if( Ready )
        {
            InitializeDevice(Reset,16);
            InitializeDevice(Present,17);
        }
		Sleep(300);
	}
}
Try this one :D
03/02/2013 10:07 Phantom.#763
Quote:
Originally Posted by iSkyLikeX View Post
Code:
#define ADR_DEVICEPOINTER           0x00A53440
#define OFS_DEVICEPOINTER           0x002B930

HRESULT   __stdcall nPresent   (  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
typedef HRESULT ( APIENTRY* Present_t )(  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
Present_t   pPresent;

HRESULT   __stdcall nReset    (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
typedef HRESULT ( APIENTRY* Reset_t ) (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
Reset_t     pReset;

HRESULT _stdcall nPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
	_asm PUSHAD;

         //Your Code Here :D

	_asm POPAD;

	return pPresent(pDevice,pSourceRect, pDestRect,hDestWindowOverride,pDirtyRegion); 
}

HRESULT __stdcall nReset (LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
	_asm PUSHAD;

	pFont->OnLostDevice();
	HRESULT hRet = pReset(pDevice, pPresentationParameters);
	pFont->OnResetDevice();

	_asm POPAD;

    return hRet;
}


DWORD WarRockDevice (int index)
{
	if (!ADR_DEVICEPOINTER) return 0;
	DWORD dwDevicePointer = *(DWORD*)ADR_DEVICEPOINTER;
    if(!dwDevicePointer) return 0;
	DWORD dwDeviceAddress = *(DWORD*)(dwDevicePointer + OFS_DEVICEPOINTER);
    if(!dwDeviceAddress) return 0;
    dwDeviceAddress = *(DWORD*)dwDeviceAddress;
    if(!dwDeviceAddress) return 0;
    return dwDeviceAddress + (4*index);
}

#define InitializeDevice(name, index)\
        DWORD dw##name##1 = WarRockDevice (index);\
        if(*(DWORD*)dw##name##1 != (DWORD)&n##name && dw##name##1 != NULL)\
{\
         p##name = (name##_t) *(DWORD*)dw##name##1;\
        *(DWORD*)dw##name##1 = (DWORD)&n##name;\
}

int __stdcall DeviceHook(void)
{
    bool Ready = false;
    while( true ) 
    {
        Ready = WarRockDevice(0) > 0;
        if( Ready )
        {
            InitializeDevice(Reset,16);
            InitializeDevice(Present,17);
        }
		Sleep(300);
	}
}
Try this one :D
You need an Bypass for this
03/02/2013 15:08 R3d_L!n3#764
Quote:
Originally Posted by Phantom. View Post
You need an Bypass for this
Exactly
03/03/2013 04:57 boknoy24#765
#Request Weapon Binder Source Menu :/