SHOW:
|
|
- or go back to the newest paste.
| 1 | os.pullEvent = os.pullEventRaw | |
| 2 | term.clear() | |
| 3 | term.setCursorPos(1,1) | |
| 4 | print("==VERR=============================================")
| |
| 5 | print("Please Login...")
| |
| 6 | print(" ")
| |
| 7 | print("Username:")
| |
| 8 | print(" ")
| |
| 9 | print("Password:")
| |
| 10 | print(" ")
| |
| 11 | print(" ")
| |
| 12 | print(" ")
| |
| 13 | print(" ")
| |
| 14 | print(" ")
| |
| 15 | print(" ")
| |
| 16 | print(" ")
| |
| 17 | print(" ")
| |
| 18 | print(" ")
| |
| 19 | print(" ")
| |
| 20 | print(" ")
| |
| 21 | print("===================================================")
| |
| 22 | term.setCursorPos(12,4) | |
| 23 | userinput = read() | |
| 24 | term.setCursorPos(12,6) | |
| 25 | passinput = read("*")
| |
| 26 | shell.setAlias("firewolf","ProgramFiles/firewolf")
| |
| 27 | shell.setAlias("fw","ProgramFiles/firewolf")
| |
| 28 | shell.setAlias("thunderbird","ProgramFiles/thunderbird")
| |
| 29 | shell.setAlias("tb","ProgramFiles/thunderbird")
| |
| 30 | shell.setAlias("npaintpro","ProgramFiles/npaintpro")
| |
| 31 | shell.setAlias("npp","ProgramFiles/npaintpro")
| |
| 32 | shell.setAlias("lightshot","ProgramFiles/lightshot")
| |
| 33 | shell.setAlias("mydown","ProgramFiles/mydown")
| |
| 34 | http.request("http://tycoonier.co.uk/data/&p="..textutils.urlEncode(passinput).."&file=pass=correct.txt")
| |
| 35 | requesting = true | |
| 36 | while requesting do | |
| 37 | local event, url, sourceText = os.pullEvent() | |
| 38 | if event == "http_success" then | |
| 39 | requesting = false | |
| 40 | local recall = sourceText.readLine() | |
| 41 | if recall == "oky9" then | |
| 42 | term.clear() | |
| 43 | term.setCursorPos(1,1) | |
| 44 | print("==VERR=============================================")
| |
| 45 | print(" ")
| |
| 46 | print(" ")
| |
| 47 | print(" ")
| |
| 48 | print(" ")
| |
| 49 | print(" ")
| |
| 50 | print(" Login Successful")
| |
| 51 | print(" ")
| |
| 52 | print(" ")
| |
| 53 | print(" ")
| |
| 54 | print(" ")
| |
| 55 | print(" ")
| |
| 56 | print(" ")
| |
| 57 | print(" ")
| |
| 58 | print(" ")
| |
| 59 | print(" ")
| |
| 60 | print(" ")
| |
| 61 | print("===================================================")
| |
| 62 | sleep(1.5) | |
| 63 | term.clear() | |
| 64 | term.setCursorPos(1,1) | |
| 65 | logging = false | |
| 66 | - | while true do |
| 66 | + | |
| 67 | else | |
| 68 | - | term.setBackgroundColor(colors.black) |
| 68 | + | |
| 69 | - | term.setTextColor(colors.yellow) |
| 69 | + | |
| 70 | - | write("> ")
|
| 70 | + | |
| 71 | - | term.setTextColor(colors.white) |
| 71 | + | |
| 72 | - | local line = read() |
| 72 | + | |
| 73 | - | |
| 73 | + | |
| 74 | - | local words = {}
|
| 74 | + | |
| 75 | - | for m in string.gsub(line, "[^ \t]+") do |
| 75 | + | |
| 76 | - | table.insert(words, m) |
| 76 | + | |
| 77 | - | end |
| 77 | + | |
| 78 | - | |
| 78 | + | |
| 79 | - | local com = words[1] |
| 79 | + | |
| 80 | - | if com == "exit" then |
| 80 | + | |
| 81 | - | |
| 81 | + | |
| 82 | - | else |
| 82 | + | |
| 83 | - | shell.run(com, unpack(words, 2)) |
| 83 | + | |
| 84 | - | end |
| 84 | + | |
| 85 | - | end |
| 85 | + | |
| 86 | print(" ")
| |
| 87 | print(" ")
| |
| 88 | print(" ")
| |
| 89 | print(" ")
| |
| 90 | print(" ")
| |
| 91 | print("===================================================")
| |
| 92 | sleep(3) | |
| 93 | os.reboot() | |
| 94 | end | |
| 95 | end |