lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Jul 26, 2017 at 8:08 PM, Mikhail Zajcev <zajcev.m@yandex.ru> wrote:
Egor wrote:

> 1) I still can access one of original tables: getmetatable("")

Fixed this.

> 2) _ENV._G == _ENV, it is a "first-level circular references", so _G will not be available?

Manually added env._G (which is == env)

http://codepad.org/6OIg8kqK



I still can access original _G with this trick:

local original_G = load("return _G")()

You should redefine "load()" somehow to hide original _G from untrusted code