Advertisement
jamkles

fvrnvnrvnsfv

Apr 1st, 2024 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. local License = "" --* Your License to use this script.
  2.  
  3. print(' jamkles Lua - https://github.com/mazk5145/')
  4. local HttpService = game:GetService("HttpService")
  5. local StarterGui = game:GetService("StarterGui")
  6. local LuaName = "jamkles Lua "
  7.  
  8. StarterGui:SetCore("SendNotification", {
  9. Title = LuaName,
  10. Text = "Intializing Authentication...",
  11. Duration = 5
  12. })
  13.  
  14. --* Configuration *--
  15. local initialized = false
  16. local sessionid = ""
  17.  
  18.  
  19. --* Application Details *--
  20. Name = "jamkles auth" --* Application Name
  21. Ownerid = "3hGgGc3F65" --* OwnerID
  22. APPVersion = "1.0" --* Application Version
  23.  
  24. local req = game:HttpGet('https://keyauth.win/api/1.1/?name=' .. Name .. '&ownerid=' .. Ownerid .. '&type=init&ver=' .. APPVersion)
  25.  
  26. if req == "KeyAuth_Invalid" then
  27. print(" Error: Application not found.")
  28.  
  29. StarterGui:SetCore("SendNotification", {
  30. Title = LuaName,
  31. Text = " Error: Application not found.",
  32. Duration = 3
  33. })
  34.  
  35. return false
  36. end
  37.  
  38. local data = HttpService:JSONDecode(req)
  39.  
  40. if data.success == true then
  41. initialized = true
  42. sessionid = data.sessionid
  43. --print(req)
  44. elseif (data.message == "invalidver") then
  45. print(" Error: Wrong application version..")
  46.  
  47. StarterGui:SetCore("SendNotification", {
  48. Title = LuaName,
  49. Text = " Error: Wrong application version..",
  50. Duration = 3
  51. })
  52.  
  53. return false
  54. else
  55. print(" Error: " .. data.message)
  56. return false
  57. end
  58.  
  59. print("\n\n Licensing... \n")
  60. local req = game:HttpGet('https://keyauth.win/api/1.1/?name=' .. Name .. '&ownerid=' .. Ownerid .. '&type=license&key=' .. License ..'&ver=' .. APPVersion .. '&sessionid=' .. sessionid)
  61. local data = HttpService:JSONDecode(req)
  62.  
  63.  
  64. if data.success == false then
  65. StarterGui:SetCore("SendNotification", {
  66. Title = LuaName,
  67. Text = " Error: " .. data.message,
  68. Duration = 5
  69. })
  70.  
  71. return false
  72. end
  73.  
  74. StarterGui:SetCore("SendNotification", {
  75. Title = LuaName,
  76. Text = " Successfully Authorized :)",
  77. Duration = 5
  78. })
  79.  
  80.  
  81. --* Your code here *--
  82. loadstring(game:HttpGet("https://pastebin.com/raw/dL2q12vR"))()
  83.  
  84. --* Example Code to show user data *--
  85. print(' Logged In!')
  86. print(' User Data')
  87. print(' Username:' .. data.info.username)
  88. print(' IP Address:' .. data.info.ip)
  89. print(' Created at:' .. data.info.createdate)
  90. print(' Last login at:' .. data.info.lastlogin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement