LDShadowLord

QuickLogin

Feb 20th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.58 KB | None | 0 0
  1. --Anti CtrlT
  2. os.pullEvent=os.pullEventRaw
  3.  
  4. --Variables
  5. ntapiloc = shell.resolve("nerdtalk")
  6.  
  7. --Loading API's
  8. if not fs.exists(ntapiloc) then
  9.         print("Nerdtalk is not present on this system, attempting to download...")
  10.         if http then
  11.                 local wHandle = http.get("http://pastebin.com/raw.php?i=9zdaF9SV")
  12.                 if wHandle then
  13.                         local fHandle = fs.open(ntapiloc, "w")
  14.                         if fHandle then
  15.                                 fHandle.write(wHandle.readAll())
  16.                                 fHandle.close()
  17.                         else
  18.                                 print("Could not open executable for writing.")
  19.                         end
  20.                         wHandle.close()
  21.                 else
  22.                         print("Could not connect to pastebin.")
  23.                 end
  24.         else
  25.                 print("HTTP is disabled.")
  26.         end
  27. end
  28. os.loadAPI(ntapiloc)
  29.  
  30. function header()
  31.   nerdtalk.clearPage()
  32.   nerdtalk.centerPrint(" ------------------- ")
  33.   nerdtalk.centerPrint("| Vulain Industries |")
  34.   nerdtalk.centerPrint(" ------------------- ")
  35. end
  36.  
  37. --Main Program
  38. function login()
  39.   header()
  40.   print(" ")
  41.   print(" ")
  42.   print(" ")
  43.   nerdtalk.centerWrite(" Verification:")
  44.   ui = read("*")
  45.  
  46.   if  ui == "lucozade" then
  47.     header()
  48.     nerdtalk.centerPrint("Connection Accepted")
  49.     logging = false
  50.   else
  51.     nerdtalk.clearPage()
  52.     term.setCursorPos(1, 9)
  53.     nerdtalk.centerPrint("Incorrect Password")
  54.   end
  55. end
  56.  
  57. logging = true
  58.  
  59. while logging do
  60.   login()
  61. end
Advertisement
Add Comment
Please, Sign In to add comment