Advertisement
pinenxu

SendMoney[v2]

May 25th, 2024 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.35 KB | Gaming | 0 0
  1. local function update()
  2.   gg.clearResults()
  3.   gg.setRanges(gg.REGION_CODE_APP)
  4.   gg.searchNumber("1D;2D;3D;4D;5D;6D;7D;8D;9D;16D::37",4,nil,gg.SIGN_EQUAL,libil2cpp["start"],libil2cpp["end"])
  5.   gg.refineNumber(5)
  6.   local Xr = gg.getResults(gg.getResultsCount())
  7.   if #Xr < 1 then gg.toast("ERROR") return false end
  8.   gg.clearResults()
  9.   local t = "_ = (function()\n  offset = "..string.format("0x%X",Xr[1].address - libil2cpp["start"]).."\n  return\nend)([[\n\n"..Xinfo.."\n\n]])"
  10.   gg.saveList(Qfile)
  11.   io.open(Qfile,"w"):write(string.dump(load(t),true))
  12.   return true
  13. end
  14.  
  15. local function lvalue(offset,value)
  16.   local Xl = {{
  17.     address = libil2cpp["start"] + offset,
  18.     value = value,
  19.     flags = 4,
  20.     freeze = true
  21.   }}
  22.   gg.addListItems(Xl)
  23.   gg.removeListItems(Xl)
  24.   return
  25. end
  26.  
  27. local x64 = gg.getTargetInfo().x64
  28. local Xversion = gg.getTargetInfo().versionName
  29. libil2cpp = gg.getRangesList("libil2cpp.so")[(x64 and 2 or 1)]
  30. Qfile = "/sdcard/Q/file/t.S-S.t"
  31.  
  32. off = 5
  33.  
  34. if #gg.getRangesList("libil2cpp.so") < 1 then
  35.   print("[ERROR]")
  36.   print("If the game is split, Anti split it.")
  37.   return
  38. end
  39.  
  40. Qinfo = loadfile(Qfile) and io.open(Qfile,"r"):read("*all"):match("CPM%[.-%]%[x.-%]") or "CPM[NaN][NaN]"
  41. Xinfo = "CPM["..Xversion.."][x"..(x64 and 64 or 32).."]"
  42.  
  43. if Qinfo ~= Xinfo then
  44.   Qinfo = "Please update the script\n"..Qinfo.." > "..Xinfo
  45. else
  46.   loadfile(Qfile)()
  47. end
  48.  
  49. Xvalue = {
  50.   [3] = 1,
  51.   [4] = 16,
  52.   [5] = 256,
  53.   [6] = 4096,
  54.   [7] = 65536,
  55.   [8] = 1048576,
  56. }
  57.  
  58. repeat
  59.   repeat until gg.isVisible()
  60.   gg.setVisible(false)
  61.   local menu = gg.prompt({Qinfo.."\nSend","[OFF]","[Update]","[Exit]"},last,{"number","checkbox","checkbox","checkbox"})
  62.     if menu then
  63.       menu[1] = #menu[1] > 8 and menu[1]:sub(1,8) or menu[1]
  64.       last = {menu[1]}
  65.       if menu[4] then break end
  66.       if menu[3] or Qinfo ~= Xinfo then
  67.         if gg.alert(Qinfo.."\nDo you want to update","yes","no") == 1 then update() break end
  68.       end
  69.       if Qinfo == Xinfo then
  70.         if menu[2] then
  71.           lvalue(offset,off)
  72.           gg.toast("OFF")
  73.         elseif tonumber(menu[1]) then
  74.           local on = 0
  75.           for i = #menu[1] - 2, 1, -1 do on = on + (Xvalue[#menu[1] - i + 1]*tonumber(menu[1]:sub(i,i))) end
  76.           lvalue(offset,on)
  77.           gg.toast("ON")
  78.         end
  79.       end
  80.     end
  81. until nil
  82. gg.setVisible(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement