[EXTENSION] Signature Scan Extension with example
2 Attachment(s)
Hey guys,
For those of you that do not know what signature scanning is, please reference the following: http://wiki.alliedmods.net/Signature_Scanning Quote:
Credit Thanks to everyone in IRC, especially BAILOPAN, cybermind, and sawce Installation 1. Extract 'sigoffset.ext.dll' and 'sigoffset.ext.so' to the 'addons/sourcemod/extensions' folder. 2. Extract 'sigoffset.inc' to the 'addons/sourcemod/scripting/include' folder. Functions There are 4 functions that you can use in your plugins. First is SignatureScanFind. Quote:
Next, SignatureScanCall. Quote:
And last, SignatureScanCall_NoIndex: Quote:
Quote:
Here is a small example on usage of the functions. This function is called on plugin init. Code:
ignite_index=SignatureScanFind("CBaseAnimating::Ignite","\x56\x8B\xF1\x8B\x86\xBC\x00\x00\x00\xC1\xE8\x1B\xA8\x01\x0F\x85\x9A\x00\x00\x00\x8B\x16\xFF\x92\xF0\x00\x00\x00\x80\x7C\x24\x0C\x00\x74\x08\x84\xC0\x0F\x84\x83\x00\x00\x00\x3C\x01\x75\x20\x80\x7C\x24\x14\x00\x75\x19\x8B\xCE\xE8\x83\x1A\x01\x00\x85\xC0\x74\x0E\x8B\x10\x8B\xC8\xFF\x92\x08\x05\x00\x00\x84\xC0\x74\x5F\x57\x6A\x01\x56\xE8\x48\xEA\x07\x00\x8B\xF8\x83\xC4\x08\x85\xFF\x74\x3D\x8B\x44\x24\x0C\x50\x8B\xCF\xE8\x83\xE5\x07\x00\x68\x00\x00\x00\x08\x8B\xCE","xxx?????????????????xxx????????????xx??????xx??xxxxx??xxx????????xxxxx?????xx??xxxxx????xxxxxxx??xxxxxxxx????xxxxxxx",116,"_ZN14CBaseAnimating6IgniteEfbfb"); Next, this is called where ever wanted. Code:
SignatureScanCall(ignite_index,player_index,SIGTYPE_CBASEANIMATING,PARAM_FLOAT,20.0,PARAM_INT,0,PARAM_FLOAT,10.0,PARAM_INT,0); Have fun. :) Also, I have updated the source code. |
Re: [EXTENSION] Signature Scan Extension with example
Excellent work man, this will be quite useful....
|
Re: [EXTENSION] Signature Scan Extension with example
Glad to see you got it out the door. Now for the Linux version!
|
Re: [EXTENSION] Signature Scan Extension with example
Update 4/13/07
-Added Linux support and binaries. |
Re: [EXTENSION] Signature Scan Extension with example
Very nice!
|
Re: [EXTENSION] Signature Scan Extension with example
Dude you're scaring me with your awesomeness...
But seriously, again, nice work...I'll probably figure out a use for this somewhere soon >.<. |
Re: [EXTENSION] Signature Scan Extension with example
Added sourcecode.
|
Re: [EXTENSION] Signature Scan Extension with example
Update 5/23/07
-Fixed heap corruption problems. Someone please test on linux and let me know if it works. |
Re: [EXTENSION] Signature Scan Extension with example
Update 5/26/07
-Added SignatureScanCall_NoIndex, see main post. |
Re: [EXTENSION] Signature Scan Extension with example
Update 5/26/07
-Added 13 param limit for Call and 15 param limit for Call_NoIndex |
All times are GMT -4. The time now is 00:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.