Raised This Month: $51 Target: $400
 12% 

[Solved] Finding Signatures For Hooker Class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-13-2013 , 05:56   [Solved] Finding Signatures For Hooker Class
Reply With Quote #1

I'm wondering why the first signature works and the second one doesn't.

PHP Code:
typedef void ( * SV_DropClient_Type ) ( client_t *, intchar *, ... );
typedef int ( * KickBack_Type ) ( intfloatfloatfloatfloatfloatfloatint );

/* ... */

SV_DropClient_Type SV_DropClient_Address;
KickBack_Type KickBack_Address;

/* ... */

SV_DropClient_Address g_Hooker.MemorySearch SV_DropClient_Type > ( "0x55,0x8B,*,0x81,*,*,*,*,*,0x8B,*,*,0x53,0x56,0x8D,*,*,0x57,0x50,0x51", ( void * ) gpGlobals);

printf"SV_DropClient = %s\n"g_Hooker.CreateHook( ( void * ) SV_DropClient_Address, ( void * ) SV_DropClient) ? "Hooked" "Unhooked" );

/* ... */

KickBack_Address g_Hooker.MemorySearch KickBack_Type > ( "0x83,?,?,?,?,?,?,?,0xD9,?,?,?,0xD9,?,?,?,0xD9,?,?,?,0x8B", ( void * ) gpGlobals);

printf"KickBack = %s\n"g_Hooker.CreateHook( ( void * ) KickBack_Address, ( void * ) KickBack) ? "Hooked" "Unhooked" ); 
Console output:

Code:
SV_DropClient = Hooked
KickBack = Unhooked
I tried with question marks and asterisks too.
__________________

Last edited by claudiuhks; 04-13-2013 at 07:30.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-13-2013 , 07:12   Re: [Awaiting Answer] Finding Signatures For Hooker Class
Reply With Quote #2

If you're talking about CBasePlayerWeapon::KickBack(), it's a function from the game, not engine and signature is wrong.

Code:
"0x51,0x56,0x8B,*,0x8B,*,*,*,*,*,0x83,*,*,0x89"
__________________
Arkshine is offline
Old 04-13-2013, 07:12
Arkshine
This message has been deleted by Arkshine. Reason: Lag.
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-13-2013 , 07:14   Re: [Awaiting Answer] Finding Signatures For Hooker Class
Reply With Quote #3

Thank you for showing the good signature sentence.
What about engine/game differences, is there any linkage with ( void * ) gpGlobals parameter?
__________________

Last edited by claudiuhks; 04-13-2013 at 07:16.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-13-2013 , 07:19   Re: [Awaiting Answer] Finding Signatures For Hooker Class
Reply With Quote #4

gpGlobals will point inside engine library.

To point inside game library, you can use for example MDLL_Spawn.
__________________

Last edited by Arkshine; 04-13-2013 at 07:21.
Arkshine is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-13-2013 , 07:29   Re: [Awaiting Answer] Finding Signatures For Hooker Class
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
gpGlobals will point inside engine library.

To point inside game library, you can use for example MDLL_Spawn.
Didn't know that.
Thanks for your answer.
__________________

Last edited by claudiuhks; 04-13-2013 at 07:30.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-13-2013 , 14:22   Re: [Solved] Finding Signatures For Hooker Class
Reply With Quote #6

chooker rocks
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode