You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/getting-started/obfuscating-your-first-script.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,12 @@ print("Hello, World")
34
34
```
35
35
{% endcode %}
36
36
37
-
As you can see, the file hasn't changed at all. That is because by default prometheus is just a minifier and the code we gave it was already as small as possible. To actually obfuscate the file, prometheus must be told which obfuscation steps it should apply in which order. In order to do this, the cli provides the `--preset` option which allows you to specify the name of a predefined configuration. There are currently only two presets:
37
+
As you can see, the file hasn't changed at all. That is because by default prometheus is just a minifier and the code we gave it was already as small as possible. To actually obfuscate the file, prometheus must be told which obfuscation steps it should apply in which order. In order to do this, the cli provides the `--preset` option which allows you to specify the name of a predefined configuration. There are currently the following presets:
38
38
39
39
* Minify
40
+
* Vm
41
+
* Weak
42
+
* Medium
40
43
* Strong
41
44
42
45
In order to perform the obfuscation, you need to specify that Prometheus should use the Strong preset:
| Treshold | number | The relative amount of nodes that will be affected | 0 <= x <= 1|
12
-
| MinLength | number | The minimal length for the chunks in that the Strings are splitted | x > 0|
13
-
| MaxLength | number | The maximal length for the chunks in that the Strings are splitted | x >= MinLength|
14
-
| ConcatenationType | enum | The Functions used for Concatenation. Note that when using coustom, the String Array will also be Shuffled | "strcat", "table", "coustom" |
15
-
|CoustomFunctionType| enum | <p>The Type of Function code injection This Option only applies when coustom Concatenation is selected.<br>Note that when chosing inline, the code size may increase significantly!</p> | "global", "local", "inline"|
16
-
|CoustomLocalFunctionsCount| number | The number of local functions per scope. This option only applies when CoustomFunctionType = local | x > 0|
| Treshold | number | The relative amount of nodes that will be affected | 0 <= x <= 1 |
12
+
| MinLength | number | The minimal length for the chunks in that the Strings are splitted | x > 0 |
13
+
| MaxLength | number | The maximal length for the chunks in that the Strings are splitted | x >= MinLength |
14
+
| ConcatenationType | enum | The Functions used for Concatenation. Note that when using coustom, the String Array will also be Shuffled | "strcat", "table", "custom" |
15
+
|CustomFunctionType| enum | <p>The Type of Function code injection This Option only applies when coustom Concatenation is selected.<br>Note that when chosing inline, the code size may increase significantly!</p> | "global", "local", "inline" |
16
+
|CustomLocalFunctionsCount| number | The number of local functions per scope. This option only applies when CoustomFunctionType = local | x > 0 |
0 commit comments