Advertisement
Maj_GsL_Inc

LogAd rev4

Jun 30th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.20 KB | None | 0 0
  1. -- IronCore OS
  2. -- Created By: GsL_Inc.
  3. -- =====================
  4. -- Anti-Bypass
  5. --os.pullEvent = os.pullEventRaw
  6. -- Data
  7. User = "Majere"
  8. Pass = "GsL2c14Adm"
  9. Aces = "9632"
  10. TerminalCode = "ICMA1-A-10"
  11.  
  12. -- Center Text
  13. local cPrint = function(text)
  14.     local x2,y2 = term.getCursorPos()
  15.     local x,y = term.getSize()
  16.     term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
  17.  
  18.     print(text)
  19. end
  20.  
  21. local Clear = function()
  22.     term.clear()
  23.     term.setCursorPos(1, 1)
  24. end
  25. while true do
  26.     Clear()
  27.     cPrint("Welcome to IronCore OS [Server [ICM-Main] ]")
  28.     cPrint("===========================================")
  29.     cPrint("Please Enter Username: ")
  30.     term.setCursorPos(38, 3)
  31.  
  32.     input1 = read()
  33.     if input1 == User then
  34.         cPrint("Please Enter Password: ")
  35.         term.setCursorPos(38, 4)
  36.  
  37.         input2 = read("*")
  38.             if input2 == Pass then
  39.             cPrint("Please Enter AcesCode: ")
  40.             term.setCursorPos(38, 5)
  41.  
  42.             input3= read("*")
  43.                 if input3 == Aces then
  44.                 cPrint("Checking Databanks")
  45.                 term.setCursorPos(18, 7)
  46.                 textutils.slowWrite("....", 1)
  47.                 Clear()
  48.                 cPrint("Please Confirm Terminal Code: ")
  49.                 term.setCursorPos(49, 1)
  50.                 input4 = read()
  51.                     if input4 == TerminalCode then
  52.                     Clear()
  53.                     cPrint("Server [ICM-Main[AdminA]]")
  54.                     cPrint("=========================")
  55.  
  56.                     ----Change
  57.  
  58.                     textutils.tabulate(shell.programs())
  59.  
  60.                     break
  61.  
  62.                     -----
  63.                 end
  64.             end
  65.          end
  66.     end
  67.  
  68.     if input1 ~= User then
  69.         cPrint("Access Denied!")
  70.         sleep(2)
  71.         --shell.run("IronCore")
  72.     elseif input2 ~= Pass then
  73.         cPrint("Access Denied!")
  74.         sleep(2)
  75.         --shell.run("IronCore")
  76.     elseif input3 ~= Aces then
  77.         cPrint("Access Denied!")
  78.         sleep(2)
  79.         --shell.run("IronCore")
  80.     elseif input4 ~= TerminalCode then
  81.         cPrint("Access Denied!")
  82.         sleep(2)
  83.         --shell.run("IronCore")
  84.     end
  85. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement