Advertisement
willwac

Untitled

Nov 23rd, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local cfg = "/.bios.cfg"
  2. local serverPass = "admin"
  3. local myFile = shell.getRunningProgram()
  4. local nativeFS = fs
  5.  
  6. function fs.open(file, mode)
  7.     if string.find(file,cfg) then
  8.         error("Access Denied")
  9.     else
  10.         theirFileHandle = fs.open(file,mode)
  11.         return theirFileHandle
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement