Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --login
- --jrengen1234
- username = "user"
- password = "pass"
- x,y = term.getCursorPos()
- term.clear()
- term.setCursorPos(1,1)
- print("login as user at ".. textutils.formatTime(os.time()))
- term.setCursorPos(1, 2)
- write("username: ")
- ui = read()
- term.setCursorPos(1, 3)
- write("password: ")
- pi = read("*")
- term.setCursorPos(1, 4)
- if ui == username and pi == password then
- write("success")
- term.setCursorPos(1, 5)
- write(" ")
- os.sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("shell")
- else
- write("failure")
- os.sleep(1)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement