Advertisement
CHNKFLR

Login

Nov 26th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.01 KB | None | 0 0
  1. shell.run("clear")
  2. print("###################################################")
  3. print("#                                                 #")
  4. print("#                   Emprix OS                     #")
  5. print("#                     Login                       #")
  6. print("#                                                 #")
  7. print("#                                                 #")
  8. print("#  Bitte gebe dein aktuellen Benutzernamen sowie  #")
  9. print("#  dein Passwort ein.                             #")              
  10. print("#                                                 #")
  11. print("#                                                 #")
  12. print("###################################################")
  13. print("")
  14. print("Benutzername > ?")
  15. print("Passwort     > ")
  16. print("")
  17. local benutzer = read()
  18. shell.run("clear")
  19. print("###################################################")
  20. print("#                                                 #")
  21. print("#                   Emprix OS                     #")
  22. print("#                     Login                       #")
  23. print("#                                                 #")
  24. print("#                                                 #")
  25. print("#  Bitte gebe dein aktuellen Benutzernamen sowie  #")
  26. print("#  dein Passwort ein.                             #")              
  27. print("#                                                 #")
  28. print("#                                                 #")
  29. print("###################################################")
  30. print("")
  31. print("Benutzername > "..benutzer)
  32. print("Passwort     > ?")
  33. print("")
  34. local passwort = read("*")
  35. shell.run("clear")
  36. print("###################################################")
  37. print("#                                                 #")
  38. print("#                   Emprix OS                     #")
  39. print("#                     Login                       #")
  40. print("#                                                 #")
  41. print("#                                                 #")
  42. print("#  Bitte gebe dein aktuellen Benutzernamen sowie  #")
  43. print("#  dein Passwort ein.                             #")              
  44. print("#                                                 #")
  45. print("#                                                 #")
  46. print("###################################################")
  47. print("")
  48. print("Benutzername > "..benutzer)
  49. print("Passwort     > "..passwort)
  50. print("")
  51. local ex = http.get("http://ni143070-1.web10.nitrado.hosting/login.php?user=" .. benutzer .. "&password=" .. passwort)
  52. if ex.readAll() == "accepted." then
  53.     print("Erfolgreich eingeloggt!")
  54.     print("Das System startet...")
  55. else
  56.     print("Login nicht erfolgreich!")
  57.     print("Versuche es in 3 Sekunden erneut.")
  58.     sleep(3)
  59.     shell.run("startup")
  60. end
  61.  
  62. local p = http.get("http://ni143070-1.web10.nitrado.hosting/helper.php?label=" .. os.getComputerLabel() .. "&step=1")
  63. sleep(1)
  64. local a = p.readAll()
  65. shell.run("rm " .. a .. ".lua")
  66. shell.run("pastebin get " .. a .. " " .. a .. ".lua")
  67. sleep(3)
  68. shell.run(a .. ".lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement