Advertisement
DefeatedPurpose

Archive list

Sep 9th, 2018 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.53 KB | None | 0 0
  1. -- Setting up the wait function
  2. local function wait(tick)
  3.     tick = tick or 1
  4.     local delay = os.time() + tick
  5.     while os.time() < delay do end
  6. end
  7. -- Login Information
  8. local Username = {
  9.     "DefeatedPurpose1"
  10. }
  11. local Password = {
  12.     "Supernatural354"
  13. }
  14. local TwoFactorAuth = {
  15.     "Oreo"
  16. }
  17. -- Archives
  18. archives = {" 'Let's decompile synapse source' ", " 'Qtx is white and SLX is red! ' ", " 'Rocky2u is actually pretty OP ' ", " 'I'm using sk8r not skisploit'"}
  19. -- Login Process
  20. print("Defeated's archive's")
  21. print("Enter the username:")
  22. Userinput = io.read()
  23. for w, x in pairs(Username) do
  24.     if Userinput == tostring(x) then
  25.         UserCorrect = true
  26.         else
  27.         UserCorrect = false
  28.     end
  29. end
  30. print("Matching... [1/3]")
  31. wait(1)
  32. print("Matching... [2/3]")
  33. wait(1)
  34. print("Matching... [3/3]")
  35. wait(1)
  36. if UserCorrect then
  37.     print("Username is a match!")
  38.     passed = true
  39.     else
  40.     print("Username is not a match.")
  41.     passed = false
  42. end
  43. wait(1)
  44. if passed then
  45.     print("Enter the password:")
  46.     Userinput = io.read()
  47.     for z, y in pairs(Password) do
  48.         if Userinput == tostring(y) then
  49.             PassCorrect = true
  50.             else
  51.             PassCorrect = false
  52.         end
  53.     end
  54. end
  55. if passed then
  56.     print("Matching... [1/3]")
  57.     wait(1)
  58.     print("Matching... [2/3]")
  59.     wait(1)
  60.     print("Matching... [3/3]")
  61.     wait(1)
  62.     if PassCorrect then
  63.         print("Password Valid!")
  64.         passed2 = true
  65.         else
  66.         print("Password Invalid.")
  67.         passed2 = false
  68.     end
  69. end
  70. wait(1)
  71. if passed and passed2 then
  72.     print("Two factor Authentication:")
  73.     print("What is your first pet name?")
  74.     Userinput = io.read()
  75.     for i,v in pairs(TwoFactorAuth) do
  76.         if Userinput == tostring(v) then
  77.             twofa = true
  78.             else
  79.             twofa = false
  80.         end
  81.     end
  82.     print("Matching... [1/3]")
  83.     wait(1)
  84.     print("Matching... [2/3]")
  85.     wait(1)
  86.     print("Matching... [3/3]")
  87.     wait(1)
  88.     if twofa then
  89.         print("Correct!")
  90.         loggedin = true
  91.         else
  92.         print("Incorrect")
  93.         loggedin = false
  94.     end
  95. end
  96. wait(1)
  97. if loggedin then
  98.     print("Logging in... [1/4]")
  99.     wait(1)
  100.     print("Logging in... [2/4]")
  101.     wait(1)
  102.     print("Logging in... [3/4]")
  103.     wait(1)
  104.     print("Logging in... [4/4]")
  105.     wait(1)
  106.     print("Login Successful!")
  107.     wait(1)
  108.     print("Welcome defeated, which archive would you like to view?")
  109.     while true do
  110.         print("Options:")
  111.         print("456. Logout")
  112.         print("Archives:")
  113.         print("There are currently ("..#archives..") archives that are available.")
  114.         Userinput = io.read("*n")
  115.         if Userinput > #archives then
  116.             wait(1)
  117.             print("That archive is not listed, Please choose another one.")
  118.             elseif Userinput == 456 then
  119.             wait(1)
  120.             print("Logging out [1/5]")
  121.             wait(1)
  122.             print("Logging out [2/5]")
  123.             wait(1)
  124.             print("Logging out [3/5]")
  125.             wait(1)
  126.             print("Logging out [4/5]")
  127.             wait(1)
  128.             print("Logging out [5/5]")
  129.             wait(1)
  130.             print("Logged out.")
  131.             loggedin = false
  132.             break
  133.             else
  134.             valid = true
  135.         end
  136.         if valid then
  137.             print("----------------------")
  138.        print(archives[math.random(Userinput, Userinput)])
  139.             print("----------------------")
  140.         end
  141.     end
  142. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement