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.

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

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