Advertisement
Marlingaming

Aperture Science OS System - Security Check

Sep 15th, 2021 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.63 KB | None | 0 0
  1. --Security Checker
  2. --this program checks all important files and ensures all required materials are on the computer's drive
  3. --this program is for minecraft 1.16.5, cc tweaked
  4. local ERRORS = 0
  5. local MissingFiles = {}
  6.  
  7. if fs.exists("startup") == false then
  8.   ERRORS = ERRORS + 1
  9.   MissingFiles[ERRORS] = "startup"
  10. end
  11.  
  12. if fs.exists("ApertureOS_Boot") == false then
  13.   ERRORS = ERRORS + 1
  14.   MissingFiles[ERRORS] = "Boot"
  15. end
  16.  
  17. if fs.exists("ApertureOS_LoginManager") == false then
  18.   ERRORS = ERRORS + 1
  19.   MissingFiles[ERRORS] = "Login"
  20. end
  21.  
  22. if fs.exists("ApertureOS_Base") == false then
  23.   ERRORS = ERRORS + 1
  24.   MissingFiles[ERRORS] = "Base"
  25. end
  26.  
  27. if fs.exists("ApertureOS_UpdateHandler") == false then
  28.   ERRORS = ERRORS + 1
  29.   MissingFiles[ERRORS] = "UpdateHandler"
  30. end
  31.  
  32. if fs.exists("ApertureOS_ApplicationMenu") == false then
  33.   ERRORS = ERRORS + 1
  34.   MissingFiles[ERRORS] = "AppMenu"
  35. end
  36.  
  37. if fs.exists("ApertureOS_SettingsMenu") == false then
  38.   ERRORS = ERRORS + 1
  39.   MissingFiles[ERRORS] = "SettingsMenu"
  40. end
  41.  
  42. if fs.exists("ApertureOS_ClientConsole") == false then
  43.   ERRORS = ERRORS + 1
  44.   MissingFiles[ERRORS] = "ClientConsole"
  45. end
  46.  
  47. if fs.exists("ShutdownPrompt") == false then
  48.   ERRORS = ERRORS + 1
  49.   MissingFiles[ERRORS] = "ShutdownPrompt"
  50. end
  51.  
  52. if fs.exists("ImageDrawer") == false then
  53.   ERRORS = ERRORS + 1
  54.   MissingFiles[ERRORS] = "Image"
  55. end
  56.  
  57. if ERRORS == 0 then
  58.   print("SECURITY CHECK LOG - file search complete")
  59. else
  60.   for i = 1, ERRORS do
  61.     if  MissingFiles[i] == "startup" then
  62.       shell.run("C_Pastebin","get","xByKNAZS","startup")
  63.     elseif MissingFiles[i] == "Boot" then
  64.       shell.run("C_Pastebin","get","PnjkfYyW","ApertureOS_Boot")
  65.     elseif MissingFiles[i] == "Login" then
  66.       shell.run("C_Pastebin","get","","ApertureOS_LoginManager")
  67.     elseif MissingFiles[i] == "Base" then
  68.       shell.run("C_Pastebin","get","xM7Lu8Jg","ApertureOS_Base")
  69.     elseif MissingFiles[i] == "UpdateHandler" then
  70.       shell.run("C_Pastebin","get","","ApertureOS_UpdateHandler")
  71.     elseif MissingFiles[i] == "AppMenu" then
  72.       shell.run("C_Pastebin","get","D1KYjCSD","ApertureOS_ApplicationMenu")
  73.     elseif MissingFiles[i] == "SettingsMenu" then
  74.       shell.run("C_Pastebin","get","qPKiBYLH","ApertureOS_SettingsMenu")
  75.     elseif MissingFiles[i] == "ClientConsole" then
  76.       shell.run("C_Pastebin","get","mYA3vRHg","ApertureOS_ClientConsole")
  77.     elseif MissingFiles[i] == "ShutdownPrompt" then
  78.       shell.run("C_Pastebin","get","jK6MMBNs","ShutdownPrompt")
  79.     elseif MissingFiles[i] == "Image" then
  80.       shell.run("C_Pastebin","get","UJk6sP52","ImageDrawer")
  81.     end
  82.     term.clearLine()
  83.   end
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement