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