Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement