Advertisement
ZeroCool5254

Base Security OS v1.4

Aug 21st, 2016
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. while true do
  2.     os.pullEvent = os.pullEventRaw --This is the piece of code that prevents people from using ctrl + c to kill or reboot the pc. This is useless if you do not save this as startup
  3.     term.clear()
  4.     term.setCursorPos(1, 1)
  5. print("Welcome to FA Base") --This you can rename to whatever you want to. This is a message that tells people where they are about to enter into
  6. term.setCursorPos(1, 3)
  7. sleep(1)
  8. print("Please Enter Password")
  9. input = read("*") --This is the piece of code that makes the letters you type in into asterisks "*" to prevent people from seeing your password
  10.  
  11. if input == "Password" then --Here you can type any password you choose
  12.     print("Correct Password")
  13.     rs.setBundledOutput ("top", colors.white) --This uses rednet cables. Replace white with whatever color you want
  14.     sleep(3)
  15.     rs.setBundledOutput ("top",rs.getBundledOutput ("top")-colors.white) --Same as above. this just ends the redstone signal. Replace white
  16.     end --This is the end of this Variable. You can copy and paste this to create more Variables. Replace the colors with different ones and change the "password"
  17.  
  18. if input == "Root" then --This is just the Command or password to kill the program. You can change Root to any sort of "administrator" Password you want
  19.     print("Closing Software")
  20.     sleep(1)
  21.     term.clear()
  22.     term.setCursorPos(1, 1)
  23.     sleep(2)
  24.     return --This is the command that ends the program. Do not change this
  25.     end
  26. end
  27.  
  28. -- Thank you for checking out my basic program
  29. -- This code is unbeatable, but if they get your admin code you are done for
  30. -- Please ensure when you save this on your computercraft Computer, to save it as either "disk/startup" or just "startup".
  31. -- When using "disk/startup", you need to ensure you have a disk drive with a floppy disk in.
  32. -- This program was written by ZeroCool5254 for my base on the ftbunleashed.net server. Go check them out.
  33. -- If you are in game feel free to send me a message.
  34. -- Also, for a version with no help:http://pastebin.com/Y8qerbm4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement