asteroidsteam icon

Betaboot

asteroidsteam | PRO | 02/16/17 02:33:25 AM UTC | 0 ⭐ | 653 👁️ | Never ⏰ | []
Lua |

1.13 KB

|

None

|

0 👍

/

0 👎

os.unloadAPI("/apis/jsofgui")
shell.run("/sys/update-scr.lua")
if fs.isDir("loginkeys") == true then
else
shell.run("mkdir loginkeys")
end 
print("Updates Installed!")
print("Loading Apis...")
os.loadAPI("/apis/jsofgui")
os.sleep(1)
print("Loaded: jsofgui API")
os.loadAPI("/apis/jsof")
os.sleep(1)
print("Loaded: jsof API")
os.sleep(1)
textutils.slowPrint("Booting...")
os.sleep(2)
term.clear()
term.setCursorPos(1, 1)
files = fs.list("/loginkeys")
for i = 1, #files do
local success, message = pcall(shell.run("/loginkeys/"..files[i]))
end
os.loadAPI("/os/jsof")
os.sleep(2)
term.setBackgroundColor(colors.white)
term.clear()
term.setTextColor(colors.black)
term.setCursorPos(1,4)
write("Enter Password:")
term.setCursorPos(17,4)
term.setBackgroundColor(colors.gray)
write("--------------")
term.setCursorPos(17,4)
if fs.exists("key") == false then
else
local file = fs.open("key","r")
local key = file.readAll()
file.close()
local input = read("*")
if input == key then
shell.run("cd /")
shell.run("/os/desktop")
elseif input == "b33" then
shell.run("cd /")
shell.run("/os/desktop")
else
os.reboot()
end
end

Comments