LUA Console: We Need A Permissions System

  • Cr15py
    10th Jun 2011 Member 0 Permalink
    Here's the inescapable reality about implementing a complete, non-specific language like LUA. IT HAS FEATURES. What do I mean by that? I mean it has a lot of features, it's meant to enable someone to whatever they can conceivably think of to do with it, that's within their computers capabilities. Now of course there's lots of good in it for Powder Toy, we can integrate dynamic functionality(sync a clock in-game with our computer clock for example), but it can also do a lot of bad. Like what? Like send us a to a bad url, crash our computers, download and execute a virus, exploit running programs, delete our files... for all the good, there is bad.

    So... what to do? My thoughts, pop up a permissions box for anything trying to access the following:
    -The internet(sockets)
    -Files
    -Command Prompt
    -Win32 Functions
    -Load Libraries
    -And whatever else could be dangerous

    Download this script for a simple demo of ONE thing someone could do. This will not harm your computer, just don't run it before saving any creations you're making. To run it use dofile(string) or assert(loadfile(string)).
  • Neospector
    10th Jun 2011 Member 0 Permalink
    download and execute a virus

    >Implying Norton has SOME use.
  • TheWiseEyes
    10th Jun 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Uberness
    10th Jun 2011 Member 0 Permalink
    >Implying you can make viruses with LUA
  • Neospector
    10th Jun 2011 Member 0 Permalink
    @UBERNESS (View Post)
    >Implying you thought he meant making them with Lua.
  • Uberness
    10th Jun 2011 Member 0 Permalink
    @Neospector (View Post)
    >Implying that we need to stop implying.
  • Neospector
    10th Jun 2011 Member 0 Permalink
  • Vou
    10th Jun 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • plead-for-destruction
    10th Jun 2011 Member 0 Permalink
    @Vou (View Post)
    dont swear
    @Cr15py (View Post)
    how do you sync a clock in game with a comp clock?
  • mniip
    10th Jun 2011 Developer 0 Permalink
    @Cr15py (View Post)
    And API functions.
    using them u normally can switch off computer just by sending some messages
    (the easiest way is to "click" start menu and "click" shutdown)
    (or u can type "shutdows /s" in cmd)
    (or u can make 0xFF9A interrupt with some interesing params)

    + how to 'set temp metl 900' in lua?
    make a loop?