Welcome to Ramleague,

Ramleague - the best site for pinoy chat, games chat and mobiles chat,

Sign Up
  1. Hello guest Guest , Are you tired from Ads? to remove some ads you need to register and be active. :D

[Source Code] CrossFire D3D Wallhack

Discussion in 'CrossFire Source Code & Tutorials' started by p3ps!, Jul 13, 2018.

  1. p3ps! F.T.B Gaming
    Donator Member Lvl1

    p3ps!
    Joined:
    Oct 25, 2014
    Gender:
    Male
    Posts:
    419
    Reputation:
    37
    Thanks:
    145
    Location:
    Region IV - A
    Busy
    Philippines

    CrossFire D3D Wallhack

    Features:
    PlayChams / Naked
    Asus
    Fullbright
    X-Hair

    Hotkey: Numpad 1-Crosshair; 2- Chams; 3- Fullbright; 4-Asus; 5-Naked;

    Ctools.CPP:
    Code:
    #include "CTools.h"
    CTools Tools;
    DWORD CTools::D3D9VTable()
    {
    DWORD dwObjBase = (DWORD)LoadLibraryA("D3D9.DLL");
    DWORD dwObjpBase = (DWORD)LoadLibraryA("CSHELL.DLL");
    while ( dwObjBase++ < dwObjBase + 0x127850 )
    {
            if ( (*(WORD*)(dwObjBase + 0x00)) == 0x06C7 && (*(WORD*)(dwObjBase + 0x06)) == 0x8689 && (*(WORD*)(dwObjBase + 0x0C)) == 0x8689 )
    {
    dwObjBase += 2;
    break;
    }
    }
    return ( dwObjBase );
    }
    BOOL CTools::CheckWindowsVersion(DWORD dwMajorVersion,DWORD dwMinorVersion,DWORD dwProductType)
    {
    OSVERSIONINFOEX VersionInfo;
    ZeroMemory(&VersionInfo,sizeof(OSVERSIONINFOEX));
    VersionInfo.dwOSVersionInfoSize = sizeof(VersionInfo);
    GetVersionEx((OSVERSIONINFO*)&VersionInfo);
    if ( VersionInfo.dwMajorVersion == dwMajorVersion )
    {
    if ( VersionInfo.dwMinorVersion == dwMinorVersion )
    {
    if ( VersionInfo.wProductType == dwProductType )
    {
    return ( TRUE );
    }
    }
    }
    return ( FALSE );
    }
    void *CTools::DetourCreate(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=0x90;
    VirtualProtect(src, len, dwBack, &dwBack);
    return (jmp-len);
    }
    HRESULT CTools::GenerateTexture( IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32 )
    {
    if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
    return E_FAIL;
           
    WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
    |(WORD)(((colour32>>20)&0xF)<<8)
    |(WORD)(((colour32>>12)&0xF)<<4)
    |(WORD)(((colour32>>4)&0xF)<<0);
    D3DLOCKED_RECT d3dlr;
    (*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
    WORD *pDst16 = (WORD*)d3dlr.pBits;
    for(int xy=0; xy < 8*8; xy++)
    *pDst16++ = colour16;
    (*ppD3Dtex)->UnlockRect(0);
    return S_OK;
    }

    CTools.H
    Code:
    #include <windows.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    class CTools
    {
    public:
    D3DVIEWPORT9 pViewport;
    BOOL DrawTexture;
    BOOL DrawCrosshair;
    BOOL DrawChams;
    BOOL FullBright;
    BOOL Asus;
    DWORD D3D9VTable();
    BOOL CheckWindowsVersion(DWORD dwMajorVersion,DWORD dwMinorVersion,DWORD dwProductType);
    void *DetourCreate( BYTE *src, const BYTE *dst, const int len );
    HRESULT GenerateTexture( IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32 );
    };
    extern CTools Tools;
    CMain.cpp
    Please Login/Register to view links

    [​IMG]
    Warning! Need To Update!
     
    • BE A GAMER - RAMLeague
  2. remzkee0903 Adict Gamer
    Member Lvl1

    remzkee0903
    Joined:
    Dec 17, 2015
    Gender:
    Male
    Posts:
    120
    Reputation:
    0
    Thanks:
    4
    Location:
    Zamboanga City
    Horny
    Philippines
    Maraming salamat senpai.
     
  3. jbuncayo25 True God Gamer
    Member Lvl1

    jbuncayo25
    Joined:
    Nov 3, 2017
    Gender:
    Male
    Posts:
    440
    Reputation:
    0
    Thanks:
    18
    Lonely
    saan ilalagay yung Ctools.CPP: at CTools.H
     
  4. p3ps! F.T.B Gaming
    Donator Member Lvl1

    p3ps!
    Joined:
    Oct 25, 2014
    Gender:
    Male
    Posts:
    419
    Reputation:
    37
    Thanks:
    145
    Location:
    Region IV - A
    Busy
    Philippines
    C++ shhhh
     
  5. Depressed RAML Expert
    RAML Cute Contributor Member Lvl2

    Joined:
    Aug 24, 2018
    Gender:
    Female
    Posts:
    1,406
    Reputation:
    516
    Thanks:
    727
    Location:
    Moscow
    Amazed
    Russian Federation
    Thanks im really looking for chams
     
  6. Markdimz Newbie Member

    Markdimz
    Joined:
    Sep 18, 2018
    Gender:
    Male
    Posts:
    1
    Reputation:
    0
    Thanks:
    0
    Sir pano i download
     
  7. p3ps! F.T.B Gaming
    Donator Member Lvl1

    p3ps!
    Joined:
    Oct 25, 2014
    Gender:
    Male
    Posts:
    419
    Reputation:
    37
    Thanks:
    145
    Location:
    Region IV - A
    Busy
    Philippines
    C++ parin yan
     
  8. RyanModder I'm gay.
    Gay Member Lvl3

    Joined:
    Sep 18, 2018
    Gender:
    Female
    Posts:
    1,547
    Reputation:
    534
    Thanks:
    291
    Location:
    Gwangju, Gyeonggi
    Question
    Korea, Democratic Peoples Republic Of
    Hugo.Gee.26
    Kenji_Mitsuki

    Sir/Maam @p3ps! give me a tag link:Please Login/Register to view links please read the thread pag natapos ko daww po bibigyan ako ng tag yung ninja
     
  9. p3ps! F.T.B Gaming
    Donator Member Lvl1

    p3ps!
    Joined:
    Oct 25, 2014
    Gender:
    Male
    Posts:
    419
    Reputation:
    37
    Thanks:
    145
    Location:
    Region IV - A
    Busy
    Philippines
  10. p3ps! F.T.B Gaming
    Donator Member Lvl1

    p3ps!
    Joined:
    Oct 25, 2014
    Gender:
    Male
    Posts:
    419
    Reputation:
    37
    Thanks:
    145
    Location:
    Region IV - A
    Busy
    Philippines
    Yup now you can use
     
  11. Gm_astral Member
    Member Lvl1

    Gm_astral
    Joined:
    Sep 23, 2018
    Posts:
    14
    Reputation:
    0
    Thanks:
    1
    Hii po bakit Ganito ang Lalabas Tas Auto Out na Pano po Yan Gawin ? upload_2018-9-23_18-20-4.png
     
    chancell thanks this.
  12. CastroX Well-Known Member
    Member Lvl1

    CastroX
    Joined:
    May 7, 2017
    Gender:
    Male
    Posts:
    82
    Reputation:
    0
    Thanks:
    17
    Cool
    i thinks HotKeys Work using ProxyCall
     
Loading...

Advertisement

Tags for this Thread

:

Share This Page