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

ProtectSMX - protect your plugins against decompilation! (Linux only)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spumer
Senior Member
Join Date: Aug 2011
Old 05-06-2017 , 15:57   ProtectSMX - protect your plugins against decompilation! (Linux only)
Reply With Quote #1

ProtectSMX prevent decompilation of stolen plugins. This will be usefull to protect your plugins when using remote hosting.

What is this?
ProtectSMX encrypt any loaded plugin and save encrypted version on disk. Decrypted version passed to Sourcemod core.
If plugin already encrypted, then it will be decrypted on the fly.


Not so easy! It's a not Extension!
1. First of all you should compile Sourcemod by yourself! Just follow the official instruction: https://wiki.alliedmods.net/Building_SourceMod

2. Edit sourcepawn LoadPlugin code:

Sourcemod 1.8 (sourcemod/sourcepawn/vm/api.cpp)


Sourcemod 1.7 (sourcemod/sourcepawn/jit/engine2.cpp)


Of course you should add #include <protectsmx.h> to top of file. And add protectsmx.c to build script.

3. Change KEY in protectsmx.c to you own

----

I lost my build-vm-station and can't say you what should be changed in AMBuildScript and where files should be placed.
I drop this project, but if someone interested i can help by answer to questions.
In attachment you can found sources, examples and tests. "decrypted" file contains original plugin, when "charger_clipbrush_fix.smx" was encrypted. When this modification works - all loaded plugins will be encrypted like this.

You can try to do it with command
PHP Code:
./a.out your_plugin.smx 


----

Credits:
Blowfish for C++: https://github.com/h2so5/Blowfish
Blocked Attachments
File Type: gz protectsmx.tar.gz
__________________

Last edited by spumer; 05-06-2017 at 15:58.
spumer is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-06-2017 , 16:00   Re: ProtectSMX - protect your plugins against decompilation! (Linux only)
Reply With Quote #2

why you want protect plugins against decompilation when you have to provide the sourcemod with the binarys?
Not for nothing your old thread was trashed.
__________________
coding & free software
shanapu is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 05-06-2017 , 16:28   Re: ProtectSMX - protect your plugins against decompilation! (Linux only)
Reply With Quote #3

Quote:
Originally Posted by shanapu View Post
why you want protect plugins against decompilation when you have to provide the sourcemod with the binarys?
Not for nothing your old thread was trashed.
Just as this one will. OP, we will not support this here.
__________________
sneaK is offline
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 03:13.


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