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 Hack Coding / Programming / Source Code › DIP midfunction hook

DIP midfunction hook

Posts 1–15 of 18 · Page 1 of 2
Xlilzoosk8rX
Xlilzoosk8rX
DIP midfunction hook
NOTE: This is not my work just found it and thought i would share with MPGH.
Code:
DWORD dwDrawIndexedPrimitive_EngineCall = 0x006A3AEA;
DWORD dwDrawIndexedPrimitive_CaveJumpBack = dwDrawIndexedPrimitive_EngineCall + 0x8;

Code:
__declspec(naked) void __cdecl DrawIndexedPrimitive_CodeCave()
{
    static LPDIRECT3DDEVICE9 pDevice;
    static D3DPRIMITIVETYPE PrimType = D3DPT_TRIANGLELIST; //constant parameter 4
    static UINT MinIndex, nNumVertices, StartIndex, nPrimitiveCount;
    static INT BaseVertexIndex;
    
    __asm
    {
        MOV ECX, DWORD PTR DS:[EAX]
        MOV pDevice, EAX; 
        MOV EDX, DWORD PTR DS:[ECX+0x148]
        PUSHAD
        MOV ECX, [EBP + 0x18]
        MOV BaseVertexIndex, ECX 
        MOV ECX, [EBP + 0x8]
        MOV MinIndex, ECX      
        MOV ECX, [EBP + 0x10]
        MOV nNumVertices, ECX  
        MOV ECX, [EBP + 0xC]
        MOV StartIndex, ECX    
        MOV ECX, [EBP + 0x14]
        MOV nPrimitiveCount, ECX
    }


    //Second DIP call
    pDevice->DrawIndexedPrimitive(PrimType, BaseVertexIndex,  MinIndex, nNumVertices, StartIndex, nPrimitiveCount);


    __asm
    {
        POPAD
        JMP dwDrawIndexedPrimitive_CaveJumpBack;
    }
}
hook when in-game

Code:
DWORD CALLBACK DIPHook(LPVOID)
{
    while(1)
    {    
        if(*(int*)0x377B11B0 == 1)
            DetourCreate((PBYTE)dwDrawIndexedPrimitive_EngineCall, (PBYTE)DrawIndexedPrimitive_CodeCave, 8);
        else
            memcpy((void*)dwDrawIndexedPrimitive_EngineCall, (PBYTE)"\x8B\x08\x8B\x91\x48\x01\x00\x00", 8);

        Sleep(500);
    }

    return 0;
}
create thread when injected:

Code:
CreateThread(NULL, NULL, DIPHook, NULL, NULL, NULL);
please correct me if i credited wrwing person(s)
Credit to:
CodeDemon
Crash
donoob
fatboy88
Gellin
Marko
mmbob
NOOB
Scimmy
whit
i think thats everyone now
(Thanks @[POWER]
#1 · edited 15y ago · 15y ago
[P
[POWER]
Credits

  • CodeDemon
  • Crash
  • donoob
  • fatboy88
  • Gellin
  • Marko
  • mmbob
  • NOOB
  • Scimmy
  • whit
#2 · 15y ago
supercarz1991
supercarz1991
quit leeching shit you noob
#3 · 15y ago
Xlilzoosk8rX
Xlilzoosk8rX
its not leeched you dick i gave credits
#4 · 15y ago
SU
supascimmy
obvious leech is obvious from one of my threads
#5 · 15y ago
freedompeace
freedompeace
You forgot the code to `DetourCreate()`..
#6 · 15y ago
topblast
topblast
Quote Originally Posted by freedompeace View Post
You forgot the code to `DetourCreate()`..
Changes addy to {0xE9, Your Function}
Change Return to {Replaced Bytes , 0xE9 , Addy +length}
#7 · 15y ago
matypatty
matypatty
you're a stupid dumb ass. I want to -rep you more.
#8 · 15y ago
Tonylx4
Tonylx4
He said he didn't make it so why are you hating?
#9 · 15y ago
FU
FukoBackup
Quote Originally Posted by Tonylx4 View Post
He said he didn't make it so why are you hating?
Why the fuck are you begging for minion in your signature
#10 · 15y ago
freedompeace
freedompeace
Quote Originally Posted by topblast View Post


Changes addy to {0xE9, Your Function}
Change Return to {Replaced Bytes , 0xE9 , Addy +length}
Regardless, if a code sample is going to be posted, all the code should be posted - leaving out functions that sample code depends on is counteracting the entire idea of a code snippet - this isn't some trivial 2 line function (what you said in the quote doesn't is ambiguous and has no real helpful value, as, again, it is incomplete -- length of what? addy of what?).
#11 · 15y ago
matypatty
matypatty
I still hate this kid.... Why leach this...
#12 · 15y ago
-Dimensions-
-Dimensions-
Leeched, this should be removed. Even if you did give credits, it was originally found on another forum and therefore its leeched.
#13 · 15y ago
CoderNever
CoderNever
The credits for this is only

donoob - Posting his CA DIP Mid Function Other Players.
Crash - Finding GameStatus

It doesn't take all the coders listed to add parems to Donoobs' code.
#14 · 15y ago
[P
[POWER]
Quote Originally Posted by CoderNever View Post
The credits for this is only

donoob - Posting his CA DIP Mid Function Other Players.
Crash - Finding GameStatus

It doesn't take all the coders listed to add parems to Donoobs' code.
scimmy can credit whoever he wants to credit.
#15 · 15y ago
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Similar Threads

  • My old Midfunction HookBy Stephen in Combat Arms Hack Coding / Programming / Source Code
    30Last post 15y ago
  • MidFunction Hook new.By lucifereviluser in CrossFire Hack Coding / Programming / Source Code
    4Last post 14y ago
  • Hook Function for DIP?By ipwnuuaal5 in Combat Arms Hack Coding / Programming / Source Code
    12Last post 16y ago
  • DIP Hook.By Crash in Combat Arms Hack Coding / Programming / Source Code
    39Last post 16y ago
  • DIP HookBy scimmyboy in Combat Arms Coding Help & Discussion
    68Last post 15y ago

Tags for this Thread

None