Tutorial Membuat D3D MENU HACK
Tools yang dibutuhkan :
Okey setelah dapet Alat perang..
Langkah Pertama :
Pada Fungtions.h void *DetourFunction
Bisa kalian ganti dengan :
zenix D3D App :
Download :
zenix D3D App.zip 849.25K 1937 Jumlah Unduhan
Screenshot Hasil :
Download Link :
D3D9test.zip 26.52K 2359 Jumlah Unduhan
Credit : Alkatraz mpgh, zenix@N3
Ini Untuk Menu background pada game PointBlank.
XD
Untuk Sample .dllnya..
Download :
Sample II zenix Hack.zip 61.05K 2094 Jumlah Unduhan
Credit : zenix@N3
zenix@N3
Tools yang dibutuhkan :
- VC++ 2010
- Microsoft DirectX 9.0 SDK (Summer 2004)
Okey setelah dapet Alat perang..
Langkah Pertama :
- Jalankan Visual C++ 2010 Express Edition, Setelah itu buat new Project.
- Pilih Visual C++, Empty Project dan namakan dengan zenix D3Dbase.
Screenshot :
- Ok Project telah dibuat, Setelah itu buat Header setelah itu Klik pada Project dan pilih Add New Item.
Pilih Header File dan Namai dengan zenixMenuClass.h dan isikan code berikut :
Spoiler zenixMenuClass.h//================================================================== // This file is part of zenixbase d3d v1 // (c) copyright zenix 2010 // special thanks to: // Alkatraz // //mcz yang selalu dukung gw // nyit-nyit.net //================================================================== #include "Functions.h" typedef struct{ int index; char * title; int *hack; int hackmaxval; int hacktype; DWORD HCOLOR; }ITEM; class zenixMenu { public: LPDIRECT3DDEVICE9 pDevice; LPD3DXFONT pFont; int hackcount; int selector; int x,y,w,h; DWORD COLOR; ITEM HACKITEM[99]; char hackrval[256]; void CreateItem(int index, char * title, int *hack,int hackmaxval=1,int hacktype=0); void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice); void RenderMenu(); }; typedef HRESULT ( WINAPI* oReset )( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters ); typedef HRESULT (WINAPI* oEndScene)(LPDIRECT3DDEVICE9 pDevice); //Colors A,R,G,B Gan Silahkan dipakai untuk membuat Chams #define RED D3DCOLOR_ARGB(255, 255, 0, 0) #define GREEN D3DCOLOR_ARGB(255, 0, 255, 0) #define BLUE D3DCOLOR_ARGB(255, 0, 0, 255) #define WHITE D3DCOLOR_ARGB(255, 255, 255, 255) #define BLACK D3DCOLOR_ARGB(255, 0, 0, 0) #define YELLOW D3DCOLOR_ARGB(255, 255, 255, 0) #define TEAL D3DCOLOR_ARGB(255, 0, 255, 255) #define PINK D3DCOLOR_ARGB(255, 255, 240, 0) #define ORANGE D3DCOLOR_ARGB(255, 255, 132, 0) #define LIME D3DCOLOR_ARGB(255, 198, 255, 0) #define SKYBLUE D3DCOLOR_ARGB(255, 0, 180, 255) #define MAROON D3DCOLOR_ARGB(255, 142, 30, 0) #define LGRAY D3DCOLOR_ARGB(255, 174, 174, 174) #define DGRAY D3DCOLOR_ARGB(255, 71, 65, 64) #define BROWN D3DCOLOR_ARGB(255, 77, 46, 38) #define SHIT D3DCOLOR_ARGB(255, 74, 38, 38)
- Setelah itu buat Header lagi dan Beri Nama dengan Functions.h dan Isi dengan code berikut :
Spoiler Functions.h//================================================================== // This file is part of zenixbase d3d v1 // (c) copyright zenix 2010 // special thanks to: // Alkatraz // //mcz yang selalu dukung gw // nyit-nyit.net //================================================================== #include "SystemIncludes.h" void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font) { RECT FontRect = { x, y, x+500, y+30 }; font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col); } void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice ) { if( w < 0 )w = 1; if( h < 0 )h = 1; if( x < 0 )x = 1; if( y < 0 )y = 1; D3DRECT rec = { x, y, x + w, y + h }; pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 ); } void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, (y + h - px), w, px, BorderColor, pDevice ); FillRGB( x, y, px, h, BorderColor, pDevice ); FillRGB( x, y, w, px, BorderColor, pDevice ); FillRGB( (x + w - px), y, px, h, BorderColor, pDevice ); } void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, y, w, h, BoxColor, pDevice ); DrawBorder( x, y, w, h, 1, BorderColor, pDevice ); } bool isMouseinRegion(int x1, int y1, int x2, int y2) { POINT cPos; GetCursorPos(&cPos); if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){ return true; } else { return false; } } bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask) { for(;*szMask;++szMask,++pData,++bMask) if(*szMask=='x' && *pData!=*bMask) return 0; return (*szMask) == NULL; } DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask) { for(DWORD i=0; i<dwLen; i++) if (bCompare((BYTE*)(dwAddress+i),bMask,szMask)) return (DWORD)(dwAddress+i); return 0; } void *DetourFunction (BYTE *src, const BYTE *dst, const int len) { BYTE *jmp; DWORD dwback; DWORD jumpto, newjump; VirtualProtect(src,len,PAGE_READWRITE,&dwback); if(src[0] == 0xE9) { jmp = (BYTE*)malloc(10); jumpto = (*(DWORD*)(src+1))+((DWORD)src)+5; newjump = (jumpto-(DWORD)(jmp+5)); jmp[0] = 0xE9; *(DWORD*)(jmp+1) = newjump; jmp += 5; jmp[0] = 0xE9; *(DWORD*)(jmp+1) = (DWORD)(src-jmp); } else { jmp = (BYTE*)malloc(5+len); 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[i] = 0x90; VirtualProtect(src,len,dwback,&dwback); return (jmp-len); }
- Buat Header lagi beri Nama SystemIncludes.h dan Isikan code berikut :
SystemIncludes.h
//================================================================== // This file is part of zenixbase d3d v1 // (c) copyright zenix 2010 // special thanks to: // Alkatraz // //mcz yang selalu dukung gw // nyit-nyit.net //================================================================== #include <Windows.h> #include <stdio.h> #include <d3d9.h> #include <d3dx9.h> #pragma comment(lib,"d3dx9.lib")
- Klik pada Source Files kemudian Add New Item pilih C++ File (.cpp) Beri Nama D3dbase.cpp Isikan code berikut :
Spoiler D3dbase.cpp
Screenshot :
- Kemudian Save All Project. Setelah project telah di Save lalu Compile/Start Debugging.
- Jangan lupa rubah Properties Project rubah Application (.exe) menjadi Dinamic Library (.dll)
Screenshot :
Pada Fungtions.h void *DetourFunction
Spoiler Fungtions.h
Bisa kalian ganti dengan :
void *DetourFunction (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[i]=0x90; VirtualProtect(src, len, dwBack, &dwBack); return (jmp-len); }
zenix D3D App :
Download :
zenix D3D App.zip 849.25K 1937 Jumlah Unduhan
Screenshot Hasil :
Download Link :
D3D9test.zip 26.52K 2359 Jumlah Unduhan
Credit : Alkatraz mpgh, zenix@N3
Ini Untuk Menu background pada game PointBlank.
XD
Untuk Sample .dllnya..
Download :
Sample II zenix Hack.zip 61.05K 2094 Jumlah Unduhan
Credit : zenix@N3
zenix@N3