Thread
: [Solved]
Detour the same function twice
View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
02-06-2020 , 07:03 Re: Detour the same function twice
#
5
Have done this several times. Only need to wildcard first 6 bytes. Suggest wildcard both signatures so load order isn't a factor. Unloading you raise a good point, but who really unloads extensions anyway?
Maybe alloc some memory to maintain a list of different detours and point to that. If any of the first 6 bytes don't match the original expected bytes then we have a ptr to list. Check the list for bytes which indicate a detour and have it call each one as required. Then you can safely remove the detoured addresses from the list. Something like that, don't know how possible, just an idea.
__________________
[
My Plugins
]
>>
GitHub
<<
[TUT] Scripting
ANY
:
Command & ConVar - Buffer Overflow Fixer
|
Spray Exploit Fixer
L4D1/2
:
Left 4 DHooks
|
Info Editor
|
Priority Patch
Last edited by Silvers; 02-06-2020 at
07:12
.
Silvers
View Public Profile
Send a private message to Silvers
Find More Posts by Silvers