Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- print("==VERR=============================================")
- print("Please Login...")
- print(" ")
- print("Username:")
- print(" ")
- print("Password:")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print("===================================================")
- term.setCursorPos(12,4)
- userinput = read()
- term.setCursorPos(12,6)
- passinput = read("*")
- shell.setAlias("firewolf","ProgramFiles/firewolf")
- shell.setAlias("fw","ProgramFiles/firewolf")
- shell.setAlias("thunderbird","ProgramFiles/thunderbird")
- shell.setAlias("tb","ProgramFiles/thunderbird")
- shell.setAlias("npaintpro","ProgramFiles/npaintpro")
- shell.setAlias("npp","ProgramFiles/npaintpro")
- shell.setAlias("lightshot","ProgramFiles/lightshot")
- shell.setAlias("mydown","ProgramFiles/mydown")
- http.request("http://tycoonier.co.uk/data/&p="..textutils.urlEncode(passinput).."&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("==VERR=============================================")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" Login Successful")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print("===================================================")
- sleep(1.5)
- term.clear()
- term.setCursorPos(1,1)
- logging = false
- while true do
- print("==VERR=============================================")
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.yellow)
- write("> ")
- term.setTextColor(colors.white)
- local line = read()
- local words = {}
- for m in string.gsub(line, "[^ \t]+") do
- table.insert(words, m)
- end
- local com = words[1]
- if com == "exit" then
- else
- shell.run(com, unpack(words, 2))
- end
- end
- else
- term.setCursorPos(8,12)
- print("ERROR! Server Returned Nil")
- end
- elseif event == "http_failure" then
- term.clear()
- term.setCursorPos(1,1)
- print("==VERR=============================================")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ERROR")
- print(" Server Returned Nil")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print(" ")
- print("===================================================")
- sleep(3)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment