Advertisement
Marlingaming

CC Tweaked CCSPS 20 - Installer

Mar 4th, 2022 (edited)
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. local tArg = {...}
  2. fs.makeDir("os/SystemFiles/Programs")
  3. fs.makeDir("os/SystemFiles/Users")
  4. fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Documents"))
  5. fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Images"))
  6. fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Videos"))
  7. fs.makeDir(fs.combine("os/SystemFiles/Users",tArg[1],"Favorites"))
  8. fs.makeDir("os/System/Scripts")
  9. fs.makeDir("os/System/Files")
  10. fs.makeDir("os/System/Files/Images")
  11. fs.makeDir("os/System/Packages")
  12. fs.makeDir("os/Backups")
  13. fs.makeDir("boot/Security")
  14. fs.makeDir("boot/Methods/start")
  15. fs.makeDir("boot/Methods/Update")
  16. fs.makeDir("boot/Methods/Crash")
  17. fs.makeDir("boot/Files")
  18.  
  19. local ReqFiles = {{"boot/Methods/start/Mount.lua","mnmuBqNY"},{"boot/Security/SystemIntegrityCheck.lua","2GakChNZ"},{"os/System/start.lua","Doc"},{"startup.lua","Doc"},{"boot/BootInstructions.txt","Doc"},{"os/SystemFiles/Paths.txt","Doc"}}
  20. local Req = fs.open("boot/Security/ReqFiles.txt","w")
  21. Req.write(textutils.serialize(ReqFiles))
  22. Req.close()
  23.  
  24. local User = fs.open(fs.combine("os/SystemFiles/Users",tArg[1],"userData.os"),"w")
  25. User.writeLine(tArg[1])--Username
  26. User.writeLine(tArg[2])--Password
  27. User.writeLine(1)
  28. User.writeLine(math.random(11111,99999))--IP
  29. User.close()
  30. local BTI = fs.open("boot/BootInstructions.txt","w")
  31. BTI.writeLine("boot/Methods/start/Mount.lua")
  32. BTI.writeLine("boot/Security/SystemIntegrityCheck.lua")
  33. BTI.writeLine("os/System/start.lua")
  34. BTI.close()
  35.  
  36. local Paths = fs.open("os/SystemFiles/Paths.txt","w")
  37. Paths.writeLine("User = "..tArg[1])
  38. Paths.writeLine("Programs = 'os/SystemFiles/Programs'")
  39. Paths.writeLine("Scripts = 'os/System/Scripts'")
  40. Paths.writeLine("Files = 'os/System/Files'")
  41. Paths.close()
  42.  
  43. local TaskBar = fs.open("os/SystemFiles/TaskbarShortcuts.txt","w")
  44.  
  45. TaskBar.close()
  46.  
  47. local Desktop = fs.open("os/SystemFiles/DesktopShortcuts.txt","w")
  48.  
  49. Desktop.close()
  50. local BR = fs.open("boot/Reader.lua","w")
  51. BR.writeLine("local Content")
  52. BR.writeLine("local file = fs.open('boot/BootInstructions.txt','r')")
  53. BR.writeLine("repeat")
  54. BR.writeLine(" Content = file.readLine()")
  55. BR.writeLine(" if Content ~= nil then shell.run(Content) end")
  56. BR.writeLine("until Content == nil")
  57. BR.writeLine("file.close()")
  58. BR.close()
  59. local St = fs.open("startup.lua","w")
  60. St.writeLine("shell.run('boot/Reader.lua')")
  61. St.close()
  62.  
  63. local OST = fs.open("os/System/start.lua","w")
  64. OST.writeLine("os.queueEvent('taskOpen','os/System/Scripts/Desktop.lua')")
  65. OST.writeLine("shell.run('os/System/Scripts/Taskmanager.lua')")
  66. OST.close()
  67.  
  68. shell.run("pastebin","get","mnmuBqNY","boot/Methods/start/Mount.lua")
  69. shell.run("pastebin","get","2GakChNZ","boot/Security/SystemIntegrityCheck.lua")
  70. shell.run("pastebin","get","10nkCrPq","os/System/Scripts/Taskmanager.lua")
  71. shell.run("pastebin","get","iGb2xSwW","os/System/Scripts/Desktop.lua")
  72. shell.run("pastebin","get","tu1bkxmE","os/System/Scripts/ShortcutManager.lua")
  73. fs.makeDir("os/SystemFiles/Programs/FileNavigator.cpf")
  74. shell.run("pastebin","get","fYyfirUr","os/SystemFiles/Programs/FileNavigator.cpf/Navigator.lua")
  75. shell.run("pastebin","run","GQne73JY")
  76.  
  77. shell.run("os/System/Scripts/ShortcutManager.lua","FileNav","os/SystemFiles/Programs/FileNavigator.cpf/Navigator.lua","Taskbar")
  78. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement