Results 1 to 7 of 7
  1. #1
    DJ.KIMBERLEY's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    48
    Reputation
    10
    Thanks
    0

    help! help me to create a dll pls i give the source code

    Code:
    //==================================================  ===================================
    
    
    #include <windows.h>
    #include <conio.h>
    
    
    #include <d3d9.h>
    #pragma comment(lib, "d3d9.lib")
    
    
    #include <d3dx9.h>
    #pragma comment(lib, "d3dx9.lib")
    
    
    typedef HRESULT(WINAPI * DrawIPrim)
    (LPDIRECT3DDEVICE9, D3DPRIMITIVETYPE,
    INT, UINT, UINT, UINT, UINT);
    
    
    void Jump(DWORD Address, DWORD Your_Detour);
    DWORD New = NULL;
    
    
    LPDIRECT3DDEVICE9 m_pD3Ddev;
    LPDIRECT3D9 pD3D;
    DrawIPrim pDrawIPrim = NULL;
    
    
    DWORD dwEndscene_hook = NULL;
    DWORD dwEndscene_ret = NULL;
    DWORD dwDIP_hook = NULL;
    DWORD dwDIP_ret = NULL;
    DWORD dwReset_hook = NULL;
    DWORD dwReset_ret = NULL;
    DWORD bJump = NULL;
    
    
    D3DVIEWPORT9 Viewport;
    D3DRECT RectA;
    D3DRECT RectB;
    DWORD CrossHairColor = D3DCOLOR_ARGB(255, 20, 255, 20);
    DWORD ScreenCenterX = NULL;
    DWORD ScreenCenterY = NULL;
    LPD3DXFONT pFont = NULL;
    HMODULE D3D9 = NULL;
    UINT fHeight = 16;
    RECT FontRect;
    
    
    D3DPRESENT_PARAMETERS D3D_PP = { 0 };
    IDirect3D9 * (WINAPI *oDirect3DCreate9)(UINT SDKVersion);
    //==================================================  ===================================
    
    
    VOID WINAPI MY_MAIN_ENDSCENE(LPDIRECT3DDEVICE9 pDev)
    {
        pDev->GetViewport(&Viewport);
    
    
        ScreenCenterX = (Viewport.Width / 2);
        ScreenCenterY = (Viewport.Height / 2);
    
    
        RectA.x1 = ScreenCenterX - 40;
        RectA.x2 = ScreenCenterX + 40;
        RectA.y1 = ScreenCenterY;
        RectA.y2 = ScreenCenterY + 1;
        RectB.x1 = ScreenCenterX;
        RectB.x2 = ScreenCenterX + 1;
        RectB.y1 = ScreenCenterY - 40;
        RectB.y2 = ScreenCenterY + 40;
    
    
        pDev->Clear(1, &RectA, D3DCLEAR_TARGET, CrossHairColor, 0, 0);
        pDev->Clear(1, &RectB, D3DCLEAR_TARGET, CrossHairColor, 0, 0);
    
    
        if (pFont == NULL)
            D3DXCreateFontA(pDev, fHeight, 0, FW_BOLD, 0, TRUE,
            DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY,
            DEFAULT_PITCH | FF_DONTCARE, "Calibri", &pFont);
    
    
        if (pFont != NULL)
        {
            int istrlen = strlen("") * 3;
            FontRect.left = ScreenCenterX - istrlen;
            FontRect.top = Viewport.Height - fHeight - fHeight;
            FontRect.right = Viewport.Width;
            FontRect.bottom = Viewport.Height;
    
    
            pFont->DrawTextA(0, "", -1, &FontRect,
                DT_NOCLIP, D3DCOLOR_ARGB(255, 20, 128, 255));
        }
    }
    
    
    __declspec(naked) void MyEndscene()
    {
        __asm
        {
            MOV DWORD PTR SS : [EBP - 0x10], ESP
                MOV ESI, DWORD PTR SS : [EBP + 0x8]
                XOR EBX, EBX                        //replace patched code
                PUSHFD
                PUSHAD
                PUSH[EBP + 0x8]
                CALL MY_MAIN_ENDSCENE;
            POPAD
                POPFD
                CMP ESI, EBX                        //replace patched code
                jmp dwEndscene_ret;                //jump back to normal endscene
        }
    }
    
    
    VOID WINAPI MY_MAIN_DIP(LPDIRECT3DDEVICE9 pDev,
        D3DPRIMITIVETYPE Type, INT BIndex, UINT MIndex,
        UINT NVertices, UINT SIndex, UINT PCount)
    {
        LPDIRECT3DVERTEXBUFFER9 Stream_Data;
        UINT Offset = 0;
        UINT Stride = 0;
    
    
        if (pDev->GetStreamSource(0, &Stream_Data, &Offset, &Stride) == S_OK)
            Stream_Data->Release();
    
    
        if (Stride == 32)
        {
            bJump = TRUE;
            pDev->SetRenderState(D3DRS_ZENABLE, FALSE);
    
    
            pDrawIPrim(pDev, Type, BIndex, MIndex,
                NVertices, SIndex, PCount);
    
    
            pDev->SetRenderState(D3DRS_ZENABLE, TRUE);
            bJump = FALSE;
        }
    }
    
    
    __declspec(naked) void MyDIP()
    {
        __asm
        {
            MOV EDI, DWORD PTR SS : [EBP + 0x8]
                XOR EBX, EBX
                CMP EDI, EBX                        // replace patched code
                PUSHFD
                PUSHAD
                MOV EDX, [bJump]
                CMP EDX, 0x0
                JG DONE
                PUSH[EBP + 0x20]                    // Push arguments of DIP
                PUSH[EBP + 0x1C]
                PUSH[EBP + 0x18]
                PUSH[EBP + 0x14]
                PUSH[EBP + 0x10]
                PUSH[EBP + 0x0C]
                PUSH[EBP + 0x08]
                CALL MY_MAIN_DIP
            DONE : POPAD
                   POPFD
                   jmp dwDIP_ret;                    // jump back to normal DIP
        }
    }
    
    
    VOID WINAPI MY_MAIN_RESET()
    {
        if (pFont != NULL)
        if (pFont->Release() == S_OK)
            pFont = NULL;
    }
    
    
    __declspec(naked) void MyReset()
    {
        __asm
        {
            PUSHAD
                PUSHFD
                CALL MY_MAIN_RESET
                POPFD
                POPAD
                MOV ESI, DWORD PTR SS : [EBP - 0x08]
                MOV EDI, DWORD PTR SS : [EBP - 0x04]
                POP EBX
                JMP dwReset_ret
        }
    }
    
    
    //==================================================  ===================================
    
    
    VOID WINAPI GETD3D(VOID)
    {
        HWND ConsoleWindow = GetConsoleWindow();
        //ShowWindow( ConsoleWindow, SW_HIDE ); // Your Choice ...
    
    
        while (D3D9 == NULL)
        {
            D3D9 = GetModuleHandleA("d3d9.dll");
            Sleep(100);
        }
    
    
        *(PDWORD)&oDirect3DCreate9 = (DWORD)
            GetProcAddress(D3D9, "Direct3DCreate9");
    
    
        _cprintf("Direct3DCreate9\n");
        pD3D = oDirect3DCreate9(D3D_SDK_VERSION);
    
    
        D3D_PP.Windowed = TRUE;
        D3D_PP.SwapEffect = D3DSWAPEFFECT_DISCARD;
        D3D_PP.BackBufferFormat = D3DFMT_UNKNOWN;
    
    
        _cprintf("CreateDevice\n");
        pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
            ConsoleWindow, D3DCREATE_SOFTWARE_VERTEXPROCESSING,
            &D3D_PP, &m_pD3Ddev);
    
    
        PDWORD VTABLE = *(DWORD**)m_pD3Ddev;
    
    
        dwEndscene_hook = VTABLE[42] + 0x2A;
        dwEndscene_ret = dwEndscene_hook + 0x0A;
        dwDIP_hook = VTABLE[82] + 0x2D;
        dwDIP_ret = dwDIP_hook + 0x7;
        dwReset_hook = VTABLE[16] + 165;
        dwReset_ret = dwReset_hook + 0x7;
    
    
        *(PDWORD)&pDrawIPrim = (DWORD)VTABLE[82];
    
    
        _cprintf("");
        Jump((DWORD)dwEndscene_hook, (DWORD)MyEndscene);
        Jump((DWORD)dwDIP_hook, (DWORD)MyDIP);
        Jump((DWORD)dwReset_hook, (DWORD)MyReset);
    
    
        _cprintf("");
        Sleep(400);
        m_pD3Ddev->Release();
        pD3D->Release();
        FreeConsole();
    }
    
    
    //==================================================  ===================================
    
    
    BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
    {
        if (dwReason == DLL_PROCESS_ATTACH)
        {
            DisableThreadLibraryCalls(hModule);
            AllocConsole();
            _cprintf("Ready\n");
            CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)
                GETD3D, NULL, NULL, NULL);
        }
        return TRUE;
    }
    
    
    //==================================================  ===================================
    
    
    void Jump(DWORD Address, DWORD Your_Detour)
    {
        VirtualProtect((LPVOID)Address, 5,
            PAGE_EXECUTE_READWRITE, &New);
    
    
        *(PBYTE)Address = (BYTE)0xE9;
    
    
        *(PDWORD)(Address + 1) =
            (Your_Detour - Address - 5);
    
    
        VirtualProtect((LPVOID)Address, 5,
            New, &New);
    }
    
    
    //==================================================  ===================================


    here the source code
    Last edited by Mayion; 02-08-2014 at 10:08 AM.

  2. #2
    COD3RIN's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Posts
    5,309
    Reputation
    468
    Thanks
    28,779
    My Mood
    Angelic
    ok and where did you get this code
    ᚛C☢dℝin3᚜
    Love you.
    ~Kenshit13
    Quote Originally Posted by cheaterman26 View Post
    COD3RIN PUT A BACKDOOR ON HIS OWN CHEAT HE HACK MY COMPUTER AND MY STEAM, DON'T TRUST THIS GUYS !



  3. #3
    loped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Everywhere
    Posts
    306
    Reputation
    10
    Thanks
    258
    My Mood
    Lonely
    Quote Originally Posted by COD3RIN View Post
    ok and where did you get this code
    i know its from u,u release it,but u also take from other website.I have found that website...for prove,that website release 2 source code 1)with normal hook 2)with that hook
    " PEOPLE OFTEN GROW THROUGH UNEXPECTED TRIAL "
    " PEOPLE HAVE NAMES, AND NAMES ARE THE MOST EFFECTIVE WAY TO DISTINGUISH INDIVIDUALS. BUT SOMETIMES NAME AREN'T ENOUGH TO COMPLETELY DESCRIBE AN INDIVIDUAL, AND NICKNAMES WERE CREATED FOR THAT PURPOSE. NICKNAMES GAVE MANKIND ANOTHER CULTURAL EXCHANGE, AND THEY SOMETIMES SHOW THE TRUE ESSENCE OF AN INDIVIDUAL "
    " DO YOU KNOW WHAT THE MOST IMPORTANT THINGS ARE IN THE GAMES?
    THEY'RE ITEM AND LEVELS "

  4. #4
    COD3RIN's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Posts
    5,309
    Reputation
    468
    Thanks
    28,779
    My Mood
    Angelic
    Quote Originally Posted by loped View Post


    i know its from u,u release it,but u also take from other website.I have found that website...for prove,that website release 2 source code 1)with normal hook 2)with that hook
    i dont give code like this if i'll do that i post it here
    ᚛C☢dℝin3᚜
    Love you.
    ~Kenshit13
    Quote Originally Posted by cheaterman26 View Post
    COD3RIN PUT A BACKDOOR ON HIS OWN CHEAT HE HACK MY COMPUTER AND MY STEAM, DON'T TRUST THIS GUYS !



  5. #5
    loped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Everywhere
    Posts
    306
    Reputation
    10
    Thanks
    258
    My Mood
    Lonely
    Quote Originally Posted by COD3RIN View Post

    i dont give code like this if i'll do that i post it here
    are u kidding me?u release "BLACKSHOT WALLHACK & CROSSHAIR" at https://www.mpgh.net/forum/showthread.php?t=757392
    " PEOPLE OFTEN GROW THROUGH UNEXPECTED TRIAL "
    " PEOPLE HAVE NAMES, AND NAMES ARE THE MOST EFFECTIVE WAY TO DISTINGUISH INDIVIDUALS. BUT SOMETIMES NAME AREN'T ENOUGH TO COMPLETELY DESCRIBE AN INDIVIDUAL, AND NICKNAMES WERE CREATED FOR THAT PURPOSE. NICKNAMES GAVE MANKIND ANOTHER CULTURAL EXCHANGE, AND THEY SOMETIMES SHOW THE TRUE ESSENCE OF AN INDIVIDUAL "
    " DO YOU KNOW WHAT THE MOST IMPORTANT THINGS ARE IN THE GAMES?
    THEY'RE ITEM AND LEVELS "

  6. #6
    COD3RIN's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Posts
    5,309
    Reputation
    468
    Thanks
    28,779
    My Mood
    Angelic
    Quote Originally Posted by loped View Post


    are u kidding me?u release "BLACKSHOT WALLHACK & CROSSHAIR" at https://www.mpgh.net/forum/showthread.php?t=757392
    thank for info im tired
    ᚛C☢dℝin3᚜
    Love you.
    ~Kenshit13
    Quote Originally Posted by cheaterman26 View Post
    COD3RIN PUT A BACKDOOR ON HIS OWN CHEAT HE HACK MY COMPUTER AND MY STEAM, DON'T TRUST THIS GUYS !



  7. #7
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    COD3RIN Already posted a hack with your source code.
    Closed & Solved.
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



Similar Threads

  1. [Help Request] is it copy paste the source code to vb then save it to dll to make one ?
    By mightykid360 in forum WarRock Help
    Replies: 0
    Last Post: 11-12-2013, 12:03 AM
  2. [Source Code] heLp what is the source code of wallhack
    By Mark Arman Bactasa in forum WarRock Hack Source Code
    Replies: 16
    Last Post: 12-08-2012, 07:14 AM
  3. Everyone created their own private esp from old source code?
    By Birdshit in forum Call of Duty Modern Warfare 3 Discussions
    Replies: 1
    Last Post: 11-11-2011, 02:35 AM
  4. How to edit a dll files or reflect to get the source code from it
    By testingid123456 in forum Sudden Attack General
    Replies: 1
    Last Post: 10-13-2010, 11:45 AM
  5. Hello! i need help with the source code.
    By LatinHacker in forum Combat Arms Help
    Replies: 3
    Last Post: 05-14-2010, 10:32 PM