SHOW:
|
|
- or go back to the newest paste.
| 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
|
| 52 | + | |
| 53 | print("SECURITY CHECK LOG - file search complete")
| |
| 54 | - | MissingFiles[ERRORS] = "Image" |
| 54 | + | |
| 55 | for i = 1, ERRORS do | |
| 56 | if MissingFiles[i] == "startup" then | |
| 57 | shell.run("ApertureOS_Downloader","startup","xByKNAZS","OS")
| |
| 58 | elseif MissingFiles[i] == "Boot" then | |
| 59 | shell.run("ApertureOS_Downloader","ApertureOS_Boot","PnjkfYyW","OS")
| |
| 60 | elseif MissingFiles[i] == "Login" then | |
| 61 | shell.run("C_Pastebin","get","","ApertureOS_LoginManager")
| |
| 62 | - | shell.run("C_Pastebin","get","xByKNAZS","startup")
|
| 62 | + | |
| 63 | shell.run("ApertureOS_Downloader","ApertureOS_Base","xM7Lu8Jg","OS")
| |
| 64 | - | shell.run("C_Pastebin","get","PnjkfYyW","ApertureOS_Boot")
|
| 64 | + | |
| 65 | shell.run("C_Pastebin","get","","ApertureOS_UpdateHandler")
| |
| 66 | elseif MissingFiles[i] == "AppMenu" then | |
| 67 | shell.run("ApertureOS_Downloader","ApertureOS_ApplicationMenu","D1KYjCSD","OS")
| |
| 68 | - | shell.run("C_Pastebin","get","xM7Lu8Jg","ApertureOS_Base")
|
| 68 | + | |
| 69 | shell.run("C_Pastebin","get","",".ApertureOS_SettingsMenu")
| |
| 70 | elseif MissingFiles[i] == "ClientConsole" then | |
| 71 | shell.run("ApertureOS_Downloader","ApertureOS_ClientConsole","mYA3vRHg","OS")
| |
| 72 | - | shell.run("C_Pastebin","get","D1KYjCSD","ApertureOS_ApplicationMenu")
|
| 72 | + | |
| 73 | shell.run("ApertureOS_Downloader","ShutdownPrompt","jK6MMBNs","OS")
| |
| 74 | - | shell.run("C_Pastebin","get","qPKiBYLH","ApertureOS_SettingsMenu")
|
| 74 | + | |
| 75 | term.clearLine() | |
| 76 | - | shell.run("C_Pastebin","get","mYA3vRHg","ApertureOS_ClientConsole")
|
| 76 | + | |
| 77 | end |