Writing a custom Config File
Configuration Files for Prometheus are just lua modules, that return a single object, which contains the configuration. Let's say we have the following config file:
One can now obfuscate a script using this configuration by running:
You should get the following output:
As you can see, the only transformation that was applied to our Hello World example was putting all strings (in this case only "Hello, World!"
) into an array and creating a wrapper function for retrieving the value.
How does the Config File work?
The config file is simply a lua file, that returns the configuration object. Please note that this lua file is sandboxed by Prometheus when loading the configuration, meaning that you can't use any predefined functions like tostring
or libraries like math
.
See The Config Object to learn what this configuration object consists of.
Last updated