# 🚫 Blocked Functions

The following functions are blocked in this environment. Calling them will likely result in an error (e.g., "Vulnerable function call blocked").

# os Library

Function Signature Original Purpose
os.execute([command]) Executes a system command.
os.exit([code]) Terminates the host program.
os.getenv(varname) Gets a process environment variable.
os.remove(filename) Deletes a file.
os.rename(old, new) Renames a file.
os.setlocale(...) Sets the current locale.
os.tmpname() Returns a temporary file name.

# io Library (Entire Library Blocked)

All standard io functions are blocked.

Function Signature Original Purpose
io.close([file]) Closes a file handle.
io.flush() Flushes the default output buffer.
io.input([file]) Sets/gets the default input file handle.
io.lines([filename]) Returns iterator for lines in a file.
io.open(filename, mode) Opens a file, returns a file handle.
io.output([file]) Sets/gets the default output file handle.
io.popen(prog, mode) Starts a process, returns a file handle.
io.read(...) Reads from the default input file handle.
io.tmpfile() Returns a handle for a temporary file.
io.type(obj) Checks if obj is a valid file handle.
io.write(...) Writes to the default output file handle.

# debug Library (Entire Library Blocked)

All standard debug functions are blocked.

Function Signature Original Purpose
debug.debug() Enters interactive debug mode.
debug.getfenv(o) Gets function/thread environment.
debug.gethook(...) Gets the current debug hook settings.
debug.getinfo(...) Returns info about a function/stack level.
debug.getlocal(...) Gets info about a local variable.
debug.getmetatable(o) Gets the metatable of an object.
debug.getregistry() Returns the registry table.
debug.getupvalue(f, up) Gets info about a function upvalue.
debug.setfenv(f, tbl) Sets function/thread environment.
debug.sethook(...) Sets the debug hook function/mask.
debug.setlocal(...) Sets the value of a local variable.
debug.setmetatable(o, t) Sets the metatable of an object.
debug.setupvalue(f, ...) Sets the value of a function upvalue.
debug.traceback(...) Generates a stack traceback string.
debug.upvalueid(f, n) Returns unique ID for an upvalue.
debug.upvaluejoin(...) Makes two upvalues share their value.

# Global Functions / Dynamic Code

Function Signature Original Purpose
dofile(filename) Executes a file as a Lua chunk.
load(func, ...) Loads a chunk from a reader function.
loadfile([filename]) Loads a chunk from a file (doesn't run it).
loadstring(s, ...) Loads a chunk from a string (doesn't run it).
getfenv([f]) Gets the environment table of a function.
setfenv(f, table) Sets the environment table of a function.
getmetatable(object) Gets the metatable of an object.
setmetatable(table, mt) Sets the metatable of a table.

# package Library (Specific Functions)

Function Signature Original Purpose
package.loadlib(...) Loads a C library dynamically.
package.loaders Table of loader functions (modifying is risky).