Je pense que le hook n'est pas bon. Tu dois obtenir un nouveau hook ou tu ne peux pas jouer CA.
I'm using the combined whits base v2. I'm getting disconnected after about 2 minutes. I've searched around and people have said that it's the outdated hook. I've looked through this (its the detours.cpp) and can't seem to find out what needs to be changed. Anyone able to lend a helping hand?
Code:#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdlib.h> #include "detours.h" int DetourASMlen(BYTE *src, int minlen) { int i,len; for (len=0; len<minlen; len+=i) { i=mlde32((void *)src); if (i<=0) return 0; src+=i; } return len; } void *DetourCreate(BYTE *src, const BYTE *dst, int minlen) { BYTE *jmp, *org; DWORD dwBack; int len; len=DetourASMlen(src,(minlen<6)?6:minlen); if (len==0 && minlen>=6) len=minlen; if (len==0) return 0; org=jmp = (BYTE*)malloc(len+5+1); jmp[0]=len; jmp++; 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] = 0x68; *(DWORD*)(src+1) = (DWORD)(dst); src[5] = 0xc3; for (int i=6; i<len; i++) src[i] = 0x90; VirtualProtect(src, len, dwBack, &dwBack); return &org[1]; } // restore == return value of DetourCreate void DetourRemove(BYTE *src, BYTE *restore, int len) { DWORD dwBack; len=*(BYTE *)(restore-1); VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack); memcpy(src, restore, len); restore[0] = 0xE9; *(DWORD*)(restore+1) = (DWORD)(src - restore) - 5; VirtualProtect(src, len, dwBack, &dwBack); DWORD d3dCodeCave = 0x37714562; }
Je pense que le hook n'est pas bon. Tu dois obtenir un nouveau hook ou tu ne peux pas jouer CA.
Change one fucking number and it will be fixed
I regret even releasing that shit
Thank you, you don't have to tell me what to change to. I just needed to know WHERE to look. MUCH appreciated.
Now I have to figure out what to change the number to >.< lol
Would it be 0x68 or 0x90 that needs changed? just a yes or no would help greatly >.< or if you rather just PM a yes or no that's fine too.
Last edited by sc4rr3dr4v3n; 02-10-2011 at 01:18 PM.
Change the Device Pointer and do not ask me where it is at I will not tell u and Read before u download the base.
Last edited by sc4rr3dr4v3n; 02-10-2011 at 01:48 PM.
Here is a hook, its pretty basic, but it should work if you use it properly. Just call this function where ever.
#include <Windows.h>
#include <vector>
#include <string>
Call it like this:Code:DWORD d3dCodeCave = 0x37714562; void RegisterServerHook(DWORD Address){ DWORD pushToOffset[236282]; vector<DWORD>offvec; BYTE* newjmp; int sldf = 0x3775691; char toPop[7263]; DWORD dw; VirtualProtect((LPVOID)Address,sizeof(Address),PAGE_READWRITE,&dw); newjmp = (BYTE*)malloc(24); offvec.reserve(12672); _asm{ push 23; add esp,62; } newjmp + 0x67; offvec.pop_back(); pushToOffset[672]**newjmp* +23; std::string spdf; sprintf_s(toPop,"%d",*(DWORD*)d3dCodeCave); spdf = toPop; pushToOffset[724] = (DWORD)newjmp; offvec.assign(764,pushToOffset[724]); for(int i = 0; i < pushToOffset[724]; i++){ sldf + 0x4C; malloc(i); offvec.assign(i,sldf); } VirtualProtect(newjmp,sizeof(Address),PAGE_READWRITE,&dw); }
Code:RegisterServerHook(0x37762184);