diff --git a/src/presets.lua b/src/presets.lua index 00ed469..0012728 100644 --- a/src/presets.lua +++ b/src/presets.lua @@ -1,99 +1,65 @@ -- This Script is Part of the Prometheus Obfuscator by Levno_710 -- --- pipeline.lua +-- presets.lua -- -- This Script Provides some configuration presets return { ["Minify"] = { - -- The default LuaVersion is Lua51 LuaVersion = "Lua51"; - -- For minifying no VarNamePrefix is applied VarNamePrefix = ""; - -- Name Generator for Variables NameGenerator = "MangledShuffled"; - -- No pretty printing PrettyPrint = false; - -- Seed is generated based on current time Seed = 0; - -- No obfuscation steps - Steps = { - - } + Steps = {} }; ["Weak"] = { - -- The default LuaVersion is Lua51 LuaVersion = "Lua51"; - -- For minifying no VarNamePrefix is applied VarNamePrefix = ""; - -- Name Generator for Variables that look like this: IlI1lI1l NameGenerator = "MangledShuffled"; - -- No pretty printing PrettyPrint = false; - -- Seed is generated based on current time Seed = 0; - -- Obfuscation steps Steps = { { Name = "Vmify"; - Settings = { - - }; + Settings = {}; }, { Name = "ConstantArray"; Settings = { - Treshold = 1; + Treshold = 1; StringsOnly = true; } }, { Name = "WrapInFunction"; - Settings = { - - } + Settings = {} }, } }; ["Vmify"] = { - -- The default LuaVersion is Lua51 LuaVersion = "Lua51"; - -- For minifying no VarNamePrefix is applied VarNamePrefix = ""; - -- Name Generator for Variables that look like this: IlI1lI1l NameGenerator = "MangledShuffled"; - -- No pretty printing PrettyPrint = false; - -- Seed is generated based on current time Seed = 0; - -- Obfuscation steps Steps = { { Name = "Vmify"; - Settings = { - - }; + Settings = {}; }, } }; ["Medium"] = { - -- The default LuaVersion is Lua51 LuaVersion = "Lua51"; - -- For minifying no VarNamePrefix is applied VarNamePrefix = ""; - -- Name Generator for Variables NameGenerator = "MangledShuffled"; - -- No pretty printing PrettyPrint = false; - -- Seed is generated based on current time Seed = 0; - -- Obfuscation steps Steps = { { Name = "EncryptStrings"; - Settings = { - - }; + Settings = {}; }, { Name = "AntiTamper"; @@ -103,93 +69,104 @@ return { }, { Name = "Vmify"; - Settings = { - - }; + Settings = {}; }, { Name = "ConstantArray"; Settings = { - Treshold = 1; + Treshold = 1; StringsOnly = true; - Shuffle = true; - Rotate = true; + Shuffle = true; + Rotate = true; LocalWrapperTreshold = 0; } }, { Name = "NumbersToExpressions"; - Settings = { - - } + Settings = {} }, { Name = "WrapInFunction"; - Settings = { - - } + Settings = {} }, } }; ["Strong"] = { - -- The default LuaVersion is Lua51 LuaVersion = "Lua51"; - -- For minifying no VarNamePrefix is applied VarNamePrefix = ""; - -- Name Generator for Variables that look like this: IlI1lI1l NameGenerator = "MangledShuffled"; - -- No pretty printing PrettyPrint = false; - -- Seed is generated based on current time Seed = 0; - -- Obfuscation steps Steps = { { Name = "Vmify"; - Settings = { - - }; + Settings = {}; }, { Name = "EncryptStrings"; - Settings = { - - }; + Settings = {}; }, { Name = "AntiTamper"; - Settings = { - - }; + Settings = {}; }, { Name = "Vmify"; - Settings = { - - }; + Settings = {}; }, { Name = "ConstantArray"; Settings = { - Treshold = 1; + Treshold = 1; StringsOnly = true; - Shuffle = true; - Rotate = true; + Shuffle = true; + Rotate = true; LocalWrapperTreshold = 0; } }, { Name = "NumbersToExpressions"; - Settings = { - - } + Settings = {} }, { Name = "WrapInFunction"; + Settings = {} + }, + } + }; + ["LuraphStyle"] = { + LuaVersion = "Lua51"; + VarNamePrefix = ""; + NameGenerator = "Mangled"; + PrettyPrint = false; + Seed = 0; + Steps = { + { + Name = "EncryptStrings"; + Settings = {}; + }, + { + Name = "Vmify"; + Settings = {}; + }, + { + Name = "Vmify"; + Settings = {}; + }, + { + Name = "ConstantArray"; Settings = { - - } + Treshold = 1; + StringsOnly = true; + Shuffle = true; + Rotate = true; + LocalWrapperTreshold = 0; + }; + }, + { + Name = "WrapInFunction"; + Settings = {}; }, } - }, + }; } diff --git a/src/prometheus/unparser.lua b/src/prometheus/unparser.lua index b32e98f..c1daee7 100644 --- a/src/prometheus/unparser.lua +++ b/src/prometheus/unparser.lua @@ -835,7 +835,7 @@ function Unparser:unparseExpression(expression, tabbing) local p = false; for i, entry in ipairs(expression.entries) do p = true; - local sep = self.prettyPrint and "," or (math.random(1, 2) == 1 and "," or ";"); + local sep = "," if i > 1 and not inlineTable then code = code .. sep .. self:optionalWhitespace(self:newline() .. self:tabs(tableTabbing)); elseif i > 1 then