LightbulbCan somebody give me a hack code and.. ... ?

Posts 1–8 of 8 · Page 1 of 1
Can somebody give me a hack code and.. ... ?
Can somebody give me a hack code in c++ and in every line to write for what did he did it ? i mean to show me that i will know every step for how using and chnaging poiters of the game and some cool staffs like it ?


Thank you !!/yea
Quote Originally Posted by thekm1994 View Post
Can somebody give me a hack code in c++ and in every line to write for what did he did it ? i mean to show me that i will know every step for how using and chnaging poiters of the game and some cool staffs like it ?


Thank you !!/yea
What game are you looking for? More description please
First, get familiar with pointers: Pointers.

Steps:

-Get the process ID
FindWindow
GetWindowThreadProcessId

-Get process handle
OpenProcess

-Write to processes memory
WriteProcessMemory

If you're injecting a module into the process it's a lot easier since you have direct memory access. You'll know what this part means once you've got pointers all figured out.

I believe spwn has a thread with some code using all these functions, check it out..
mwb12
any game ! better to shoting game
Void said all you need to know. I was just gonna say if you wanted combat arms hacks, you can just use this function:
[php]
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *L***ient = ( DWORD* )( 0x37775D68 );
void* CONoff = ( void* )*( DWORD* )( *L***ient + 0x208 );

__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
[/php]

Example Usage in a C&Pable base:
[php]
#include <windows.h>
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *L***ient = ( DWORD* )( 0x37775D68 );
void* CONoff = ( void* )*( DWORD* )( *L***ient + 0x208 );

__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;

return false;
}


void main()
{
while (!IsGameReadyForHook()){
Sleep(20);
}
bool chams = false;
while(true){
if(GetAsyncKeyState(VK_NUMPAD1)<0){
PushToConsole("SkelModelStencil 0");
chams = false;
} else {
PushToConsole("SkelModelStencil 1");
chams = true;
}
}
}

BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
[/php]

And yes, void covered any other game hacking
but pls write near any line what you did there , that code s hard , i know to red codes but i wanna learn more !!!
It's only hard because you haven't even gotten passed being able to make a simple calculator on your own.
Learn the basics of C++ first, hacking is not something you should try and do if you're a beginner in C++...

~ locked ~
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us