PDA

View Full Version : Detouring



man2fight
03-07-2008, 09:46 AM
its FIXED sniperheadshot2

olie122333
03-07-2008, 11:24 AM
void Hook( )
{
DWORD dwPbclBase = ( DWORD )GetModuleHandle( "pbcl.dll" );
pPBPerformCheck = ( PBPerformCheck_t )DetourFunction( ( BYTE * )( dwPbclBase + 0xA36FC), ( BYTE * )_PBPerformCheck, 6 );
}


Does this code automaticaly run ? - or do I need to call it ?

Also, will this be out of date after every PB update ?

man2fight
03-07-2008, 02:24 PM
yes i have make an function to turn it on


if (CH_min)
{
PBChecks_Hook();
}

and after every pb update you have to change the check adress

g4mh4n4n
04-03-2008, 09:43 PM
where and how do you find this number 0xA36FC?

man2fight
04-05-2008, 09:36 AM
just use ida pro

loco2319
04-05-2008, 09:47 AM
Im trying to find PBCL.DLL for 2days now...Enyone know were it is cuz when i do search nothing apears ....I have vista if that may help.

Str8Soulja
04-05-2008, 09:48 AM
C:\Program Files\WarRock\System\pb

Wrhackadmin
04-12-2008, 09:43 AM
http://img371.imageshack.us/img371/7690/errorzg4.png

deejdd
04-14-2008, 05:11 AM
I get the same error as the guy above, how to fix?

m4c4r0ni3z
04-14-2008, 06:05 AM
http://img371.imageshack.us/img371/7690/errorzg4.png

you have to include pbcl.dll in your hack

deejdd
04-14-2008, 06:16 AM
So ehm where do i post all this?

Dxt-Cobra
04-14-2008, 10:29 AM
Rofl,no you dont include it.If you dont know how to add Detours.lib to your VC directories then you cannot use a detoured function as shown above.

and the pPBPerformCheck,PBPerformCheck_t is a made function to detour a pb check,Originally made by Okidoki form uc.forums.You can make your own if you have the Detours.lib set up correctly.


Here is a detoured Function:



typedef int ( *SomeCheck_t )(int iEAX, unsigned int Count, char *iEsi);
SomeCheck_t pSomeCheck;

int _SomeCheck ( int iEAX, unsigned int Count,char *iEsi)
{

// used to call hacks off here (if pb is checking,this is active)

int iReturn = pSomeCheck( iEAX, Count, iEsi);

//used to call hacks back on if the check is not being called

return iReturn;
}


Here is the part to hook the pb check(needs to be called in DllMain)




unsigned long PB = 0;
#define PBOFFSET 0x"your offset here"

pSomeCheck = ( SomeCheck_t )DetourFunction( ( BYTE * )( PB + PBOFFSET), ( BYTE * )_SomeCheck);


now you have hooked a function in pbcl.dll
This method no longer works ,just a example how to hook somthing

mojo007
04-14-2008, 10:38 AM
where to get detour lib set deaotur.cpp and deaotur.h ??

and this method not longer work, so its get detectet =

deejdd
04-14-2008, 11:07 AM
On google you can find them.