好友
阅读权限10
听众
最后登录1970-1-1
|
MPGH
发表于 2015-3-31 21:01
去HarithBase。 cpp和Deleat这段代码
代码:
int __stdcall D3D(void){ HINSTANCE hD3D; DWORD vTable[105]; hD3D=0; do { hD3D = GetModuleHandle("gta_sa.exe"); 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); pEndScene = (oEndScene) DetourCreate((PBYTE) vTable[42], (PBYTE)myEndScene,5); } Sleep(50); } return 0; } }
在那之后与我的代码替换
代码:
int __stdcall Harith101(void){ DWORD dwD3D9 = 0; while(!dwD3D9) { Sleep(100); dwD3D9 = (DWORD)GetModuleHandle("d3d9.dll"); } DWORD vTable[105]; if (D3Ddiscover((void *)&vTable[0],420)==0) return 0; { pDrawIndexedPrimitive = (oDrawIndexedPrimitive) DetourCreate((PBYTE)vTable[82], (PBYTE)myDrawIndexedPrimitive, 5); pEndScene = (oEndScene) DetourCreate((PBYTE) vTable[42], (PBYTE)myEndScene,5); } return FALSE;}
在那之后在MainDLL取代这段代码
原始代码:
代码:
BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved){ DisableThreadLibraryCalls(hDll); if (dwReason == DLL_PROCESS_ATTACH) { MessageBox (0,"Made By ...:: Harith101 ::...","Black Roses", MB_OK); CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D, NULL, NULL, NULL); //CreateThread(0, 0, (LPTHREAD_START_ROUTINE)DevilHack,0, 0, 0); } return TRUE;}
新代码:
代码:
BOOL __stdcall DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved){ DisableThreadLibraryCalls(hDll); if (dwReason == DLL_PROCESS_ATTACH) { MessageBox (0,"Made By ...:: Harith101 ::...","Black Roses", MB_OK); CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Harith101,0, 0, 0); } return TRUE;}http://pan.suning.com/cloud-web/share/link.htm?sk=aaafPl 提取码:75uz
|
-
压缩文件:Chams & WallHack
-
压缩文件:Chams & WallHack
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|