generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Sandbox Me.

Previous Thread :: Next Thread 
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
27 Jun 2014 09:57 PM
Alright, well I thought of a little idea that I could try. I require at least 1 person. However I will do this with whoever posts.

Basically the idea here, is for you to "trap" me within a scope, where I have restricted access. Example;

function RestrictHimHere()
--Lines of code I insert to access things globally outside of this function
end

So you can place me in any scope. Even a scope within a scope.

function Restrictions()
--Code to restrict me
do
--Lines of code I insert here.
end
end


Anyway, the goal here is for my to try and use things that you restrict me from doing, therefore sandboxing me.

function Restrictions()
Restrict = {print, math, string}
--Code to implement restrictions
do
--Here I am :D
end
end


Think you can trap me? Have at it. Good luck :D

Note; This may seem dumb, but it is a good way to test your scripting skills. So please try and trap me, you will be testing mine and your scripting skills while doing so.
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
27 Jun 2014 10:23 PM
game.ServerScriptStorage.LoadStringEnabled = false

Bypass it, I dare you.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
27 Jun 2014 10:28 PM
HA! That cannot be edited in a script. I still have unrestricted access :P


Do better. I dare you. Seriously, stick to the rules and limit me to a scope.
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
27 Jun 2014 10:35 PM
Can you tell me how you are trying to execute your function? Is it a regular script or loadstring?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
27 Jun 2014 10:36 PM
Oh and I forgot to mention, outside of my scope I'm trapped in, must have unrestricted access.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
27 Jun 2014 10:51 PM
I don't think you understand what I'm saying.

You have to make a scope which has restrictions to what it can do. For example, say I cannot use print, within the scope you want me to attempt it in, I'd have to get access to print. And then use it. However outside of the scope, should have unrestricted access to everything.
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
27 Jun 2014 11:25 PM
setfenv(1, {})
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
27 Jun 2014 11:49 PM
@free Your not trapping me in a scope.
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
28 Jun 2014 01:12 AM
I dislike these threads. You know why? Because here is what happens:
A) a scripter thinks of a particular solution to what he thinks is a tricky problem
B) he posts in the forums challenging other people to solve it, thinking that no one will be able to figure it out
C) whenever a valid solution is presented he rejects it because he thinks his solution is the only right solution
D) the thread ends with him posting what he thinks is his terrific solution but in reality isn't that great

Anyway, if for some artifical reason you want to reject setfenv, then this is another way of doing it.

do
  local string = nil
  local loadfile = nil
  local CFrame = nil
  local Instance = nil
  local game = nil
  local dofile = nil
  local tonumber = nil
  local tick = nil
  local Workspace = nil
  local require = nil
  local math = nil
  local _G = nil
  local UDim2 = nil
  local Region3int16 = nil
  local version = nil
  local settings = nil
  local Faces = nil
  local Vector2 = nil
  local time = nil
  local Vector3int16 = nil
  local Vector3 = nil
  local LoadLibrary = nil
  local pcall = nil
  local type = nil
  local getmetatable = nil
  local Stats = nil
  local rawset = nil
  local Version = nil
  local Axes = nil
  local gcinfo = nil
  local shared = nil
  local LoadRobloxLibrary = nil
  local ElapsedTime = nil
  local printidentity = nil
  local coroutine = nil
  local rawequal = nil
  local assert = nil
  local table = nil
  local stats = nil
  local PluginManager = nil
  local error = nil
  local UDim = nil
  local UserSettings = nil
  local select = nil
  local print = nil
  local delay = nil
  local pairs = nil
  local Color3 = nil
  local Vector2int16 = nil
  local Delay = nil
  local Spawn = nil
  local Ray = nil
  local _VERSION = nil
  local Region3 = nil
  local ipairs = nil
  local tostring = nil
  local os = nil
  local wait = nil
  local xpcall = nil
  local setfenv = nil
  local newproxy = nil
  local setmetatable = nil
  local Enum = nil
  local CellId = nil
  local unpack = nil
  local rawget = nil
  local next = nil
  local collectgarbage = nil
  local Wait = nil
  local getfenv = nil
  local ypcall = nil
  local loadstring = nil
  local load = nil
  local workspace = nil
  local Game = nil
  local BrickColor = nil
  local script = nil
  -- your code goes here
end
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 06:11 AM
Seranok


I did not reject setfenv(1, {}) he just didn't put it inside a scope.

As for your challenge, I got something that'll do the trick.


getfenv(1)["print"]("Hello seranok, I believe I have bypassed you restriction and accessed print!")



:D
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
28 Jun 2014 06:59 AM
^
getfenv is nil, remember

Also, Seranok is correct. I've been saying this for ages. Whenever people come up with these "challenges," and someone actually solves it, they just change the rules or say it's not allowed, which really just means "that's not how I wanted you to do it." =/
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 07:32 AM
Snap I never noticed getfenv being nil -_-

Also, I'm not like that. I've stated the rules already, I don't add any more.

I wish he hadn't made such a long list however, and just used setfenv(1,{})
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 07:40 AM
Hey...

He set Game as nil and not game :D


I could exploit that...


game.Workspace["Kohl's Admin Commands V2"].ScriptBase.Code.Value = 'print("Hello")'
local C = game.Workspace["Kohl's Admin Commands V2"].ScriptBase:Clone()
C.Parent = game.Workspace
C.Disabled = false


I just got unlimited access assuming the game has kohl's admin :D
Report Abuse
Temppeliherra is not online. Temppeliherra
Joined: 24 May 2014
Total Posts: 259
28 Jun 2014 08:04 AM
He DID set game as nil!
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 08:31 AM
Fail.

He made the list so long whenever I search for a value, I skip over it -_-

Let me see, I'll post back in a second.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
28 Jun 2014 08:32 AM
"Also, I'm not like that. I've stated the rules already, I don't add any more."

Uhm, no, you're exactly like that. Disregarding solutions because you don't like them. Twice you have said that Seranok's didn't work, and twice you have failed in trying to prove it. You just automatically assumed that it wouldn't work, without even testing it. - _ - And you also did not accept FreeScriptMaker's solution of doing "setfenv(1, {})" yet you even suggested that to Seranok:

"I wish he hadn't made such a long list however, and just used setfenv(1,{})"


Think about that for a moment.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 08:38 AM
I'm not in front of a computer so I can't test it. Also, have you not listened to my reasoning for disregarding Free's? It was not the fact h used setfenv(1,{}) it was because he never put me in a scope.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 11:58 AM
@ser

I guess you win XD

Although I still wished you used setfenv instead of creating a long list, lol.
gj
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
28 Jun 2014 02:54 PM
setfenv(1, {print=error})

pls

try to print now
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 03:16 PM
@dig


Put me in a scope, or else your code is invalid for the challenge -_-
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
28 Jun 2014 04:39 PM
ok

setfenv(1, {})

do
--code here plz
end
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
28 Jun 2014 05:08 PM
@above

"outside of my scope I'm trapped in, must have unrestricted access."
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image