LDShadowLord

VERRMain2

Jan 15th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
  67.          print("==VERR=============================================")
  68.          term.setBackgroundColor(colors.black)
  69.          term.setTextColor(colors.yellow)
  70.          write("> ")
  71.          term.setTextColor(colors.white)
  72.          local line = read()
  73.          
  74.          local words = {}
  75.          for m in string.gsub(line, "[^ \t]+") do
  76.            table.insert(words, m)
  77.          end
  78.          
  79.          local com = words[1]
  80.          if com == "exit" then
  81.          
  82.          else
  83.            shell.run(com, unpack(words, 2))
  84.          end
  85.        end
  86.         else
  87.        term.setCursorPos(8,12)
  88.           print("ERROR! Server Returned Nil")
  89.         end
  90.       elseif event == "http_failure" then
  91.         term.clear()
  92.         term.setCursorPos(1,1)
  93.         print("==VERR=============================================")
  94.         print(" ")
  95.         print(" ")
  96.         print(" ")
  97.         print(" ")
  98.         print("                     ERROR")
  99.         print("              Server Returned Nil")
  100.         print(" ")
  101.         print(" ")
  102.         print(" ")
  103.         print(" ")
  104.         print(" ")
  105.         print(" ")
  106.         print(" ")
  107.         print(" ")
  108.         print(" ")
  109.         print(" ")
  110.         print("===================================================")
  111.         sleep(3)
  112.         os.reboot()
  113.       end
  114.     end
Advertisement
Add Comment
Please, Sign In to add comment