hi i'm chinese hacker ,i need guys some help.

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

mmzzam521

Newbie
Silenced
Jun 13, 2014
5
101
0
e..recently,i research some ue3's game , i use inline hook(change adress-5 to jmp),but many game begin checking this hook ,so i need other hook
can somebady help me?

buy the way ,i don't no how to make 2d box and ain bot without adress ,i saw my friends hook DrawIndexedPrimitive this Function to Obtain adress and Draw 2dbox

can some help me about 1.hook 2.2d box

thank you very much~
 

Nether

The Angel Of Verdun
Meme Tier VIP
Dank Tier Donator
Dec 11, 2013
293
3,738
16
e..recently,i research some ue3's game , i use inline hook(change adress-5 to jmp),but many game begin checking this hook ,so i need other hook
can somebady help me?

buy the way ,i don't no how to make 2d box and ain bot without adress ,i saw my friends hook DrawIndexedPrimitive this Function to Obtain adress and Draw 2dbox

can some help me about 1.hook 2.2d box

thank you very much~
if you look in the tutorial pages here you will find that fleep has used a DrawIndexedPrimitive() hook in a few of his hacks and shows you other ways of hooking in C++ .

https://guidedhacking.com/forums/gh-hack-video-tutorials.426/
 

mmzzam521

Newbie
Silenced
Jun 13, 2014
5
101
0
thanks. i find a new hook named vmt hook, i have a code ,but it doesn't works ,can you help me?
C++:
#include <d3d9.h>

typedef IDirect3D9* (STDMETHODCALLTYPE *DIRECT3DCREATE9)(UINT);
typedef HRESULT(WINAPI* tPresent)(LPDIRECT3DDEVICE9 pDevice, CONST RECT*, CONST RECT*, HWND, LPVOID);
typedef HRESULT(WINAPI* tReset)(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters);
typedef DWORD   (STDMETHODCALLTYPE *GETPROCESSHEAPS)(DWORD, PHANDLE);

static DWORD vtableFrag9[] = { 0, 0, 0, 0 };
static DWORD* presentPtr = 0;
static DWORD* resetPtr = 0;
static DWORD offsetPresent = 0;
static DWORD offsetReset = 0;
static tPresent g_D3D9_Present = 0;
static tReset g_D3D9_Reset = 0;
LPDIRECT3DDEVICE9 npDevice;

bool indicator = 0;

void DrawIndicator(LPVOID self)
{
	IDirect3DDevice9* dev = (IDirect3DDevice9*)self;
	dev->BeginScene();
	D3DRECT rec = { 10, 10, 30, 30 };
	D3DCOLOR color = 0;
	if(indicator)
	{
		color = D3DCOLOR_XRGB(0, 255, 0);
	}
	else
	{
		color = D3DCOLOR_XRGB(255, 0, 0);
	}
	dev->Clear(1, &rec, D3DCLEAR_TARGET, color, 1.0f, 0);
	dev->EndScene();
}

HRESULT WINAPI hkPresent(LPDIRECT3DDEVICE9 pDevice, CONST RECT* src, CONST RECT* dest, HWND hWnd, LPVOID unused)
{      
	while(!npDevice)
	{
		npDevice = pDevice;
	}
	DrawIndicator(pDevice);
	return g_D3D9_Present(pDevice, src, dest, hWnd, unused);
}

HRESULT WINAPI hkReset(LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters)
{
	return g_D3D9_Reset(pDevice, pPresentationParameters);
}

BOOL SearchHeap(HANDLE heap)
{
	int vtableLenBytes = sizeof(DWORD)*4;
	PROCESS_HEAP_ENTRY mem;
	mem.lpData = 0;
	while(HeapWalk(heap, &mem))
	{
		if(mem.wFlags == PROCESS_HEAP_UNCOMMITTED_RANGE) continue;
		DWORD* p = (DWORD*)mem.lpData;
		for(int i = 0; i < mem.cbData/sizeof(DWORD); i++)
		{
			if(memcmp(p, vtableFrag9, vtableLenBytes) == 0)
			{
				presentPtr = p + 11;
				resetPtr = p + 10;
				offsetPresent = *presentPtr;
				offsetReset = *resetPtr;
				g_D3D9_Present = (tPresent)((DWORD*)offsetPresent);
				g_D3D9_Reset = (tReset)((DWORD*)offsetReset);
				break;
			}
			p++;
		}
		if(presentPtr != 0) break;
	}
	return(presentPtr != 0);
}

void CheckAndHookPresent9()
{
	if(presentPtr != 0 && (*presentPtr) == (DWORD)hkPresent) return;
	HANDLE heap = 0;
	HMODULE hKern = GetModuleHandleA("kernel32.dll");      
	GETPROCESSHEAPS getProcessHeaps = (GETPROCESSHEAPS)GetProcAddress(hKern, "GetProcessHeaps");
	if(getProcessHeaps != 0)
	{
		HANDLE heaps[1000];
		int numHeaps = (getProcessHeaps)(1000, heaps);
		for(int k = 0; k < numHeaps; k++)
		{
			heap = heaps[k];
			if(SearchHeap(heap)) break;
		}
	}
	else
	{
		heap = GetProcessHeap();
		SearchHeap(heap);
	}
	HeapLock(heap);
	if(presentPtr != 0)
	{
		(*presentPtr) = (DWORD)hkPresent;              
	}
	if(resetPtr != 0)
	{
		(*resetPtr) = (DWORD)hkReset;
	}
	HeapUnlock(heap);
}

void CopyVMT9(DWORD* vtableFrag)
{      
	HWND hWnd = CreateWindowA("STATIC","dummy", 0, 0, 0, 0, 0, 0, 0, 0, 0);
	HMODULE hD3D9 = GetModuleHandleA("d3d9");
	DIRECT3DCREATE9 Direct3DCreate9 = (DIRECT3DCREATE9)GetProcAddress(hD3D9, "Direct3DCreate9");
	IDirect3D9* d3d = Direct3DCreate9(D3D_SDK_VERSION);
	D3DDISPLAYMODE d3ddm;
	d3d->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm);
	D3DPRESENT_PARAMETERS d3dpp;
	ZeroMemory(&d3dpp, sizeof(d3dpp));
	d3dpp.Windowed = 1;
	d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
	IDirect3DDevice9* d3dDevice = 0;
	d3d->CreateDevice(0, D3DDEVTYPE_HAL, hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &d3dDevice);    
	DWORD* vtablePtr = (DWORD*)(*((DWORD*)d3dDevice));
	for(int i = 0; i < 4; i++)
	{
		vtableFrag[i] = vtablePtr[i + 6];
	}
	d3dDevice->Release();
	d3d->Release();
	DestroyWindow(hWnd);
}

PBYTE HookVTableFunction(PDWORD* dwVTable, PBYTE dwHook, INT Index)
{
	DWORD dwOld = 0;
	VirtualProtect((void*)((*dwVTable) + (Index*4)), 4, PAGE_EXECUTE_READWRITE, &dwOld);
	PBYTE pOrig = ((PBYTE)(*dwVTable)[Index]);
	(*dwVTable)[Index] = (DWORD)dwHook;
	VirtualProtect((void*)((*dwVTable) + (Index*4)), 4, dwOld, &dwOld);
	return pOrig;
}
typedef HRESULT(WINAPI* DrawIndexedPrimitive_)(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount);
DrawIndexedPrimitive_ pDrawIndexedPrimitive;
LPDIRECT3DTEXTURE9 texB;
LPDIRECT3DTEXTURE9 texF;
HRESULT WINAPI nDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex,UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
{  
MessageBeep(64);

	return pDrawIndexedPrimitive(pDevice,Type, BaseVertexIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);	
}
bool hooked = 0;
DWORD WINAPI TF(LPVOID lpParam)
{
	CopyVMT9(vtableFrag9);
	CheckAndHookPresent9();
	while(!npDevice && !hooked)
	{
		Sleep(50);
	}
	hooked = !hooked;
	while(1)
	{
		Sleep(100);
		HookVTableFunction((PDWORD*)npDevice, (PBYTE)nDrawIndexedPrimitive, 82);
		//HookVTableFunction((PDWORD*)npDevice, (PBYTE)hkPresent, 17);
	}    
	return 0;
}

DWORD WINAPI KeyboardHook(LPVOID lpParam)
{
	while(1)
	{
		if(GetAsyncKeyState(VK_F1))    
		{
			indicator = !indicator;
			Beep(500,200);
		}
		Sleep(100);
	}      
	return 0;
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
	switch (ul_reason_for_call)    
	{
	case DLL_PROCESS_ATTACH:
		{
			CreateThread(0, 0, &TF, 0, 0, 0);
			CreateThread(0, 0, &KeyboardHook, 0, 0, 0);
		}
	case DLL_PROCESS_DETACH:
		break;
	}
	return 1;
}
extern "C" int _declspec(dllexport)HOOKFONK()
{
	return 0;
}
 
Last edited by a moderator:

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
wait.
'UE3's game' -> Unity Engine based game ? if yes, no hooks are needed.
And vmt hooks or virtual table hooks are dumbass easy for d3d9 lol.

So first of all you gonna tell us which game it is and if its a Unitiy Engine game or a game based on d3d9 Im able to help you.
 

TheUnknown

Newbie
Full Member
Nobleman
Feb 19, 2013
51
418
0
Stopped read here:
hi i'm chinese hacker ,i need guys some help.
Wow! Please don't hack my computer...


Okay, I don't know how can we help you. Which game is it?
 

mmzzam521

Newbie
Silenced
Jun 13, 2014
5
101
0
wait.
'UE3's game' -> Unity Engine based game ? if yes, no hooks are needed.
And vmt hooks or virtual table hooks are dumbass easy for d3d9 lol.

So first of all you gonna tell us which game it is and if its a Unitiy Engine game or a game based on d3d9 Im able to help you.
thanks, and i want to hook crossfire dip and endsence ..can you give me some code.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods