Results 1 to 4 of 4
  1. #1
    WhiteHat PH's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Some Where I Belong
    Posts
    1,350
    Reputation
    25
    Thanks
    3,097
    My Mood
    Aggressive

    ElexTro Base How to add D3D Hack

    How add D3D Hack Like Crosshair,Chams ang Wall Hack in ElexTro Base????
    Thank's n Advance....


    int::===================================

    //Folder
    int folder1 =0;
    int folder2 =0;

    //Items
    int CH_SP =0;
    int CH_NFD =0;
    int CH_NoRecoil =0;
    int CH_Premium =0;
    int CH_Level =0;








    Hack::===================================

    #include "Addies.h"

    void Hacks()
    {
    DWORD Player = *(DWORD*) ADR_PlayerPointer;
    DWORD Server = *(DWORD*) ADR_ServerPointer;

    if (Player != 0)
    {
    //PlayerHacks

    if (CH_SP==1)
    {
    *(int*)(Player+ADR_STAM5) = 1;
    }

    if(CH_NFD==1)
    {
    *(float*)(Player+OFS_NFD) = -20000;
    }

    if(CH_NoRecoil==1)
    {
    *(float*)(Player+OFS_NoRecoil1+OFS_NoRecoil2+OFS_N oRecoil3) = 0;
    }
    //PlayerHacks ends

    }


    if (Server != 0)
    {
    //ServerHacks

    if(CH_Premium==1)
    {
    DWORD Player = *(DWORD*)ADR_ServerPointer;
    if(Player != 0)
    {
    *(long*)(Player+OFS_Premium1) = 3, 10;
    *(float*)(Player+OFS_Premium2) = 1337;
    }}}

    if(CH_Level == 1)
    {
    DWORD Player = *(DWORD*)ADR_ServerPointer;
    if(Player != 0)
    {
    *(long*)(Player+OFS_LEVEL) = 1400000;
    }
    //ServerHacks ends
    }

    }









    Addies::=======================================

    //Pointer
    #define ADR_PlayerPointer 0x00AE356C
    #define ADR_ServerPointer 0x009DD0A8





    [HTML]How can i add source of D3D Hack Here???[/HTML]

    Base::========================================

    #include <d3d9.h>
    #include <d3dx9.h>
    #include "Quelle.h"
    #include "color.h"
    #include "detour.h"
    #include "int.h"
    #include "Hacks.h"
    #include "d3dmenu.h"
    #pragma comment(lib, "d3d9.lib")
    #pragma comment(lib, "D3DX9.LIB")

    D3D9Menu *Bl4ck = NULL;
    CD3DFont* pFont;

    bool Color = true;
    bool Create;

    char *folder[] = {"[+]", "[-]"};
    char *onoff[] = {"[OFF]", "[ON]"};
    char *crosshair[]= {"[OFF]", "[RED]", "[BLUE]"};
    char *chams[]= {"[OFF]", "[RED]", "[BLUE], "[GREEN]"};

    void RebuildMenu(void)
    {
    Bl4ck->AddFolder("D3D Hack", folder, &folder1, 2);
    if (folder1)
    {
    Bl4ck->AddItem (" CrossHair",crosshair, &CH_<HERE>, 2);
    Bl4ck->AddItem (" Chams",chams, &CH_<HERE>, 2);
    Bl4ck->AddItem (" Wall Hack",onoff, &CH_<HERE>, 2);
    }
    Bl4ck->AddFolder("Player Hacks", folder, &folder1, 2);
    if (folder1)
    {
    Bl4ck->AddItem (" Stamina",onoff, &CH_SP, 2);
    Bl4ck->AddItem (" No Fall Damage",onoff, &CH_NFD, 2);
    Bl4ck->AddItem (" No Recoil",onoff, &CH_NoRecoil, 2);
    }
    Bl4ck->AddFolder("Server Hacks", folder, &folder2, 2);
    if (folder1)
    {
    Bl4ck->AddItem (" Premium Visual",onoff, &CH_Premium, 2);
    Bl4ck->AddItem (" Level Visual",onoff, &CH_Level, 2);
    }
    }

    typedef HRESULT ( WINAPI* oPresent ) ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion);
    oPresent pPresent;

    HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
    {
    pFont = new CD3DFont("Arial", 8, D3DFONT_BOLD);
    pFont->InitDeviceObjects(pDevice);
    pFont->RestoreDeviceObjects();

    if(Bl4ck == NULL)
    {
    Bl4ck = new D3D9Menu("Coderz Simple D3D");
    }else{
    Bl4ck->MenuShow(12,10,pFont,pDevice);
    if(Bl4ck->Mmax==0) RebuildMenu();
    Bl4ck->MenuNav();

    }

    Hacks();

    delete pFont;

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

    DWORD dwDrawindexedprimitive_ret;

    HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, UINT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
    {
    LPDIRECT3DVERTEXBUFFER9 Stream_Data;
    UINT Offset = 0;
    UINT m_Stride = 0;


    if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &m_Stride) == D3D_OK)
    Stream_Data->Release();

    //D3D Funcs
    __asm
    {
    popad
    jmp dwDrawindexedprimitive_ret;

    }
    }

    int D3D(void)
    {
    HINSTANCE hD3D;
    DWORD vTable[105];
    hD3D=0;
    do {
    hD3D = GetModuleHandle("d3d9.dll");
    if (!hD3D) Sleep(10);
    } while(!hD3D);

    if (D3Ddiscover((void *)&vTable[0],420)==0) return 0;
    {

    pPresent = (oPresent)DetourCreate((DWORD)vTable[17], (DWORD)myPresent,12);


    Sleep(100);
    }

    return 0;
    }


    BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    if (dwReason == DLL_PROCESS_ATTACH)
    { HideModule(hDll);
    EraseHeaders(hDll);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D, NULL, NULL, NULL);
    }
    return TRUE;
    }






    When Im gone dont forget me cause I will come back someday.



    Youtube Channel


     


  2. #2
    [W]eb[C]ombat's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    return TRUE;
    Posts
    390
    Reputation
    10
    Thanks
    1,202
    My Mood
    Sleepy
    Were to paste?

    Code:
    if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &m_Stride) == D3D_OK)
    Stream_Data->Release();
    
    Put it here
    __asm
    {
    popad
    jmp dwDrawindexedprimitive_ret;
    
    }
    }


  3. #3
    WhiteHat PH's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Some Where I Belong
    Posts
    1,350
    Reputation
    25
    Thanks
    3,097
    My Mood
    Aggressive
    @[W]eb[C]ombat Thank u Sir.... the prob. is how code D3D Hack Chams,CrossHair and WallHack
    Hope anyone can help me...






    When Im gone dont forget me cause I will come back someday.



    Youtube Channel


     


  4. #4
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Quote Originally Posted by Coderz View Post
    @[W]eb[C]ombat Thank u Sir.... the prob. is how code D3D Hack Chams,CrossHair and WallHack
    Hope anyone can help me...
    You wont, unless you can get your hooking undetected.
    This hack will be detected, i can guartantie you that!
    Also the size of your detouring is invalid, 12? how could that be? E9 00 00 00 00 00 00 00 00 00 00 00 <- that would what you write, since the normal E9 opcode only uses 5 bytes: E9 00 00 00 00
    To understand it you should play around with the functions a little bit, then test it each time to see what happens.
    Don't be scared to mess it up, if you have an error just look at what it could be, if it did not work press CTRL - Z
    Last edited by AeroMan; 04-20-2013 at 11:35 AM.

Similar Threads

  1. [Help Request] How to add memory hacks on DIP and Present base?
    By Major_Jake in forum Crossfire Coding Help & Discussion
    Replies: 2
    Last Post: 09-14-2012, 11:28 PM
  2. How make my d3d hack full undetected
    By xKirbey in forum Combat Arms Coding Help & Discussion
    Replies: 25
    Last Post: 09-04-2011, 02:01 PM
  3. How To Create D3D HACK [PB] ??
    By marvelt in forum C++/C Programming
    Replies: 7
    Last Post: 02-24-2011, 07:07 PM
  4. How to add Winchester hack to my hack ?? (VB6)
    By floris12345! in forum Visual Basic Programming
    Replies: 7
    Last Post: 01-04-2008, 06:19 AM