Advertisement
Maj_GsL_Inc

LogAd rev3

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