lua-users home
lua-l archive

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



On Wed, Nov 24, 2010 at 2:57 PM, HyperHacker <hyperhacker@gmail.com> wrote:
On Wed, Nov 24, 2010 at 07:21, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> I'm going to look at the link posted earlier with the code from the
>> official try lua and see what's being restricted there.
>
> Just this:
>
>     arg=nil
>     debug.debug=nil
>     debug.getfenv=getfenv
>     debug.getregistry=nil
>     dofile=nil
>     io={write=io.write}
>     loadfile=nil
>     os.execute=nil
>     os.getenv=nil
>     os.remove=nil
>     os.rename=nil
>     os.tmpname=nil
>     package.loaded.io=io
>     package.loaded.package=nil
>     package=nil
>     require=nil
>
>

   package.loaded.io=io
   package.loaded.package=nil
   package=nil
This doesn't look right...



Unless someone's kept a reference to package.loaded beforehand.

Robby