AngryOui Need help

Posts 112 of 12 · Page 1 of 1
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;
}
Je pense que le hook n'est pas bon. Tu dois obtenir un nouveau hook ou tu ne peux pas jouer CA.
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?
Change one fucking number and it will be fixed
I regret even releasing that shit
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.
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
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.
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.
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.
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);
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
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.
Posts 112 of 12 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?