Scripts
The Scripts library provides advanced functions for inspecting and interacting with script objects. It allows you to analyse bytecode, retrieve closures and environments, and simulate the loading or running of scripts.
What can you do?
With the Scripts library, you can:
- Read compiled bytecode from scripts using
getscriptbytecode
- Get the bytecode hash of a script using
getscripthash
- Create a new closure based off of the script's bytecode using
getscriptclosure
- Access script environments with
getsenv
- Enumerate script instances using
getscripts
andgetrunningscripts
- List loaded modules via
getloadedmodules
- Determine the current script executing via
getcallingscript
- Compile and run code at runtime using
loadstring