FindOffset (AutoUpdate)

Posts 1–15 of 30 · Page 1 of 2
FindOffset (AutoUpdate)
The OffsetFind main code
Code:
DWORD FindOffset(char* String, DWORD Pos, bool PointerFunc)
{
	static char search[6] =  "\x68\x00\x00\x00\x00";
	DWORD Clear = FindPattern(CShell, 0xE86000, (BYTE*)String, String);
	if (Clear)
	{
		*(DWORD*)(search+1) = Clear;
		DWORD loc = FindPattern(CShell, 0xE86000, (BYTE*)search, "xxxxx");
		if (loc)
		{
			return *(DWORD*)(loc+Pos)+PointerFunc*(loc+Pos+4); 
		}
	}
	return NULL;
}
Example
Code:
DWORD WeaponMgr       = FindOffset("ReloadAnimRatio", WeaponMgrPtr);
Quote Originally Posted by Brimir View Post
Code:
bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask) {
	for(;*szMask;++szMask,++pData,++bMask)
		if(*szMask=='x' && *pData!=*bMask)   
			return false;
	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;
}
omg you mean that it find the addys itself ?
Quote Originally Posted by kmanev073 View Post
omg you mean that it find the addys itself ?
i think he mean something like olly... dunno
Does it seem like olly?
I guess it searches for the Pointers / offsets using patterns.
Though where does it saves them ? or how do you see them ?
Its find offset or pointers or adresses what you need for the feature norecoil or whatever
it find the offset, so always auto update

note: you can't C&P , cuz you need more code, try to find it by urself!
Code:
bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask) {
	for(;*szMask;++szMask,++pData,++bMask)
		if(*szMask=='x' && *pData!=*bMask)   
			return false;
	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;
}
Quote Originally Posted by Brimir View Post
Code:
bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask) {
	for(;*szMask;++szMask,++pData,++bMask)
		if(*szMask=='x' && *pData!=*bMask)   
			return false;
	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;
}
let them think about it :O
don't give the full code, then they just can C&P it =.= they need brains
OMG it is leeched from me!!!!
it is 100% done by me, you only changed the names
Quote Originally Posted by giniyat101 View Post
OMG it is leeched from me!!!!
it is 100% done by me, you only changed the names
Yup , all give credit for giniyat
Correction

DWORD FindOffset(char* String, DWORD Pos, bool PointerFunc)
{
static char search[6] = "\x68\x00\x00\x00\x00";
DWORD Clear = FindPattern(CShell, 0xE86000, (BYTE*)String, String);
if (Clear)
{
*(DWORD*)(search+1) = Clear;
DWORD loc = FindPattern(CShell, 0xE86000, (BYTE*)search, " %s ");
if (loc)
{
return *(DWORD*)(loc+Pos)+PointerFunc*(loc+Pos+4);
}
}
return NULL;
}
Quote Originally Posted by XarutoUsoCrack View Post
Correction

DWORD FindOffset(char* String, DWORD Pos, bool PointerFunc)
{
static char search[6] = "\x68\x00\x00\x00\x00";
DWORD Clear = FindPattern(CShell, 0xE86000, (BYTE*)String, String);
if (Clear)
{
*(DWORD*)(search+1) = Clear;
DWORD loc = FindPattern(CShell, 0xE86000, (BYTE*)search, " %s ");
if (loc)
{
return *(DWORD*)(loc+Pos)+PointerFunc*(loc+Pos+4);
}
}
return NULL;
}
lol what did u correct?


---------- Post added at 06:05 PM ---------- Previous post was at 06:05 PM ----------

Quote Originally Posted by giniyat101 View Post
OMG it is leeched from me!!!!
it is 100% done by me, you only changed the names
i always doubted about that guy "freecode"
Quote Originally Posted by XarutoUsoCrack View Post
Correction

DWORD FindOffset(char* String, DWORD Pos, bool PointerFunc)
{
static char search[6] = "\x68\x00\x00\x00\x00";
DWORD Clear = FindPattern(CShell, 0xE86000, (BYTE*)String, String);
if (Clear)
{
*(DWORD*)(search+1) = Clear;
DWORD loc = FindPattern(CShell, 0xE86000, (BYTE*)search, " %s ");
if (loc)
{
return *(DWORD*)(loc+Pos)+PointerFunc*(loc+Pos+4);
}
}
return NULL;
}
no the first one is correct lol but nice try
@FreeCode?
tell me who gived you this code
Quote Originally Posted by giniyat101 View Post
@FreeCode?
iam still waiting..
Lol, FreeCode? has demonstrated from the beginning that he's a leecher. He just gets codes from googling then posts it here and gets thanks for some reason. He hasn't posted anything useful, he just posts a lot of codes.
Quote Originally Posted by 258456 View Post
Lol, FreeCode? has demonstrated from the beginning that he's a leecher. He just gets codes from googling then posts it here and gets thanks for some reason. He hasn't posted anything useful, he just posts a lot of codes.
no! i didnt post anywhere, and i didnt share with alot of people, thats strange
Posts 1–15 of 30 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us