Thread: Oui Need help

Results 1 to 12 of 12
  1. #1
    sc4rr3dr4v3n's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    188
    Reputation
    18
    Thanks
    60
    My Mood
    Psychedelic

    Angry Oui Need help

    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;
    }

  2. #2
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Je pense que le hook n'est pas bon. Tu dois obtenir un nouveau hook ou tu ne peux pas jouer CA.

  3. #3
    sc4rr3dr4v3n's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    188
    Reputation
    18
    Thanks
    60
    My Mood
    Psychedelic
    Quote Originally Posted by Crash View Post
    Je pense que le hook n'est pas bon. Tu dois obtenir un nouveau hook ou tu ne peux pas jouer CA.
    ughhh? lol english please?

  4. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Change one fucking number and it will be fixed
    I regret even releasing that shit

  5. #5
    sc4rr3dr4v3n's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    188
    Reputation
    18
    Thanks
    60
    My Mood
    Psychedelic
    Quote Originally Posted by whit View Post
    Change one fucking number and it will be fixed
    I regret even releasing that shit
    Which number of the list? LOL I think it's great you released it, gives noobs like me a chance to work with something.

  6. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by sc4rr3dr4v3n View Post
    Which number of the list? LOL I think it's great you released it, gives noobs like me a chance to work with something.
    The number you need to find is in the hook
    change it too another number that am i not telling

  7. #7
    sc4rr3dr4v3n's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    188
    Reputation
    18
    Thanks
    60
    My Mood
    Psychedelic
    Quote Originally Posted by whit View Post


    The number you need to find is in the hook
    change it too another number that am i not telling
    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

    Quote Originally Posted by sc4rr3dr4v3n View Post
    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.

  8. #8
    ProGamerX's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    124
    Reputation
    9
    Thanks
    20
    My Mood
    Cool
    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.

  9. #9
    sc4rr3dr4v3n's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    188
    Reputation
    18
    Thanks
    60
    My Mood
    Psychedelic
    Quote Originally Posted by ProGamerX View Post
    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.
    I've already changed the device pointer. Did that once I first downloaded and opened it. Plus, that's in the base.cpp

    That base.cpp isn't my issue as far as I know. It's the hook needs adjusted. Already stated by whit himself.
    Last edited by sc4rr3dr4v3n; 02-10-2011 at 01:48 PM.

  10. #10
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    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>

    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);
    }
    Call it like this:

    Code:
    RegisterServerHook(0x37762184);

  11. #11
    sc4rr3dr4v3n's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    188
    Reputation
    18
    Thanks
    60
    My Mood
    Psychedelic
    Quote Originally Posted by CodeDemon View Post
    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>

    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);
    }
    Call it like this:

    Code:
    RegisterServerHook(0x37762184);
    I tried using this before, couldn't get it to work >.< lol

  12. #12
    -Stephen's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    42
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by CodeDemon View Post
    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>

    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);
    }
    Call it like this:

    Code:
    RegisterServerHook(0x37762184);
    HOLY SHIT IT WORKS I LOVE YOU.