Search Addy Crash!

Posts 115 of 19 · Page 1 of 2
Search Addy Crash!
For some reason I crash!

Code:
void cBase::Update(void)
{
	while(1)
	{
		if(FindAddresses == false)
		{
                        DWORD dwNoRecoil1 = FindPattern(dwCShell, 0x900000, (PBYTE)"\xD8\x66\x54\xD9\x5C\x24\x14\xD9\x44\x24\x14\xEB\x02\xDD\xD8\xD9\xC0", "xxxxxxxxxxxxxxxxx" );
			FindAddresses = true;
		}

		Sleep(1000);
	}
}
Quote Originally Posted by SF-Abel View Post
For some reason I crash!

Code:
void cBase::Update(void)
{
	while(1)
	{
		if(FindAddresses == false)
		{
                        DWORD dwNoRecoil1 = FindPattern(dwCShell, 0x900000, (PBYTE)"\xD8\x66\x54\xD9\x5C\x24\x14\xD9\x44\x24\x14\xEB\x02\xDD\xD8\xD9\xC0", "xxxxxxxxxxxxxxxxx" );
			FindAddresses = true;
		}

		Sleep(1000);
	}
}
Lol why do you create a thread for it , i dont even use the thread at all. Well i dont even use scans at all. /
Most likely not waiting for Cshell to be loaded before your searching


Code:
bool IsGameReadyForHook(void)
{
    if(GetModuleHandleA( "CShell.dll"   ) != NULL )
        return true;
	return false;
}
Code:
while( !IsGameReadyForHook() )
void cBase::Update(void)
{
	while(1)
	{
		if(FindAddresses == false)
		{
                        DWORD dwNoRecoil1 = FindPattern(dwCShell, 0x900000, (PBYTE)"\xD8\x66\x54\xD9\x5C\x24\x14\xD9\x44\x24\x14\xEB\x02\xDD\xD8\xD9\xC0", "xxxxxxxxxxxxxxxxx" );
			FindAddresses = true;
		}

		Sleep(1000);
	}
}
Quote Originally Posted by markoj View Post
Most likely not waiting for Cshell to be loaded before your searching


Code:
bool IsGameReadyForHook(void)
{
    if(GetModuleHandleA( "CShell.dll"   ) != NULL )
        return true;
	return false;
}
Code:
while( !IsGameReadyForHook() )
void cBase::Update(void)
{
	while(1)
	{
		if(FindAddresses == false)
		{
                        DWORD dwNoRecoil1 = FindPattern(dwCShell, 0x900000, (PBYTE)"\xD8\x66\x54\xD9\x5C\x24\x14\xD9\x44\x24\x14\xEB\x02\xDD\xD8\xD9\xC0", "xxxxxxxxxxxxxxxxx" );
			FindAddresses = true;
		}

		Sleep(1000);
	}
}
thats what i had. no good.
Why is it in a loop?
Quote Originally Posted by Synns View Post
Why is it in a loop?
To search for addies?
Quote Originally Posted by SF-Abel View Post
To search for addies?

Code:
DWORD dwCShell;

void GetAddresses( )
{

	do {
		dwCShell = (DWORD)GetModuleHandleA(L"CShell.dll");
		Sleep(1000);
	} while(!dwCShell);

       DWORD dwAddress = FindPattern(...);

}

CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)GetAddresses, 0, 0, 0 );
edit:

Remember to check if the address is valid.
Quote Originally Posted by Synns View Post
Code:
DWORD dwCShell;

void GetAddresses( )
{

	do {
		dwCShell = (DWORD)GetModuleHandleA(L"CShell.dll");
		Sleep(1000);
	} while(!dwCShell);

       DWORD dwAddress = FindPattern(...);

}

CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)GetAddresses, 0, 0, 0 );
edit:

Remember to check if the address is valid.
This is detected. D/cs after 5 mins in game.
Quote Originally Posted by ppl2pass View Post
This is detected. D/cs after 5 mins in game.
somehow you are right. it dcs me when i use it. without it i dont dc.
[php]bool cReadys::ReadyForSearch()
{
if(GetModuleHandle( L"ClientFX.fxd" ) != NULL
&& GetModuleHandle( L"CShell.dll" ) != NULL)
return true;
else
return false;
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
void cMisc::SearchAddies()
{
//Removed my Scans
Hack.Readys.FinAddresses = true;
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
DWORD __stdcall CallAddresses(LPVOID)
{

while(!Hack.Readys.ReadyForSearch())
Sleep(1);

Hack.Misc.SearchAddies();

return 0;
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
bool cReadys::IsIngame()
{
if(Hack.Readys.FinAddresses == false)
return false;

typedef bool (*BV)(void);
DWORD* LTBase = (DWORD*)Hack.Addresses. LTB;
BV pConnected = *(BV*)(*LTBase + 0x8C);

return pConnected();
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
if(Hack.Readys.IsIngame())
{
//HACKING!
}
[/php]

is that enough?
Quote Originally Posted by kotentopf View Post
[php]bool cReadys::ReadyForSearch()
{
if(GetModuleHandle( L"ClientFX.fxd" ) != NULL
&& GetModuleHandle( L"CShell.dll" ) != NULL)
return true;
else
return false;
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
void cMisc::SearchAddies()
{
//Removed my Scans
Hack.Readys.FinAddresses = true;
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
DWORD __stdcall CallAddresses(LPVOID)
{

while(!Hack.Readys.ReadyForSearch())
Sleep(1);

Hack.Misc.SearchAddies();

return 0;
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
bool cReadys::IsIngame()
{
if(Hack.Readys.FinAddresses == false)
return false;

typedef bool (*BV)(void);
DWORD* LTBase = (DWORD*)Hack.Addresses. LTB;
BV pConnected = *(BV*)(*LTBase + 0x8C);

return pConnected();
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
//---------------------------------------------------------------------
if(Hack.Readys.IsIngame())
{
//HACKING!
}
[/php]

is that enough?
he'll probably want the classes to go with it /
Quote Originally Posted by ac1d_buRn View Post


he'll probably want the classes to go with it /
[php]
typedef DWORD ADDY;

class cAddresses{
public:
ADDY LTClient;//Engine LTC
ADDY ASUS;//Glass Walls
ADDY Recoil;//NoRecoil
ADDY Reload;//NoReload(Visual)
ADDY Bypass;//Semi Bypass
ADDY RPP;//RandomPlayerPointer
ADDY LPP;//LocalPlayerPointer
ADDY Info;//Pointer for the Infoclass
ADDY LTB;//CShell LTC
ADDY SuperBullet;//Superbullets
bool bDataCompare(const BYTE* pData, const BYTE* bMask, const char* szMask);//Need for Pattern
ADDY FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask);//Search for an Addres and return it
};


class cReadys{
public:
bool ReadyForSearch();//Return true, when all needed Files Loaded
bool MouseIsOver(int x, int y, int w, int h);//Return true, when the Mouse is in the section
bool MouseIsIn(int x1, int y1, int x2, int y2);//Return true, if the Mosue is in the SQUAD
bool IsIngame();//Return true, when u are ingame
bool FinAddresses;//Is True, after SigScan
bool ReadyForHook();//Return true, when D3D can be enabled
};


class cValues{
public:
POINT MousePos;//MousePosition
int FontR, FontG, FontB;//FontColors
int MenuR, MenuG, MenuB;//MenuColors
int CrossR, CrossG, CrossB;//Crosshaircolor
int CrossSize;//Crosshairsize
int Infox,Infoy;//Infoposition
int Ammox,Ammoy;//Ammoposition
int HPx,HPy;//Healtbarposition
int Flykey, Hoverkey;//The Keys for the named hack
};


class cMisc{
public:
int WritePrivateProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName);//Write values, not strings
char *GetFrameRate();//Current FPS, NEED Globals
char *Fontname;//The Fontname
char *Path;//The SafePath
void GetMouse(POINT &Mouse);//Convert to the Local MousePosition
void OPK();//The void for the OPKThread
void HEXMemory(PVOID address, void* val, int bytes);//Edit the BYTES of an address
void SearchAddies();//Search for addies, convert a bool to true after finish scan
void HackIt(int sleep);//Normal hack void, best value is 250
void PermaHack();//For Hacks like Hover
void ConvertToKey(int &Key);//Convert an integer to the value of the pressed Key
void SetUp();//Set all by startup(Not D3D)
void SetUp3D();//Set all by startup(D3D Only)
void PatchCommand(bool OnOffVal, char *command, int On, int Off);//RunConsoleCommand
RCC RunConsoleCommand;
};


class cHack{
public:
cAddresses Addresses;//All addresses and the addresssearch
cReadys Readys;//All setting where return true if this is ok
cValues Values;//All Values for the DLL
cMisc Misc;//The other functions and settings
};
extern class cHack Hack;[/php]
What did I say before? Check if the address is valid..
Quote Originally Posted by Synns View Post
What did I say before? Check if the address is valid..
it gathers the addresses correctly. however if i use those addresses it works for a few minutes and dcs me.
Quote Originally Posted by SF-Abel View Post
it gathers the addresses correctly. however if i use those addresses in my hack it dcs me.
Post the code you are using.
Posts 115 of 19 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Need help?