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); } }
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); } }
Dont ban me
Why is it in a loop?
edit: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 );
Remember to check if the address is valid.
Last edited by Synns; 12-03-2010 at 08:58 PM.
SF-Abel (12-03-2010)
[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?
Last edited by kotentopf; 12-04-2010 at 05:01 AM.
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
n00bl3z (12-05-2010)
[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]
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
ac1d_buRn (12-04-2010),KawaiiSlut (12-04-2010),n00bl3z (12-05-2010)
What did I say before? Check if the address is valid..