Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oxSandbox1,oxSandbox2,oxSandbox3 = getfenv(),getfenv(0),getfenv(1)
- -- their metatables are locked, but still gonna print them anyway
- print(getmetatable(oxSandbox1),getmetatable(oxSandbox2),getmetatable(oxSandbox3))
- local s1,s2,s3 = oxSandbox1,oxSandbox2,oxSandbox3
- coroutine.wrap(function()
- setfenv(0,{})
- end)()
- rawset(s1,"testKey","1")
- rawset(s2,"testKey","2")
- if rawget(s1,"testKey") then
- print"Bypassed sandbox"
- else
- error"Sandbox not bypassed!"
- end
- if rawget(s2,"testKey") then
- print"Bypassed sandbox2"
- else
- error"Sandbox not bypassed"
- end
- setmetatable(0,{__index=function()error"noPls"end,__newindex=function()error"noPls"end,__metatable="Locked"})
- setmetatable(1,{__index=function()error"noPls"end,__newindex=function()error"noPls"end,__metatable="Locked"})
- print(getmetatable(s1),getmetatable(s2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement