Thumbs uphook code for WALLHACK

Posts 1–10 of 10 · Page 1 of 1
hook code for WALLHACK
this code is intended to be placed in the dll code for hooking through a global windows hook.

code:

Code:
// Hook structure.
SDLLHook D3DHook =
{
"DDRAW.DLL",
false, NULL, // Default hook disabled, NULL function pointer.
{
{ "DirectDrawCreate", MyDirectDrawCreate },
{ NULL, NULL }
}
};

BOOL APIENTRY DllMain( HINSTANCE hModule,
DWORD fdwReason,
LPVOID lpReserved )
{
// When initializing....
if ( fdwReason == DLL_PROCESS_ATTACH )
{
hDLL = hModule;

// We don't need thread notifications for what we're doing.
// Thus, get rid of them, thereby eliminating some of the
// overhead of this DLL
DisableThreadLibraryCalls( hModule );

// Only hook the APIs if this is the Everquest process.
GetModuleFileName( GetModuleHandle( NULL ),
Work,
sizeof(Work) );
PathStripPath( Work );

if ( stricmp( Work, "myhooktarget.exe" ) == 0 )
HookAPICalls( &D3DHook );
}

return TRUE;
}

Now all that remains is to get your DLL loaded into the target process.


if this helps or if you use it please press THANKS
If anyone was wondering, it replaces functions from other dll's with the ones in the dll you created and injected
How do u make a dll? and how do u make an injector?
first you probably wanna learn to code before you waste your time on that 2nd get a tut.
Quote Originally Posted by undergroundhack View Post
first you probably wanna learn to code before you waste your time on that 2nd get a tut.
this injector will not just work for wallhack or chams, it will inject whatever dll you program it to do so.
OH AND IF YOU REALLY CAN CODE WHAT IS PLAYER STRIDE AND WHAT HACK IS IT USED IN?(just a quick test)lol
Where's a tut to create hacks?
/bump


ya this is very usefull for a short code
ok im adding a comment so this is back up top i dont feel like reposting
after you compliedand run it will look exactly like this
Code:
// Hook structure.
SDLLHook D3DHook =
{
"DDRAW.DLL",
false, NULL, // Default hook disabled, NULL function pointer.
{
{ "DirectDrawCreate", MyDirectDrawCreate },
{ NULL, NULL }
}
};

BOOL APIENTRY DllMain( HINSTANCE hModule,
DWORD fdwReason,
LPVOID lpReserved )
{
// When initializing....
if ( fdwReason == DLL_PROCESS_ATTACH )
{
hDLL = hModule;

// We don't need thread notifications for what we're doing.
// Thus, get rid of them, thereby eliminating some of the
// overhead of this DLL
DisableThreadLibraryCalls( hModule );

// Only hook the APIs if this is the Everquest process.
GetModuleFileName( GetModuleHandle( NULL ),
Work,
sizeof(Work) );
PathStripPath( Work );

if ( stricmp( Work, "myhooktarget.exe" ) == 0 )
HookAPICalls( &D3DHook );
}

return TRUE;
}
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us