# Lua Related

Contains callbacks that are related to the modification of Lua.


# VerboseString(string strSource, string strDumped)

Called every time Verbose intercepts a LuaJIT string allocation.
This callback allows you to capture strings as they're being deobfuscated at runtime.

Arguments:

  • string strSource - Where the string is from.
  • string strDumped - The dumped string.

Example:

    hood.Add("VerboseString", "AwesomeVerboseDumper", function(strSource, strDumped)
        if (strSource == "@lua/ObfuscatedScript.lua") then 
            print(strDumped)
        end
    end)

# OnLuaLoaded(string strSource, string strContent)

Called every time Lua code is loaded from a buffer. (lua_loadbufferx)

Arguments:

  • string strSource - Where is this being loaded from.
  • string strContent - What is being loaded.