| View previous topic :: View next topic |
| Author |
Message |
alexanderjanjic How do I cheat?
Reputation: 0
Joined: 24 Dec 2007 Posts: 2
|
Posted: Thu May 15, 2008 1:19 pm Post subject: C++ Freezing Adresses and Changing Values like in Cheat Eng. |
|
|
Like the Topic says i want know how to be able to Freeze and Change Values in C++.
I am creating a Hack for Crysis (Nametag Hack) and i need to add this Function cause it needs to change a Value to 99999 and Freeze it . Would be happy if you guys could help me
I used Search but i cant really find something familiar.
|
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
|
| Back to top |
|
 |
alexanderjanjic How do I cheat?
Reputation: 0
Joined: 24 Dec 2007 Posts: 2
|
Posted: Thu May 15, 2008 2:31 pm Post subject: |
|
|
Could you maybe give me an exapmle Code
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Thu May 15, 2008 4:55 pm Post subject: |
|
|
Uhh, this depends.
If you're wanting to do this from a DLL, you'd just do something like
| Code: |
#include <windows.h> //for Sleep
BOOL bQuit = false;
DWORD val; //depends on the size, change the definition to fit what you need
void freezeVar() {
while( !bQuit ) {
*(char *)0xaddress = val;
Sleep(100);
}
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwMsg, LPVOID lpReserved)
{
switch( dwMsg )
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hModule );
val = 1337;
CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)freezeVar, NULL, 0, 0 );
return TRUE;
case DLL_PROCESS_DETACH:
bQuit = true;
return TRUE;
}
return TRUE;
}
|
_________________
|
|
| Back to top |
|
 |
|