Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local me = shell.getRunningProgram()
- local logging = true
- while logging do
- term.clear()
- term.setCursorPos(1,1)
- print([[
- ==EvellOS==========================================
- ==Login============================================
- Password:
- ==================================By=LDShadowLord==]])
- term.setCursorPos(10, 5)
- pass = read("*")
- http.request("http://tycoonier.co.uk/data/&p="..textutils.urlEncode(pass).."&file=pass=correct.txt")
- requesting = true
- while requesting do
- local event, url, sourceText = os.pullEvent()
- if event == "http_success" then
- requesting = false
- local recall = sourceText.readLine()
- if recall == "oky9" then
- term.clear()
- term.setCursorPos(1,1)
- print("==EvellOS==========================================")
- print("==Login============================================")
- print(" ")
- print(" Logged in ")
- print(" Succesfully ")
- print(" ")
- print(" ")
- print("==================================By=LDShadowLord==")
- redstone.setOutput("left",true)
- sleep(2)
- redstone.setOutput("left",false)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("disk/startup")
- end
- logging = false
- else
- print("Incorrect username or password!")
- end
- elseif event == "http_failure" then
- term.clear()
- term.setCursorPos(1,1)
- print("==EvellOS==========================================")
- print("==Login============================================")
- print(" ")
- print(" ")
- print(" Error ")
- print(" ")
- print(" ")
- print("==================================By=LDShadowLord==")
- sleep(10)
- logging = false
- requesting = false
- shell.run("disk/startup")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment