Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Brazil Hacks › Combat Arms BR Hack Coding/Source Code › Present Hook + Modo Patterno

LightbulbPresent Hook + Modo Patterno

Posts 1–15 of 17 · Page 1 of 2
XA
XarutoUsoCrack1
Present Hook + Modo Patterno
Eu vo solta tudo de agora em Diante.

c_D3D.cpp

Code:
#include <Windows.h>
#include <d3d9.h>

#pragma comment(lib, "d3d9.lib")

#include "p_D3D.h"

DWORD dwLTClientEXE = NULL;
DWORD dwPresent_Ret = NULL;

void _cdecl PushToConsole ( const char * command )
{
	__asm
	{
		PUSH command
		MOV EAX, dwLTClientEXE 
		CALL EAX
		ADD ESP, 0x4
	}
}

VOID WINAPI hkPresent(LPDIRECT3DDEVICE9 pDevice, const RECT *a, const RECT *b, HWND c, const RGNDATA *d)
{
	DWORD EngineAddr = (DWORD)GetModuleHandle("Engine.exe");

	while( dwLTClientEXE == NULL )
	{
		dwLTClientEXE = FindPattern( EngineAddr, 0x328200, (BYTE *)PATT_CONSOLE, MASK_CONSOLE );

		if(dwLTClientEXE > 0)
			dwLTClientEXE += 0x47;
	}

     PushToConsole( ChamsLig ); 
}

_declspec(naked) void PresentHook()
{
    _asm
	{
        MOV EDI,DWORD PTR SS:[EBP+0x8]
        TEST EDI,EDI
            PUSHFD
            PUSHAD    
            PUSH [EBP+0x18]// D        
        PUSH [EBP+0x14]// C    
        PUSH [EBP+0x10]// B        
        PUSH [EBP+0x0C]// A
        PUSH [EBP+0x08]// Device        
        CALL hkPresent
        POPAD
            POPFD
            jmp dwPresent_Ret
    }
}

VOID CreateDevice(DWORD *dwVTable)
{
    LPDIRECT3D9 pD3d9;
    LPDIRECT3DDEVICE9 pD3DDevice;
    pD3d9 = Direct3DCreate9(D3D_SDK_VERSION);
    if(pD3d9 == NULL)
        return;
    D3DPRESENT_PARAMETERS pPresentParms;
    ZeroMemory(&pPresentParms, sizeof(pPresentParms));
    pPresentParms.Windowed = TRUE;
    pPresentParms.BackBufferFormat = D3DFMT_UNKNOWN;
    pPresentParms.SwapEffect = D3DSWAPEFFECT_DISCARD;
    if(FAILED(pD3d9->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, GetDesktopWindow(), D3DCREATE_SOFTWARE_VERTEXPROCESSING, &pPresentParms, &pD3DDevice)))
        return;
    DWORD *dwTable = (DWORD *)pD3DDevice;
    dwTable = (DWORD *) dwTable[0];
    dwVTable[1] = dwTable[17];//Present
}

DWORD WINAPI Hook(LPVOID lpArgs)
{
    while( GetModuleHandle("d3d9.dll") == NULL)
        Sleep(250);

    DWORD dwVtbl[3] = {0};

    CreateDevice(dwVtbl);

    DWORD PSHOOK = dwVtbl[1] + 0x7;
    dwPresent_Ret = PSHOOK + 0x5; 

JumpFunction( (BYTE *)PSHOOK, (BYTE *)&PresentHook, 5);

    return 0;
}  

BOOL APIENTRY DllMain ( HMODULE hDll, DWORD dwReason, LPVOID )
{
	DisableThreadLibraryCalls(hDll);

	if( dwReason == 1 )
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE) Hook, 0, 0, 0);

	return 1;
}
p_D3D.h

Code:
#define PATT_CONSOLE "\xC7\x5\x00\x00\x00\x00\x00\x00\x00\x00\xC7\x5\x00\x00\x00\x00\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x83\xC4\x00\x68\x00\x00\x00\x00\xB9\x00\x00\x00\x00\xE8\x00\x00\x00\x00\xC3\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\x68\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x59\xC3\xCC\xCC\xCC\xCC\x8B\x44\x24\x00"
#define MASK_CONSOLE "xx????????xx????????x????xx?x????x????x????xxxxxxxxxxxxx????x????xxxxxxxxx"

void *JumpFunction(BYTE *src, const BYTE *dst, const int len)
{
	BYTE *jmp = (BYTE*)malloc(len+5);
	DWORD dwBack;

	VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack);
	memcpy(jmp, src, len);	
	jmp += len;
	jmp[0] = 0xE9;
	*(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
	src[0] = 0xE9;
	*(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
	for (int i=5; i<len; i++)  src[i]=0x90;
	VirtualProtect(src, len, dwBack, &dwBack);
	return (jmp-len);
}

bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
	for(;*szMask;++szMask,++pData,++bMask)
		if(*szMask=='x' && *pData!=*bMask)  
			return 0;
	return (*szMask) == NULL;
}

DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
	for(DWORD i=0; i<dwLen; i++)
		if (bCompare((BYTE*)(dwAddress+i),bMask,szMask))  
			return (DWORD)(dwAddress+i);
	return 0;
}

#define ChamsLig "SkelModelStencil 1"
#define ChamsDes "SkelModelStencil 0"
Creditos:

Gellin // Sig Scan
sysdump // neguin da UC que posto o Present Hook
#1 · 13y ago
pDevice
pDevice
Tem coisas alem do present
#2 · 13y ago
Coder.Anonymous
Coder.Anonymous
Tenho Isso e Muito Mais
#3 · 13y ago
Templar
Templar
nossa, os coders se revelam
#4 · 13y ago
KS
kssiobr
Já está ficando sem graça isso, ninguém está ligando com mais nada...
Sempre foi tão bom quando tinha aquela rivalidade de quem fazia o melhor hack e com visual melhor e tals, agora está ai tudo postado...
Bem que já estava né, Bases do Gellin, MMBOB, Matpatty e entre outras, mas poucos que sabiam atualizar e retirar funções, isso já era o bastante, agora está tudo na mão sem fazer esforço só pegar as declarações corretas e dar um Ctrl+c e v e pronto adicionado na base, como sou sincero vou criar um hack bem legal com todas essa bases postadas, só por diversão, porque segredo quase não tem mais é só ter criatividade no D3D...
#5 · 13y ago
~S
~Sniper
Quote Originally Posted by kssiobr View Post
Já está ficando sem graça isso, ninguém está ligando com mais nada...
Sempre foi tão bom quando tinha aquela rivalidade de quem fazia o melhor hack e com visual melhor e tals, agora está ai tudo postado...
Bem que já estava né, Bases do Gellin, MMBOB, Matpatty e entre outras, mas poucos que sabiam atualizar e retirar funções, isso já era o bastante, agora está tudo na mão sem fazer esforço só pegar as declarações corretas e dar um Ctrl+c e v e pronto adicionado na base, como sou sincero vou criar um hack bem legal com todas essa bases postadas, só por diversão, porque segredo quase não tem mais é só ter criatividade no D3D...
kkkkkkkkkkkkkkk' vei faz um bom tempo que não tem graça os caras não ta nem ai , os caras não tem criatividade para as funções kk' então por min postar ou não to nem ai
#6 · 13y ago
KS
kssiobr
Quote Originally Posted by ~Sniper View Post


os caras não tem criatividade para as funções kk'
Mano agora você falou tudo...Sem comentários....
#7 · 13y ago
Jaspion
Jaspion
Vocês num te jeito mesmo né? Não vou mais perde a cabeça com esse game não, vou arrumar outro FPS, mais não posso desperdiçar essa oportunidade já que está soltando tudo aproveita posta umas fotos de sua irmã despida.

Creio que receberá mais thanks do que nunca.
#8 · 13y ago
M.Balotelli
M.Balotelli
"soltar tudo" soltar o que?? os codes que pego na UC? Latino da vida
#9 · 13y ago
~S
~Sniper
Quote Originally Posted by M.Balotelli View Post
"soltar tudo" soltar o que?? os codes que pego na UC? Latino da vida
nem são todos que fazem isso sabia ? kk'


---------- Post added at 02:28 PM ---------- Previous post was at 02:27 PM ----------

Quote Originally Posted by kssiobr View Post

Mano agora você falou tudo...Sem comentários....
Tankyou , não sou um bom programador mais criatividade não falta HAHA'
#10 · 13y ago
M.Balotelli
M.Balotelli
Quote Originally Posted by ~Sniper View Post
nem são todos que fazem isso sabia ? kk'
ele mesmo falou.

Quote Originally Posted by XarutoUsoCrack1 View Post
sysdump // neguin da UC que posto o Present Hook
#11 · 13y ago
luizimloko
luizimloko
quem são os familiares desse código por parte patterno ?
#12 · 13y ago
KS
kssiobr
Quote Originally Posted by luizimloko View Post
quem são os familiares desse código por parte patterno ?
kkkkkkkk
Rachei agora.....
#13 · 13y ago
'SmoLL
'SmoLL
Quote Originally Posted by XarutoUsoCrack1 View Post
Eu vo solta tudo de agora em Diante.
....
#14 · 13y ago
XA
XarutoUsoCrack1
@luizimloko Conselho de Amigo: Pare de Fumar.

Eu peguei sim os codes da UC, dei os creditos, quer um biscoito tambem ? Eu postei isso aki pq ngm posto antes, postei tbm o modo patterno, agora nao precisa fikar att o Endereço LTClientEXE
#15 · 13y ago
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

  • Information about hooking present / resetBy PgSQL in CrossFire Europe Hack Source Code
    0Last post 14y ago
  • Hook Present EngineBy Avene in CrossFire Hack Coding / Programming / Source Code
    16Last post 13y ago
  • Hook Present Engine 6/9/2012By Avene in CrossFire Hack Coding / Programming / Source Code
    14Last post 13y ago
  • Late birthday presentBy Dave84311 in General
    6Last post 16y ago
  • ~post Your Freakin Christmas Presents~By AN1MAL in General
    48Last post 19y ago

Tags for this Thread

None