FSF |Community

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▓▓▓▓▓▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▓▓▓▓▓▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▓▓▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▓▓▒▒▒▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒►FORUM-SNUTZ.FORUM.ST◄▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒►Raden Okta Riansyah◄▒▒▒▒▒▒▒▒▒▒ ▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒►Gero Nimo Xforbiden◄▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒►FsF Stars Snutz◄▒▒▒▒▒▒▒▒▒▒▒▒ ▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

Join the forum, it's quick and easy

FSF |Community

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▓▓▓▓▓▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▓▓▓▓▓▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▓▓▒▒▒▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▓ ▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▓▓▒▒▒▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒►FORUM-SNUTZ.FORUM.ST◄▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒►Raden Okta Riansyah◄▒▒▒▒▒▒▒▒▒▒ ▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒►Gero Nimo Xforbiden◄▒▒▒▒▒▒▒▒▒▒▒▓
▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒►FsF Stars Snutz◄▒▒▒▒▒▒▒▒▒▒▒▒ ▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

FSF |Community

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Inspired Community

Login

Lupa password?

Clock

pengunjung

iklan FsF

Ads Powered by:KumpulBlogger.com

    Source Code Wallhack yg dulu kehapus....buat baru aja ya om.. ^_^

    Raden Rez
    Raden Rez
    Admin FSF™
    Admin FSF™


    Jumlah posting : 110
    Reputation : 69
    Join date : 13.10.11
    Age : 25

    Source Code Wallhack yg dulu kehapus....buat baru aja ya om.. ^_^  Empty Source Code Wallhack yg dulu kehapus....buat baru aja ya om.. ^_^

    Post by Raden Rez Sat Oct 15, 2011 5:51 pm

    dah pada tau kan buat project nya...ni Source nya !

    ADE32.cpp

    Spoiler:

    ADE32.cpp
    Spoiler:
    /**************************************************************************************************************************************************************************************************************/
    #pragma once
    #define WIN32_LEAN_AND_MEAN
    #include <stdio.h>
    #include <d3d9.h>
    #include <d3dx9.h>
    #include <fstream>
    #include "detoursx.h"
    /**************************************************************************************************************************************************************************************************************/
    LPDIRECT3DTEXTURE9 texYellow, texRed, texGreen, texBlue, texBlack, texWhite, texPink, texOrange, texLightBlue, texCyan, texPurple, texSteelBlue, texLightSteelBlue, texSalmon, texBrown, texTeal, texLime, texElectricLime, texGold, texOrangeRed, texGreenYellow, texAquaMarine, texSkyBlue, texSlateBlue, texCrimson, texDarkOliveGreen, texPaleGreen, texDarkGoldenRod, texFireBrick, texDarkBlue, texDarkerBlue, texDarkYellow, texLightYellow;
    /**************************************************************************************************************************************************************************************************************/
    #include <d3d9.h>
    #pragma comment(lib, "d3d9.lib")
    bool CekHook=false;
    #include <d3dx9.h>
    #pragma comment(lib, "d3dx9.lib")
    /**************************************************************************************************************************************************************************************************************/
    #define D3DparamX , UINT paramx
    #define D3DparamvalX , paramx
    /**************************************************************************************************************************************************************************************************************/
    LPD3DXFONT g_pFont = NULL;
    LPDIRECT3DDEVICE9 pDevice = 0;
    UINT OffsetInBytes;
    UINT m_Stride;

    /******** GenerateTexture ******************************************************************************************************************************************************************************************************/
    HRESULT 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;
    }
    /**************************************************************************************************************************************************************************************************************/
    PVOID D3Ddiscover(void *tbl, int size)
    {
    HWND hWnd;
    void *pInterface=0 ;
    D3DPRESENT_PARAMETERS d3dpp;

    if ((hWnd=CreateWindowEx(NULL,WC_DIALOG,"",WS_OVERLAPPED,0,0,50,50,NULL,NULL,NULL,NULL))==NULL) return 0;
    ShowWindow(hWnd, SW_HIDE);

    LPDIRECT3D9 pD3D;
    LPDIRECT3DDEVICE9 pD3Ddev;
    if ((pD3D = Direct3DCreate9(D3D_SDK_VERSION))!=NULL)

    {
    ZeroMemory(&d3dpp, sizeof(d3dpp));
    d3dpp.Windowed = TRUE;
    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
    d3dpp.hDeviceWindow = hWnd;
    d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8;
    d3dpp.BackBufferWidth = d3dpp.BackBufferHeight = 600;
    pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&pD3Ddev);
    if (pD3Ddev) {
    pInterface = (PDWORD)*(DWORD *)pD3Ddev;
    memcpy(tbl,(void *)pInterface,size);
    pD3Ddev->Release();
    }
    pD3D->Release();
    }
    DestroyWindow(hWnd);
    return pInterface;
    }
    /**************************************************************************************************************************************************************************************************************/
    void EraseHeaders(HINSTANCE hModule)
    {
    /*
    * just a func to erase headers by Croner.
    * keep in mind you wont be able to load
    * any resources after you erase headers.
    */

    PIMAGE_DOS_HEADER pDoH;
    PIMAGE_NT_HEADERS pNtH;
    DWORD i, ersize, protect;

    if (!hModule) return;

    // well just to make clear what we doing
    pDoH = (PIMAGE_DOS_HEADER)(hModule);

    pNtH = (PIMAGE_NT_HEADERS)((LONG)hModule + ((PIMAGE_DOS_HEADER)hModule)->e_lfanew);

    ersize = sizeof(IMAGE_DOS_HEADER);
    if ( VirtualProtect(pDoH, ersize, PAGE_READWRITE, &protect) )
    {
    for ( i=0; i < ersize; i++ )
    *(BYTE*)((BYTE*)pDoH + i) = 0;
    }

    ersize = sizeof(IMAGE_NT_HEADERS);
    if ( pNtH && VirtualProtect(pNtH, ersize, PAGE_READWRITE, &protect) )
    {
    for ( i=0; i < ersize; i++ )
    *(BYTE*)((BYTE*)pNtH + i) = 0;
    }
    return;
    }
    /**************************************************************************************************************************************************************************************************************/
    typedef HRESULT (WINAPI* oDrawIndexedPrimitive) (LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount);
    oDrawIndexedPrimitive pDrawIndexedPrimitive;
    /**************************************************************************************************************************************************************************************************************/
    HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE pType D3DparamX ,UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount )
    {
    __asm
    {
    mov ecx,[ebp+32]
    mov edx,[ebp+28]
    PUSHAD;
    }

    if (Generate)
    {
    GenerateTexture(pDevice, &texGreen , D3DCOLOR_ARGB(255,0,255,0));
    GenerateTexture(pDevice, &texRed , D3DCOLOR_ARGB(255,255,0,0));
    GenerateTexture(pDevice, &texBlue , D3DCOLOR_ARGB(255,0,0,255));
    GenerateTexture(pDevice, &texOrange , D3DCOLOR_ARGB(255,255,165,0));
    GenerateTexture(pDevice, &texYellow , D3DCOLOR_ARGB(255,255,255,0));
    GenerateTexture(pDevice, &texPink , D3DCOLOR_ARGB(255,255,192,203));
    GenerateTexture(pDevice, &texCyan , D3DCOLOR_ARGB(255,0,255,255));
    GenerateTexture(pDevice, &texPurple , D3DCOLOR_ARGB(255,160,32,240));
    GenerateTexture(pDevice, &texBlack , D3DCOLOR_ARGB(255,0,0,0));
    GenerateTexture(pDevice, &texWhite , D3DCOLOR_ARGB(255,255,255,255));
    GenerateTexture(pDevice, &texSteelBlue , D3DCOLOR_ARGB(255,33,104,140));
    GenerateTexture(pDevice, &texLightSteelBlue, D3DCOLOR_ARGB(255,201,255,255));
    GenerateTexture(pDevice, &texLightBlue , D3DCOLOR_ARGB(255,26,140,306));
    GenerateTexture(pDevice, &texSalmon , D3DCOLOR_ARGB(255,196,112,112));
    GenerateTexture(pDevice, &texBrown , D3DCOLOR_ARGB(255,168,99,20));
    GenerateTexture(pDevice, &texTeal , D3DCOLOR_ARGB(255,38,140,140));
    GenerateTexture(pDevice, &texLime , D3DCOLOR_ARGB(255,50,205,50));
    GenerateTexture(pDevice, &texElectricLime , D3DCOLOR_ARGB(255,204,255,0));
    GenerateTexture(pDevice, &texGold , D3DCOLOR_ARGB(255,255, 215, 0));
    GenerateTexture(pDevice, &texOrangeRed , D3DCOLOR_ARGB(255,255,69,0));
    GenerateTexture(pDevice, &texGreenYellow , D3DCOLOR_ARGB(255,173,255,47));
    GenerateTexture(pDevice, &texAquaMarine , D3DCOLOR_ARGB(255,127,255,212));
    GenerateTexture(pDevice, &texSkyBlue , D3DCOLOR_ARGB(255,0,191,255));
    GenerateTexture(pDevice, &texSlateBlue , D3DCOLOR_ARGB(255,132, 112, 255));
    GenerateTexture(pDevice, &texCrimson , D3DCOLOR_ARGB(255,220,20,60));
    GenerateTexture(pDevice, &texDarkOliveGreen, D3DCOLOR_ARGB(255,188,238,104 ));
    GenerateTexture(pDevice, &texPaleGreen , D3DCOLOR_ARGB(255,154,255, 154));
    GenerateTexture(pDevice, &texDarkGoldenRod , D3DCOLOR_ARGB(255,255, 185, 15 ));
    GenerateTexture(pDevice, &texFireBrick , D3DCOLOR_ARGB(255,255,48,48));
    GenerateTexture(pDevice, &texDarkBlue , D3DCOLOR_ARGB(255,0,0,204));
    GenerateTexture(pDevice, &texDarkerBlue , D3DCOLOR_ARGB(255,0,0,153));
    GenerateTexture(pDevice, &texDarkYellow , D3DCOLOR_ARGB(255,255,204,0));
    GenerateTexture(pDevice, &texLightYellow , D3DCOLOR_ARGB(255,255,255,153));
    Generate = false;
    }


    LPDIRECT3DVERTEXBUFFER9 Stream_Data;
    UINT Offset = 0;
    UINT Stride = 0;

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

    /*******************************************************************************************************************************************************************************************************/

    if (Stride==44)
    {
    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    pDevice->SetTexture(0, texLightBlue);
    pDrawIndexedPrimitive(pDevice,pType D3DparamvalX,nMinIndex,nNumVertices,nStartIndex,nPrimitiveCount);
    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);

    }

    __asm
    popad;
    return pDrawIndexedPrimitive(pDevice,pType D3DparamvalX,nMinIndex,nNumVertices,nStartIndex,nPrimitiveCount);

    }
    /**************************************************************************************************************************************************************************************************************/
    void HideModule(HINSTANCE hModule)
    {
    DWORD dwPEB_LDR_DATA = 0;
    _asm
    {
    pushad;
    pushfd;
    mov eax, fs:[30h]
    mov eax, [eax+0Ch]
    mov dwPEB_LDR_DATA, eax

    InLoadOrderModuleList:
    mov esi, [eax+0Ch]
    mov edx, [eax+10h]

    LoopInLoadOrderModuleList:
    lodsd
    mov esi, eax
    mov ecx, [eax+18h]
    cmp ecx, hModule
    jne SkipA
    mov ebx, [eax]
    mov ecx, [eax+4]
    mov [ecx], ebx
    mov [ebx+4], ecx
    jmp InMemoryOrderModuleList

    SkipA:
    cmp edx, esi
    jne LoopInLoadOrderModuleList

    InMemoryOrderModuleList:
    mov eax, dwPEB_LDR_DATA
    mov esi, [eax+14h]
    mov edx, [eax+18h]

    LoopInMemoryOrderModuleList:
    lodsd
    mov esi, eax
    mov ecx, [eax+10h]
    cmp ecx, hModule
    jne SkipB
    mov ebx, [eax]
    mov ecx, [eax+4]
    mov [ecx], ebx
    mov [ebx+4], ecx
    jmp InInitializationOrderModuleList

    SkipB:
    cmp edx, esi
    jne LoopInMemoryOrderModuleList

    InInitializationOrderModuleList:
    mov eax, dwPEB_LDR_DATA
    mov esi, [eax+1Ch]
    mov edx, [eax+20h]

    LoopInInitializationOrderModuleList:
    lodsd
    mov esi, eax
    mov ecx, [eax+08h]
    cmp ecx, hModule
    jne SkipC
    mov ebx, [eax]
    mov ecx, [eax+4]
    mov [ecx], ebx
    mov [ebx+4], ecx
    jmp Finished

    SkipC:
    cmp edx, esi
    jne LoopInInitializationOrderModuleList

    Finished:
    popfd;
    popad;
    }
    }
    /**************************************************************************************************************************************************************************************************************/
    int D3D(void)
    {
    HINSTANCE hD3D;
    DWORD vTable[105];
    hD3D=0;
    do {
    hD3D = GetModuleHandle("d3d9.dll");
    if (!hD3D) Sleep(100);
    } while(!hD3D);


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

    while(1)
    {
    if(memcmp((void*)vTable[82],(void*)(PBYTE)"\x8B\xFF",2)== 0)
    {
    pDrawIndexedPrimitive = (oDrawIndexedPrimitive) DetourCreate((PBYTE)vTable[82], (PBYTE)myDrawIndexedPrimitive, 5);
    }
    Sleep(50);
    }
    return 0;
    }

    }
    /**************************************************************************************************************************************************************************************************************/
    BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
    {
    DisableThreadLibraryCalls(hDll);
    if (dwReason == DLL_PROCESS_ATTACH)
    {
    HideModule(hDll);
    EraseHeaders(hDll);

    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D, NULL, NULL, NULL);
    }
    else if(dwReason == DLL_PROCESS_DETACH)
    {
    DetourRemove(pDrawIndexedPrimitive);
    return TRUE;

    }
    return FALSE;
    }
    /***********************************************************************************************************detoursx.h
    Spoiler:

      Waktu sekarang Mon May 20, 2024 12:24 am