Skip to content

Commit 6133922

Browse files
authored
Merge pull request #218 from SpinnySpiwal/master
2 parents c0977c9 + 45c1779 commit 6133922

File tree

102 files changed

+1749
-1022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+1749
-1022
lines changed

benchmark.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ print("Iterations: " .. tostring(Iterations))
66
print("CLOSURE testing.")
77
local Start = os.clock()
88
local TStart = Start
9-
for Idx = 1, Iterations do
9+
for _ = 1, Iterations do
1010
(function()
1111
if not true then
1212
print("Hey gamer.")

cli.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
-- This Script is Part of the Prometheus Obfuscator by Levno_710
22
--
3-
-- test.lua
4-
-- This script contains the Code for the Prometheus CLI
3+
-- cli.lua
4+
--
5+
-- This Script contains the Code for the Prometheus CLI
56

67
-- Configure package.path for requiring Prometheus
78
local function script_path()

doc/getting-started/the-config-object.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The Config Object
22

3-
Prometheus takes a configuration objetct. In this object there can be many properties applied. \
3+
Prometheus takes a configuration object. In this object there can be many properties applied. \
44
The following table provides an overview:
55

66
| Property | type | possible values | default |
@@ -18,21 +18,19 @@ As an example, here is the code for the minify preset:
1818

1919
```lua
2020
{
21-
-- The default LuaVersion is Lua51
22-
LuaVersion = "Lua51";
23-
-- For minifying no VarNamePrefix is applied
24-
VarNamePrefix = "";
25-
-- Name Generator for Variables
26-
NameGenerator = "MangledShuffled";
27-
-- No pretty printing
28-
PrettyPrint = false;
29-
-- Seed is generated based on current time
30-
Seed = 0;
31-
-- No obfuscation steps
32-
Steps = {
33-
34-
}
35-
};
21+
-- The default LuaVersion is Lua51
22+
LuaVersion = "Lua51";
23+
-- For minifying no VarNamePrefix is applied
24+
VarNamePrefix = "";
25+
-- Name Generator for Variables
26+
NameGenerator = "MangledShuffled";
27+
-- No pretty printing
28+
PrettyPrint = false;
29+
-- Seed is generated based on current time
30+
Seed = 0;
31+
-- No obfuscation steps
32+
Steps = {}
33+
};
3634
```
3735

3836
### Steps
@@ -49,7 +47,7 @@ Steps = {
4947
-- Apply to Strings only
5048
StringsOnly = true;
5149
-- Apply to all Constants, 0.5 would only affect 50% of strings
52-
Treshold = 1;
50+
Threshold = 1;
5351
}
5452
},
5553
}

doc/getting-started/writing-a-custom-config-file.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ return {
1313
NameGenerator = "MangledShuffled";
1414
-- No pretty printing
1515
PrettyPrint = false;
16-
-- Seed is generated based on current time
16+
-- Seed is generated based on current time
1717
-- When specifying a seed that is not 0, you will get the same output every time
1818
Seed = 0;
1919
-- Obfuscation steps
@@ -25,7 +25,7 @@ return {
2525
-- Apply to Strings only
2626
StringsOnly = true;
2727
-- Apply to all Constants, 0.5 would only affect 50% of strings
28-
Treshold = 1;
28+
Threshold = 1;
2929
}
3030
},
3131
}

doc/steps/constantarray.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ description: >-
1010

1111
| Name | type | description |
1212
| -------------------- | ------- | ------------------------------------------------------------------------------------------------------------ |
13-
| Treshold | number | The relative amount of nodes that will be affected" |
14-
| StringsOnly | boolean | Wether to only Extract Strings |
15-
| Shuffle | boolean | Wether to shuffle the order of Elements in the Array |
16-
| Rotate | boolean | Wether to rotate the String Array by a specific (random) amount. This will be undone on runtime. |
17-
| LocalWrapperTreshold | number | The relative amount of nodes functions, that will get local wrappers |
18-
| LocalWrapperCount | number | The number of Local wrapper Functions per scope. This only applies if LocalWrapperTreshold is greater than 0 |
13+
| Threshold | number | The relative amount of nodes that will be affected" |
14+
| StringsOnly | boolean | Whether to only Extract Strings |
15+
| Shuffle | boolean | Whether to shuffle the order of Elements in the Array |
16+
| Rotate | boolean | Whether to rotate the String Array by a specific (random) amount. This will be undone on runtime. |
17+
| LocalWrapperThreshold | number | The relative amount of nodes functions, that will get local wrappers |
18+
| LocalWrapperCount | number | The number of Local wrapper Functions per scope. This only applies if LocalWrapperThreshold is greater than 0 |
1919
| LocalWrapperArgCount | number | The number of Arguments to the Local wrapper Functions |
2020
| MaxWrapperOffset | number | The Max Offset for the Wrapper Functions |
2121

@@ -32,7 +32,7 @@ print("4")
3232

3333
{% code title="out.lua" %}
3434
```lua
35-
-- LocalWrapperCount = 3
35+
-- LocalWrapperCount = 3
3636
-- LocalWrapperArgCount = 5
3737
local F = {"4", "3", "2", "1"}
3838
do

doc/steps/splitstrings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ description: This Step splits Strings to a specific or random length
88

99
| Name | type | description | Values |
1010
| ------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
11-
| Treshold | number | The relative amount of nodes that will be affected | 0 <= x <= 1 |
11+
| Threshold | number | The relative amount of nodes that will be affected | 0 <= x <= 1 |
1212
| MinLength | number | The minimal length for the chunks in that the Strings are splitted | x > 0 |
1313
| MaxLength | number | The maximal length for the chunks in that the Strings are splitted | x >= MinLength |
1414
| ConcatenationType | enum | The Functions used for Concatenation. Note that when using custom, 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 custom Concatenation is selected.<br>Note that when chosing inline, the code size may increase significantly!</p> | "global", "local", "inline" |
15+
| CustomFunctionType | enum | <p>The Type of Function code injection This Option only applies when custom Concatenation is selected.<br>Note that when choosing inline, the code size may increase significantly!</p> | "global", "local", "inline" |
1616
| CustomLocalFunctionsCount | number | The number of local functions per scope. This option only applies when CustomFunctionType = local | x > 0 |
1717

1818
### Example

doc/steps/vmify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: This Step will Compile your script and run it within a Vm
2+
description: This Step will Compile your script and run it within a VM.
33
---
44

55
# Vmify

0 commit comments

Comments
 (0)