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:
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