Atom888

XynSoft 0.0 - Logon

Mar 22nd, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. os.loadAPI("/XynSoft/System/SystemCC/xs")
  2. xs.FS(colors.white,false)
  3. f = fs.open("/XynSoft/Data/User/Password","r")
  4. truePass = f.read()
  5. f.close()
  6. s = fs.open("/XynSoft/Data/User/Color","r")
  7. col = s.read()
  8. s.close()
  9. z = fs.open("/XynSoft/Data/User/Username","r")
  10. user = z.read()
  11. z.close()
  12. xs.Block(1,5,50,14,colors.lightGray)
  13. xs.Write("Logon",22,8,colors.lightGray,colors.white)
  14. xs.Button("Done",7,12,colors.gray,clors.white)
  15. function CheckForMatch()
  16. if pass == truePass then
  17. xs.FS(colors.white,false)
  18. xs.Write("Welcome, "..user,18,10,colors.white,col)
  19. sleep(2)
  20. shell.run("/XynSoft/System/Desktop")
  21. else
  22. xs.FS(colors.white,false)
  23. xs.Write("[!] Incorrect [!]",18,10,colors.white,colors.gray)
  24. sleep(2)
  25. shell.run("/XynSoft/System/Logon")
  26. end
  27. end
  28. function EventLoop()
  29. while a do
  30. if xs.ShellEventAdv("mouse_click",1,7,12,11,13) then
  31. CheckForMatch()
  32. end
  33. end
  34. end
  35. EventLoop()
  36. pass = xs.Input("Password - ",10,10,colors.lightGray,colors.gray)
Advertisement
Add Comment
Please, Sign In to add comment