AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   ProtectSMX - protect your plugins against decompilation! (Linux only) (https://forums.alliedmods.net/showthread.php?t=296783)

spumer 04-28-2017 17:00

ProtectSMX - protect your plugins against decompilation! (Linux only)
 
1 Attachment(s)
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 Sourcemode core.
If plugin already encrypted, then it will be decrypted on the fly.


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

2. Edit sourcepawn LoadPlugin code:

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


Sourcemod 1.7 (sourcemode/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

4. Rebuild sourcemod with your changes.

5. Search sourcepawn.jit.x86.so in build directory. Copy to your gameserver sourcemod/bin folder.
----

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.

----

Credits:
Blowfish for C++: https://github.com/h2so5/Blowfish

cruderustle 04-28-2017 18:17

Re: ProtectSMX - protect your plugins against decompilation! (Linux only)
 
I'm pretty sure this is against the SourceMod license.

headline 04-28-2017 18:49

Re: ProtectSMX - protect your plugins against decompilation! (Linux only)
 
"Stolen" plugins.

:roll:


All times are GMT -4. The time now is 00:16.

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