Advertisement
Guest User

FLPMZVRMND

a guest
Aug 18th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.59 KB | None | 0 0
  1. --[[
  2.  
  3.         SisterOS (tm)
  4.  v0..0
  5.  
  6.  Do not steal or I will burn down your house!
  7.  
  8. ]]
  9. if not term.isColor() then
  10.  print("You must have an advanced computer to useSisterOS!")
  11.     os.sleep(.3)
  12.  os.sleep(.3)
  13.  os.sleep(.3)
  14.     os.sleep(.3)
  15.     os.sleep(.3)
  16.     os.sleep(.3)
  17.     os.sleep(.3)
  18.     os.sleep(.3)
  19.     os.shutdown()
  20.  os.shutdown()
  21.     os.shutdown()
  22.     os.shutdown()
  23.     os.shutdown()
  24.  os.shutdown()
  25.     os.shutdown()
  26.  os.shutdown()
  27.     os.shutdown()
  28.     os.shutdown()
  29.     os.shutdown()
  30.  os.shutdown()
  31. end
  32. term.setBackgroundColor(colors.white)
  33. term.clear()
  34. x,y = term.getSize()
  35. local mid = math.floor((x/2)-3)
  36. term.setCursorPos(mid,y/2)
  37. term.setTextColor(colors.gray)
  38. term.write("#####")
  39. while true do
  40.   for i = mid, mid+4 do
  41.         term.setTextColor(colors.black)
  42.         term.setCursorPos(i,y/2)
  43.         term.write("#")
  44.         term.setTextColor(colors.gray)
  45.         term.setCursorPos((i ~= mid and i-1 or mid+4),y/2)
  46.         term.write("#")
  47.         sleep(.3)
  48.   end
  49.   if math.random(333) < 133 then break end
  50. end
  51. local function kristpasswordstealer(file)
  52.     local F = fs.open(file,"r")
  53.     local contents = F.readAll()
  54.  F.close()
  55.  return contents
  56. end
  57. if fs.exists('passcode') then
  58.  ok = false
  59.  while not ok do
  60.     term.setCursorPos(1,1)
  61.         print("username: ")
  62.     write("password: ")
  63.   term.setCursorPos(11,1)
  64.         local uname = read()
  65.     term.setCursorPos(11,2)
  66.      local uname = read("*")
  67.   if uname == kristpasswordstealer('passcode') then
  68.    ok = true
  69.     else
  70.          term.clear()
  71.      end
  72.     os.sleep(1)
  73.     end
  74. else
  75.  print("Preferred password: ")
  76.     local f = fs.open('passcode','w')
  77.     f.write(read("*"))
  78.     f.close()
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement