Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does this code bypass Voiliax / Oxcool1's Script Builder sandbox?

Asked by 8 years ago

Voiliax / Oxcool1's Script Builder contains a strong sandbox which keeps track of all scripts ran and allows them to be stopped by virtually anyone if they wish so by them simply using the command "g/nos/all nol/all".

Now, some people (including me) thought this was quite intrusive and annoying, so there has been a "breakout" written. For the sake of curiosity, I'd be thankful if some genius from this forum could explain how the following piece of code works.

if game.PlaceId == 178350907 then 
    script.Parent = nil
else
    local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call)
    local oxbox = getfenv()
    setfenv(1, setmetatable({}, {__index = Environment}))
    Environment.coroutine.yield()
    oxbox.script:Destroy()
end

Thanks guys!

0
This is not what Scripting Helpers is for, but here's a basic explanation: It sets the script's environment to a different one, and removes the reference to 'script'. The sandbox most likely uses this, so it doesn't pick it up. Pyrondon 2089 — 8y

Answer this question