WarRock EU - Code Snippets

02/07/2012 17:07 HackLions#6391
@UnknownData:

Chams ist nicht detected, sowie "DrawIndexedPrimitive" nicht detected ist.

Das einzige was im moment detected geworden ist, denek Ich ist der HotPatch den hier viele nutzen und vielleicht der Public ReHook Way vom DrawIndexedPrimitive.
02/07/2012 17:19 Raz9r#6392
Quote:
Originally Posted by HackLions View Post
@UnknownData:

Chams ist nicht detected, sowie "DrawIndexedPrimitive" nicht detected ist.

Das einzige was im moment detected geworden ist, denek Ich ist der HotPatch den hier viele nutzen und vielleicht der Public ReHook Way vom DrawIndexedPrimitive.
Quote:
Originally Posted by __underScore View Post
Man kann IDirect3DDevice9::DrawIndexedPrimitive noch hooken. Sogar ohne Bypass, wenn man denn weiß, wie. HackShield scannt übrigens nach ausnahmslos allen Bytes in der Funktion. Wenn man diese also modifiziert, erhält man Error 10301 "Memory Modification Detected".
Folglich: Man muss hooken / detouren ohne Bytes zu modifizieren.
Und übrigens: DrawIndexedPrimitive ständig zu Re-Hooken macht auch keinen Sinn. Das macht es nicht crashfrei. ;)
02/08/2012 08:39 HackLions#6393
Im moment denke Ich vielleicht an HwBp detouring ( Hardware Breakpoint ). Sollte möglich sein.
02/08/2012 09:34 Raz9r#6394
HWBP steht für Hardware Breakpoint, dein Post ergibt also keinen Sinn. Aber ja, mit Breakpoints ist es auch möglich. Eine von vielen Varianten, Hools zu setzen.
02/09/2012 20:12 CyberVeezy :)#6395
DinarBot Boot [64 Bit]
Code:
void Boot()
		{
			if(AutoShot==1)
				{
					AutoKey(VK_LBUTTON);
					AL_Toogle_AutoShot=false;
				}else if(AL_Toogle_AutoShot==false)
				{
					keybd_event(VK_LBUTTON, 0, KEYEVENTF_KEYUP, 0);
					AL_Toogle_AutoShot=true;
				}
				

		}
	//by CyberVeezy
02/09/2012 20:49 Chown¡¡qhtz#6396
Quote:
Originally Posted by CyberVeezy :) View Post
DinarBot Boot [64 Bit]
Code:
void Boot()
		{
			if(AutoShot==1)
				{
					AutoKey(VK_LBUTTON);
					AL_Toogle_AutoShot=false;
				}else if(AL_Toogle_AutoShot==false)
				{
					keybd_event(VK_LBUTTON, 0, KEYEVENTF_KEYUP, 0);
					AL_Toogle_AutoShot=true;
				}
				

		}
	//by CyberVeezy
Was hat VK_LBUTTON mit DinarBot zu tun?
Da geht doch darum, zu sterben?
Ou man.
02/10/2012 09:42 __BuRn3R#6397
Quote:
Originally Posted by CyberVeezy :) View Post
DinarBot Boot [64 Bit]
Code:
void Boot()
		{
			if(AutoShot==1)
				{
					AutoKey(VK_LBUTTON);
					AL_Toogle_AutoShot=false;
				}else if(AL_Toogle_AutoShot==false)
				{
					keybd_event(VK_LBUTTON, 0, KEYEVENTF_KEYUP, 0);
					AL_Toogle_AutoShot=true;
				}
				

		}
	//by CyberVeezy
ehm ne by Anksel wenn überhaupt hat er aber eh geklaut^^

struct CPlayer
{
char xUnknown1[50236];//0x00
float NoRecoil1;//0xC43C
float NoRecoil2;//0xC440
float NoRecoil3;//0xC444
char xUnknown2[69];//0xC448
BYTE Index;//0xC48D
char xUnknown3[15622];//0xC48E
float Pitch;//0x10194
char xUnknown4[24];//0x10198
float Yaw;//0x101B0
char xUnknown5[12];//0x101B4
float ViewX;//0x101C0
float ViewY;//0x101C4
float ViewZ;//0x101C8
char xUnknown6[12];//0x101CC
WORD Weapon1;//0x101D8
WORD Weapon2;//0x101DA
WORD Weapon3;//0x101DC
char xUnknown7[90];//0x101DE
BYTE PlayerState;//0x10238
char xUnknown8[167];//0x10239
float PosX;//0x102E0
float PosY;//0x102E8
float PosZ;//0x102F0
char xUnknown9[237];//0x102F0
float NoReload;//0x103DD
char xUnknown10[1];//0x103E1
float NoDelay;//0x103E0
};

Credits: CyberRazzer[Addys],BuRn3R | B4ssL!n3[Structs]
02/11/2012 01:51 TheOwnerxX.:#6398
where to put ESP?
I tested @ all places there, but it was crashing by activating..
Code:
HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
	_asm pushad;

	CreateACrossHair(CH_Crosshair,pDevice);
	set_menu->InitFont(pDevice);

	set_menu->Init();
	set_menu->Menu(pDevice);
	
  

    
     
   
 
 
  

	set_menu->DestroyFont();
	
	DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PBYTE)"\x8B\xFF",2)== 0){
	{

//pDrawIndexedPrimitive		   =		(oDrawIndexedPrimitive)    BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDrawIndexedPrimitive,7);
	}
}
_asm popad;

	return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}
02/11/2012 09:58 __BuRn3R#6399
@TheOwnerxX.:

HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm pushad;

CreateACrossHair(CH_Crosshair,pDevice);
set_menu->InitFont(pDevice);

set_menu->Init();
set_menu->Menu(pDevice);


//Here your ESP Code.







set_menu->DestroyFont();
}//Close myPresent

DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0){
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
}
}
_asm popad;

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

@TheOwnerxX.:

HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm pushad;

CreateACrossHair(CH_Crosshair,pDevice);
set_menu->InitFont(pDevice);

set_menu->Init();
set_menu->Menu(pDevice);


//Here your ESP Code.







set_menu->DestroyFont();
}//Close myPresent

DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0){
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
}
}
_asm popad;

return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}
02/11/2012 10:39 +Yazzn#6400
@burner:
6 klammern auf 8 klammern zu?
if-statements außerhalb von funktionen?
02/11/2012 11:13 TheOwnerxX.:#6401
Is Not working.. When i activate it, it is crashing After.
In my Old Base it Works, but why Not Here?
02/11/2012 13:20 UnknownData#6402
Quote:
#define JUNK_CODE_ONE \
__asm{push eax} \
__asm{xor eax, eax} \
__asm{setpo al} \
__asm{push edx} \
__asm{xor edx, eax} \
__asm{sal edx, 2} \
__asm{xchg eax, edx} \
__asm{pop edx} \
__asm{or eax, ecx} \
__asm{pop eax}

DWORD DetourDIPE8( DWORD SrcVA, DWORD DstVA, DWORD Size )
{
DWORD DetourVA, dwProtect, i;

#define SIZEOF_MOVEAX_JMPEAX 7
JUNK_CODE_ONE
if ( SrcVA && DstVA && Size >= SIZEOF_MOVEAX_JMPEAX )
{
JUNK_CODE_ONE
DetourVA = (DWORD)VirtualAlloc( NULL, Size + SIZEOF_MOVEAX_JMPEAX, MEM_COMMIT, PAGE_EXECUTE_READWRITE);

if ( DetourVA && VirtualProtectEx(GetCurrentProcess(),(void*)SrcVA, Size, PAGE_READWRITE, &dwProtect ))
{
JUNK_CODE_ONE
for ( i=0; i < Size; i++ ) {
JUNK_CODE_ONE
*(BYTE*)( DetourVA + i ) = *(BYTE*)( SrcVA + i );
JUNK_CODE_ONE
}
JUNK_CODE_ONE
*(BYTE*)( DetourVA + Size + 0 ) = 0xB8;
JUNK_CODE_ONE
*(DWORD*)( DetourVA + Size + 1 ) = ( SrcVA + Size );
JUNK_CODE_ONE
*(WORD*)( DetourVA + Size + 5 ) = 0xE0FF;
JUNK_CODE_ONE

*(BYTE*)( SrcVA + 0 ) = 0xB8;
JUNK_CODE_ONE
*(DWORD*)( SrcVA + 1 ) = ( DstVA );
JUNK_CODE_ONE
*(WORD*)( SrcVA + 5 ) = 0xE0FF;
JUNK_CODE_ONE

VirtualProtectEx(GetCurrentProcess(),(void*)SrcVA, Size, dwProtect, &dwProtect );
JUNK_CODE_ONE
VirtualProtectEx(GetCurrentProcess(),(void*)Detour VA, Size + SIZEOF_MOVEAX_JMPEAX, PAGE_EXECUTE_READ, &dwProtect);
JUNK_CODE_ONE
return DetourVA;
}
}
return 0;
}
DrawIndexedPrimitve Detour funktioniert ( Bei Mir )
02/11/2012 13:50 __BuRn3R#6403
Quote:
Originally Posted by Yazzn (: View Post
@burner:
6 klammern auf 8 klammern zu?
if-statements außerhalb von funktionen?
Ich hab dabei nicht richtig nachgedacht weil sein ReHook und sein myPresent zusammen sind..
02/11/2012 13:53 TheOwnerxX.:#6404
Quote:
Originally Posted by _BuRn3R_ View Post
Ich hab dabei nicht richtig nachgedacht weil sein ReHook und sein myPresent zusammen sind..
Ya its no problem..
you may can help me now ? or via TV?
02/11/2012 14:12 __BuRn3R#6405
Quote:
Originally Posted by TheOwnerxX.: View Post
Ya its no problem..
you may can help me now ? or via TV?
HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm pushad;

CreateACrossHair(CH_Crosshair,pDevice);
set_menu->InitFont(pDevice);

set_menu->Init();
set_menu->Menu(pDevice);
set_menu->DestroyFont();

// Here ESP Code

} // Close myPresent

HRESULT CALLBACK HooK(VOID FAR)
{
DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0)
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
}
_asm popad;

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

Now its right ;)