🔥
Prometheus
  • Prometheus
  • Getting Started
    • Installation
    • Obfuscating your first script
    • Command Line Options
    • Presets
    • Writing a custom Config File
    • The Config Object
  • Steps
    • WrapInFunction
    • Vmify
    • SplitStrings
    • ProxifyLocals
    • EncryptStrings
    • ConstantArray
  • advanced
    • Using Prometheus in your Lua Application
Powered by GitBook
On this page
  • Settings
  • Example
  1. Steps

ProxifyLocals

This Step wraps all locals into Proxy Objects

Settings

Name
type
description
values

LiteralType

enum

The type of the randomly generated literals

"dictionary", "number", "string", "any"

Example

in.lua
local x = "Hello, World!"
print(x)
out.lua
-- LiteralType = "dictionary"
local n = setmetatable
local D =
    n(
    {Wz = function()
        end},
    {__div = function(R, n)
            R.Wz = n
        end, __concat = function(R, n)
            return R.Wz
        end}
)
local R =
    n(
    {Js = "Hello, World!"},
    {__add = function(R, n)
            R.Js = n
        end, __index = function(R, n)
            return rawget(R, "Js")
        end}
)
print(R.Muirgen)
PreviousSplitStringsNextEncryptStrings

Last updated 3 years ago