Advertisement
djishwar86

Ggg

Dec 1st, 2020 (edited)
2,946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
q/kdb+ 3.33 KB | None | 0 0
  1.  
  2. LoginURL= "https://ykpatel.000webhostapp.com/Login.php"
  3.  
  4. function split(s, delimiter)  result = {}; for match in (s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match); end return result; end function WriteText(Direc,Text)f = io.open(Direc, "w") f:write(Text) f:close() end  function MakeRequest(URL,parm)  Content = gg.makeRequest(URL,nil,parm).content load('Dfile  = '.."string.char(table.unpack(".. "{"..Content:gsub(string.char(tonumber("40",16))..string.char(tonumber("45",16))..string.char(tonumber("6e",16))..string.char(tonumber("63",16))..string.char(tonumber("72",16))..string.char(tonumber("79",16))..string.char(tonumber("70",16))..string.char(tonumber("74",16))..string.char(tonumber("65",16))..string.char(tonumber("64",16))..string.char(tonumber("20",16))..string.char(tonumber("72",16))..string.char(tonumber("65",16))..string.char(tonumber("73",16))..string.char(tonumber("70",16))..string.char(tonumber("6f",16))..string.char(tonumber("6e",16))..string.char(tonumber("73",16))..string.char(tonumber("65",16))..string.char(tonumber("20",16))..string.char(tonumber("42",16))..string.char(tonumber("79",16))..string.char(tonumber("20",16))..string.char(tonumber("44",16))..string.char(tonumber("61",16))..string.char(tonumber("72",16))..string.char(tonumber("6b",16))..string.char(tonumber("69",16))..string.char(tonumber("6e",16))..string.char(tonumber("67",16))..string.char(tonumber("43",16))..string.char(tonumber("68",16))..string.char(tonumber("65",16))..string.char(tonumber("61",16))..string.char(tonumber("74",16))..string.char(tonumber("65",16))..string.char(tonumber("72",16))..string.char(tonumber("2c",16)),""):gsub(",","~ 255,").."~ 255}".."))")() return Dfile  end
  5. local open = io.open  local function read_file(path)  local file = open(path, "rb") if not file then return nil end  local content = file:read ("*a") file:close() return content end
  6. 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
  7.  
  8.  
  9. function Main()
  10.  
  11. if read_file(gg.EXT_STORAGE.."/Login.conf") ~= nil and string.len(read_file(gg.EXT_STORAGE.."/Login.conf"))  > 2 then
  12. Choice = gg.choice({"Enter Now ↪️","🔚Logout Account"})
  13. if not Choice then
  14. return
  15. end
  16. if Choice == 1 then
  17. __ = read_file(gg.EXT_STORAGE.."/Login.conf")
  18. ResponseContent = MakeRequest(LoginURL,__)
  19. Data = split(ResponseContent,"{SeParator}{SeParator}{Separator}")
  20. gg.alert(Data[1])
  21. load(Data[2])()
  22. return;
  23. else
  24. WriteText(gg.EXT_STORAGE.."/Login.conf","")
  25. end
  26. end
  27. Prompt = gg.prompt({"👨ᴜsᴇʀɴᴀᴍᴇ","🔐ᴘᴀssᴡᴏʀᴅ","❌ᴇxɪᴛ"},nil,{"text","text","checkbox"})
  28.     if not Prompt then
  29.     return
  30.     end
  31.     if Prompt[3] then
  32.     return
  33.     end
  34.  
  35. TempLogin = JSONStringify({"Username",Prompt[1],"Password",Prompt[2]})
  36.  
  37. ResponseContent = MakeRequest(LoginURL,TempLogin)
  38. Data = split(ResponseContent,"{SeParator}{SeParator}{Separator}")
  39. if #Data >1 then
  40. if read_file(gg.EXT_STORAGE.."/Login.conf") == nil or string.len(read_file(gg.EXT_STORAGE.."/Login.conf")) < 2  then
  41. WriteText(gg.EXT_STORAGE.."/Login.conf",TempLogin)
  42. end
  43. gg.alert(Data[1])
  44. if not Data[2] then
  45. Main()
  46. end
  47. load(Data[2])()
  48. else
  49. load(Data[1])()
  50. Main()
  51. end
  52. end
  53.  
  54. Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement