lua-sandbox
lua-sandbox copied to clipboard
Improving the quota enforcer
Currently the quota enforcer does not protect agains malicious scripts using pcall. This ensures an error is repeatedly called untill the stack returns to the sandbox.protect method.
A proof of concept script:
dofile('sandbox.lua').run([==[while true do pcall(function() while true do end end) end ]==], {quota=100})