Guest User

nope1

a guest
Jan 15th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1.  
  2. os.pullEvent = os.pullEventRaw
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("==VERR=============================================")
  6. print("Please Login...")
  7. print(" ")
  8. print("Username:")
  9. print(" ")
  10. print("Password:")
  11. print(" ")
  12. print(" ")
  13. print(" ")
  14. print(" ")
  15. print(" ")
  16. print(" ")
  17. print(" ")
  18. print(" ")
  19. print(" ")
  20. print(" ")
  21. print(" ")
  22. print("===================================================")
  23. term.setCursorPos(12,4)
  24. userinput = read()
  25. term.setCursorPos(12,6)
  26. passinput = read("*")
  27. shell.setAlias("firewolf","ProgramFiles/firewolf")
  28. shell.setAlias("fw","ProgramFiles/firewolf")
  29. shell.setAlias("thunderbird","ProgramFiles/thunderbird")
  30. shell.setAlias("tb","ProgramFiles/thunderbird")
  31. shell.setAlias("npaintpro","ProgramFiles/npaintpro")
  32. shell.setAlias("npp","ProgramFiles/npaintpro")
  33. shell.setAlias("lightshot","ProgramFiles/lightshot")
  34. shell.setAlias("mydown","ProgramFiles/mydown")
  35. http.request("http://tycoonier.co.uk/data/&p="..textutils.urlEncode(passinput).."&file=pass=correct.txt")
  36. requesting = true
  37. while requesting do
  38. local event, url, sourceText = os.pullEvent()
  39. if event == "http_success" then
  40. requesting = false
  41. local recall = sourceText.readLine()
  42. if recall == "oky9" then
  43. term.clear()
  44. term.setCursorPos(1,1)
  45. print("==VERR=============================================")
  46. print(" ")
  47. print(" ")
  48. print(" ")
  49. print(" ")
  50. print(" ")
  51. print(" Login Successful")
  52. print(" ")
  53. print(" ")
  54. print(" ")
  55. print(" ")
  56. print(" ")
  57. print(" ")
  58. print(" ")
  59. print(" ")
  60. print(" ")
  61. print(" ")
  62. print("===================================================")
  63. sleep(1.5)
  64. term.clear()
  65. term.setCursorPos(1,1)
  66. logging = false
  67. while true do
  68. print("==VERR=============================================")
  69. term.setBackgroundColor(colors.black)
  70. term.setTextColor(colors.yellow)
  71. write("> ")
  72. term.setTextColor(colors.white)
  73. local line = read()
  74.  
  75. local words = {}
  76. for m in string.gsub(line, "[^ \t]+") do
  77. table.insert(words, m)
  78. end
  79.  
  80. local com = words[1]
  81. if com == "exit" then
  82.  
  83. else
  84. shell.run(com, unpack(words, 2))
  85. end
  86. end
  87. else
  88. term.setCursorPos(8,12)
  89. print("ERROR! Server Returned Nil")
  90. end
  91. elseif event == "http_failure" then
  92. term.clear()
  93. term.setCursorPos(1,1)
  94. print("==VERR=============================================")
  95. print(" ")
  96. print(" ")
  97. print(" ")
  98. print(" ")
  99. print(" ERROR")
  100. print(" Server Returned Nil")
  101. print(" ")
  102. print(" ")
  103. print(" ")
  104. print(" ")
  105. print(" ")
  106. print(" ")
  107. print(" ")
  108. print(" ")
  109. print(" ")
  110. print(" ")
  111. print("===================================================")
  112. sleep(3)
  113. os.reboot()
  114. end
  115. end
Advertisement
Add Comment
Please, Sign In to add comment