Advertisement
vipmodproff

ᴀᴅᴍɪɴ ᴘᴀɴᴇʟ

Jul 23rd, 2022 (edited)
1,553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  -------------------------------------------------------------------------------------------
  2.  
  3. Variable = {}
  4. Variable["RegisterURL"] = "http://overwhelmed-powder.000webhostapp.com/Register.php"
  5. Variable["UserUrl"] = "http://overwhelmed-powder.000webhostapp.com/User.php"
  6. Variable["Action"] = "http://overwhelmed-powder.000webhostapp.com/ActionManager.php"
  7. Variable["Log"] = "http://overwhelmed-powder.000webhostapp.com/Log.php"
  8. Variable["Key1"] = "DowrDnASKiDdJFxXPxEDcjf42BUqHzkbUaCNm4wHw8AyTpa7gEGEybswr6G3JgE3paHkZbTapcWZbe4NHD"---ACTIONS
  9. Variable["Key2"] = "DowrDnASKih9PAqJ6BWCSeqqns"
  10. Variable["Key3"] = "DowrDnASKiBPg3J6H8t6xnPVrR"
  11. Variable["Sec1"] = "DowrDnASKiMqJtMaxtNGV0RWp1RWtaRWJ4RWp4RWVdNHZcNWFtNGV2RWN1RWF2RWFaRWF1RWF2RWB0"
  12. Variable["Sec2"] = "DowrDnASKiMAgiCYHsMiwHHwbnV27Jvs4"
  13.  
  14. ---------------------------------------------------------------------------------------------
  15.  
  16. Lang = {}
  17. function SetLang()
  18. LangBase = {"🔐sᴇɴʜᴀ","🔐ᴘᴀssᴡᴏʀᴅ","⏰ᴇxɪᴘʀᴀçᴀᴏ","⏰ʜᴏᴡ ᴍᴀɴʏ ᴅᴀʏs","🔘ᴀᴛɪᴠᴀᴅᴏ","🔘ᴀᴄᴛɪᴠᴇ","🚫ᴅᴇʟᴇᴛᴀʀ","🚫ᴅᴇʟᴇᴛᴇ ᴜsᴇʀ","🔁ʀᴇsᴇᴛᴀ ᴅᴇᴠɪᴄᴇ","🔁ʀᴇsᴇᴛ ᴅᴇᴠɪᴄᴇ","🔄ʀᴇɴᴏᴠᴀʀ","🔄ʀᴇɴᴇᴡ ᴜsᴇʀ","✏ᴇᴅɪᴛᴀʀ","✏ᴇᴅɪᴛ ᴜsᴇʀ ɪɴғᴏ","🔧ᴄᴏɴғɪɢᴜʀᴀçᴏᴇs","🔧ᴍᴜʟᴛʏ ᴜsᴇʀ sᴇᴛᴛɪɴɢ","📑ɪɴғᴏʀᴍᴀçᴀᴏ","📑ɪɴғᴏʀᴍᴀᴛɪᴏɴ ᴏғ ᴜsᴇʀs","👤ᴜsᴜᴀʀɪᴏs","👤ᴜsᴇʀ ʟɪsᴛ","👥ᴛᴏᴅᴏs ᴜsᴜᴀʀɪᴏs","👥ᴀʟʟ ᴜsᴇʀs","📥ʀᴇɢɪsᴛʀᴀʀ ᴜsᴜᴀʀɪᴏ","📥ʀᴇɢɪsᴛᴇʀ ᴜsᴇʀ","❌sᴀɪʀ","❌ᴇxɪᴛ","⏳ᴅɪᴀs","⏳ᴅᴀʏs","❔ɴᴏᴍᴇ ᴅᴇ ᴜsᴜᴀʀɪᴏ","❔ᴜsᴇʀɴᴀᴍᴇ","🔏ᴄᴏɴғɪʀᴍᴀ sᴇɴʜᴀ","🔏ᴄᴏɴғᴏʀᴍ ᴘᴀssᴡᴏʀᴅ","📴ᴜʟᴛɪᴍᴏ ʟᴏɢɪɴ","📴ʟᴀsᴛ ʟᴏɢɪɴ","✅sᴜᴄᴇssᴏ","✔️sᴜᴄᴄᴇss","☑ᴄʀɪᴀᴅᴏ", "☑ᴄʀᴇᴀᴛᴇᴅ", "✒ᴄᴀᴅᴀsᴛʀᴀᴅᴏʀ","✒ᴄᴀᴅᴀsᴛʀᴀʟ"}
  19. C = gg.choice({"• sᴇʟᴇᴄᴛ ʟᴀᴜɴɢᴀɢᴇ : ᴘᴏʀᴛᴇɢᴜsᴇ","• sᴇʟᴇᴄᴛ ʟᴀᴜɴɢᴀɢᴇ : ᴇɴɢʟɪsʜ",Lang[13]})
  20. if not C then
  21. os.exit()
  22. end
  23. if C == 3 then
  24. os.exit()
  25. end
  26.  
  27. for x =C,#LangBase,2
  28. do
  29. table.insert(Lang,LangBase[x])
  30.  
  31. end
  32.  
  33. end
  34. AccountList = {} View = 1 function split(s, delimiter)  result = {}; for match in (s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match); end return result; end  function GetListType(Array,Type) NewList = {} for x=1,#Array,1 do table.insert(NewList,Array[x][Type]) end return NewList end function GetMenuToArray(MsM) array = {} array["name"] ={} array["Title"] = {} array["function"] = {} for key,value in pairs(MsM) do  if tonumber(key)  == 1 then array["Title"] = value else if type(value) == "string" then array["name"][#array["name"] + 1] = value end if type(value) == "function" then array["function"][#array["function"] + 1] = value end end end return array  end function JSONStringify(Json) JsonText = "" for x=2,#Json,2 do if x == 2 then JsonText = "{"..'"'..Json[x-1]..'":'..'"'..Json[x]..'"' else JsonText =JsonText..',"'..Json[x-1]..'":'..'"'..Json[x]..'"' end if x == #Json then JsonText = JsonText.."}" end end return JsonText end
  35. function DeleteAccount(Slot)
  36. local JSON  = JSONStringify({"Action","Delete","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"Secret",Variable["Sec1"]})
  37. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  38.  pcall(load(Response))
  39.  end
  40.  function ResetAccount(Slot)
  41.  local JSON  = JSONStringify({"Action","Reset","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"Secret",Variable["Sec1"]})
  42. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  43.  pcall(load(Response))
  44.  end
  45. function EditAccount(Slot)
  46.  if AccountList[Slot].Active == "true" then
  47.     Active = true
  48.      else
  49.     Active = false     
  50. end
  51.  if AccountList[Slot].Admin == "true" then
  52.     Admin = true
  53.      else
  54.     Admin = false  
  55. end
  56.  
  57. Prompt = gg.prompt({Lang[1],Lang[2],Lang[3],"👮Admin"},{AccountList[Slot].Password,AccountList[Slot].Expire,Active,Admin},{"text","text","checkbox","checkbox"})
  58.  if not Prompt then return
  59.  end
  60. local JSON  = JSONStringify({"Action","Edit","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"date",Prompt[2],"password",Prompt[1],"actived",tostring(Prompt[3]),"level",tostring(Prompt[4]),"Secret",Variable["Sec1"]})
  61.  
  62.  Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  63.  pcall(load(Response))
  64. end
  65. function AllUser()
  66. local UserList = GetListType(AccountList,"Name")
  67. local Actived = GetListType(AccountList,"Active")
  68. local Type = {}
  69. for x=1,#Actived,1
  70. do
  71. if Actived[x] == "true" then
  72.  
  73. Actived[x] = true
  74. else
  75. Actived[x] = false
  76. end
  77. Type[x] = "checkbox"
  78. end
  79.  
  80. P = gg.prompt(UserList,Actived,Type)
  81. if not P then
  82. return
  83. end
  84. Menu = gg.choice({Lang[6],Lang[4],Lang[5]},nil,Lang[8])
  85. if not Menu then
  86. return
  87. end
  88. if Menu > 0 and Menu < 2 then
  89. Prompt = gg.prompt({Lang[14]},nil,{"num"})
  90.  if not Prompt then
  91.  return
  92.  end
  93.  RenoveAll(P,Prompt[1])
  94. end
  95. if Menu > 1 and Menu  < 3 then
  96. for x =1,#P,1
  97. do
  98. if P[x] == true then
  99.  
  100. local JSON  = JSONStringify({"Action","Delete","Authorization",Variable["Key1"],"Username",AccountList[x].Name,"Secret",Variable["Sec1"]})
  101.  
  102.  
  103. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  104.  
  105. end
  106.  
  107. end
  108. gg.alert(Lang[18])
  109. end
  110. if Menu >  2 and Menu  < 4 then
  111. for x =1,#P,1
  112. do
  113. if P[x] == true then
  114.  
  115. local JSON  = JSONStringify({"Action","Reset","Authorization",Variable["Key1"],"Username",AccountList[x].Name,"Secret",Variable["Sec1"]})
  116.  
  117. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  118.  
  119. end
  120.  
  121. end
  122. gg.alert(Lang[18])
  123. end
  124. end
  125. function RenoveAll(Array,Days)
  126. if not Array or not Days then
  127. return
  128. end
  129. for x =1,#Array,1
  130. do
  131. if Array[x] == true then
  132.  local JSON  = JSONStringify({"Action","Renovate","Authorization",Variable["Key1"],"Username",AccountList[x].Name,"Expire",Days,"Secret",Variable["Sec1"]})
  133. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  134. end
  135. end
  136. gg.alert(Lang[18])
  137. end
  138.  
  139. function RenoveAccount(Slot)
  140. Prompt = gg.prompt({Lang[14]},nil,{"num"})
  141.  if not Prompt then
  142.  return
  143.  end
  144.  local JSON  = JSONStringify({"Action","Renovate","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"Expire",Prompt[1],"Secret",Variable["Sec1"]})
  145. Response = gg.makeRequest(Variable["Action"],nil,JSON).content pcall(load(Response))
  146.  end
  147.  function ShowAccount(Slot)
  148. gg.alert(Lang[15]..": "..AccountList[Slot]["Name"].."\n"..Lang[1]..": "..AccountList[Slot]["Password"] .."\n"..Lang[2]..": "..AccountList[Slot]["Expire"].."\n"..Lang[3]..": "..AccountList[Slot]["Active"].."\n"..Lang[17]..": "..AccountList[Slot]["LastLogin"]..'\n'..Lang[19]..": "..AccountList[Slot]["Created"]..'\n'..Lang[20]..": "..AccountList[Slot]["Owner"].."\n👮Admin: "..AccountList[Slot]["Admin"]:gsub("\\n",""))
  149. return;
  150.  end
  151.  function GetAccounts()
  152. UserList = GetListType(AccountList,"Name")
  153. local ID  = gg.choice(UserList,nil,Lang[10])
  154. if not ID then
  155.  return
  156. end
  157. Menu = {Lang[8],Lang[4],DeleteAccount,Lang[7],EditAccount,Lang[6],RenoveAccount,Lang[5],ResetAccount,Lang[9],ShowAccount}
  158. SetMenu= GetMenuToArray(Menu)
  159.  Choice = gg.choice(SetMenu["name"],nil,SetMenu["Title"])
  160.  if not Choice then  
  161. return
  162.  else
  163.  SetMenu["function"][Choice](ID)
  164. end
  165.  end
  166. function GetUsers()
  167. local JSON  = JSONStringify({"KEY",Variable["Key3"],"Secret",Variable["Sec2"]})
  168. Response = gg.makeRequest(Variable["UserUrl"],nil,JSON).content
  169. if not Response then
  170. return {}
  171. end
  172.  
  173.  Data = split(Response,"\\n")
  174.  
  175. X=1
  176. AccountList ={}
  177.  for x=1,(#Data - 1),1
  178. do
  179. local Split = split(Data[x],"||")
  180.  AccountList[X]  = {}
  181. AccountList[X]["Name"] = Split[1]
  182. AccountList[X]["Password"] = Split[2]
  183. AccountList[X]["Expire"] = Split[3]
  184. AccountList[X]["Active"] = Split[4]
  185. AccountList[X]["LastLogin"] = Split[5]
  186. AccountList[X]["Owner"]  = Split[6]
  187. AccountList[X]["Created"] =Split[7]
  188. AccountList[X]["Admin"] =Split[8]
  189. X = X+1
  190. end
  191.  
  192.  return AccountList
  193.  end
  194. function Register()
  195.  Prompt = gg.prompt({Lang[15],Lang[1],Lang[2],"👮Admin","▶️ B A C K ◀️"},nil,{"text","text","num","checkbox","checkbox"})
  196.     if not Prompt then  
  197. return  
  198. end
  199.     if Prompt[5] then
  200.     return
  201.     end      
  202.     if Prompt[4] == true then
  203.    
  204.     Level = "1"
  205.     else
  206.     Level = "0"
  207.     end
  208. local JSON  = JSONStringify({"Username",Prompt[1],"Password",Prompt[2],"ConfirmPassword",Prompt[2],"Expiration",Prompt[3],"Key",Variable["Key2"],"Secret",Variable["Sec1"],"Level",Level})
  209. ResponseContent = gg.makeRequest(Variable["RegisterURL"],nil,JSON).content
  210.  
  211.  pcall(load(ResponseContent))  
  212. end
  213. function LogF()
  214. Choice = gg.choice({"👀Show","❎ᴅᴇʟᴇᴛ"})
  215. if not Choice then
  216. return
  217. end
  218. if Choice == 1 then
  219.  
  220.  
  221.  
  222. local JSON  = JSONStringify({"Secret","DowrDnASKiMqJtMaxtNGV0RWp1RWtaRWJ4RWp4RWVdNHZcNWFtNGV2RWN1RWF2RWFaRWF1RWF2RWB0"})
  223. ResponseContent = gg.makeRequest(Variable["Log"],nil,JSON).content
  224. if ResponseContent == null then
  225. ResponseContent = "====LOG===="
  226.  
  227. end
  228. gg.alert(ResponseContent)
  229. return
  230. end
  231. if Choice == 2 then
  232. local JSON  = JSONStringify({"Secret","DowrDnASKiMqJtMaxtNGV0RWp1RWtaRWJ4RWp4RWVdNHZcNWFtNGV2RWN1RWF2RWFaRWF1RWF2RWB0","Delete","true"})
  233. ResponseContent = gg.makeRequest(Variable["Log"],nil,JSON).content
  234. gg.alert(ResponseContent)
  235. return
  236. end
  237. end
  238. function Main()
  239.  GetUsers()  
  240. Menu = {" 𝐊𝐃𝐌 𝐓𝐄𝐀𝐌 𝐀𝐃𝐌𝐈𝐍 𝐏𝐀𝐍𝐄𝐋▫️",Lang[10],GetAccounts,Lang[12],Register,Lang[11],AllUser,"❕ʟᴏɢ",LogF,Lang[13],os.exit}
  241.  SetMenu= GetMenuToArray(Menu)
  242. Choice = gg.choice(SetMenu["name"],nil,SetMenu["Title"])
  243. if not Choice then
  244. return
  245.  else
  246. SetMenu["function"][Choice]()
  247. end
  248. View = -1
  249. end  
  250. SetLang()
  251. while (true) do   if gg.isVisible(true) then    View = 1     gg.setVisible(false)   end if View == 1 then   Main()  end  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement