Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 57 additions & 80 deletions src/presets.lua
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 = {};
},
}
},
};
}
2 changes: 1 addition & 1 deletion src/prometheus/unparser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down