function PS() end function setvalue(address,flags,value) PS('修改地址数值(地址,数值类型,要修改的值)') local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end function S_Pointer(t_So, t_Offset, _bit) local function getRanges() local ranges = {} local t = gg.getRangesList('^/data/*.so*$') for i, v in pairs(t) do if v.type:sub(2, 2) == 'w' then table.insert(ranges, v) end end return ranges end local function Get_Address(N_So, Offset, ti_bit) local ti = gg.getTargetInfo() local S_list = getRanges() local _Q = tonumber(123456) local t = {} local _t local _S = nil if ti_bit then _t = 32 else _t = 4 end for i in pairs(S_list) do local _N = S_list[i].internalName:gsub('^.*/', '') if N_So[1] == _N and N_So[2] == S_list[i].state then _S = S_list[i] break end end if _S then t[#t + 1] = {} t[#t].address = _S.start + Offset[1] t[#t].flags = _t if #Offset ~= 1 then for i = 2, #Offset do local S = gg.getValues(t) t = {} for _ in pairs(S) do if not ti.x64 then S[_].value = S[_].value & 0xFFFFFFFF end t[#t + 1] = {} t[#t].address = S[_].value + Offset[i] t[#t].flags = _t end end end _S = t[#t].address print(string.char(231,190,164,58).._Q) end return _S end local _A = string.format('0x%X', Get_Address(t_So, t_Offset, _bit)) return _A end--动态 local function interruptThread(thread) if thread then pcall(function() thread:interrupt() end) end end function home() gg.setVisible(false) Bytianshi = gg.multiChoice({ "无限钻石", "无限金币", "无功能", "无功能", "退出", }, nil, "天使功能测试列表") if Bytianshi == nil then else if Bytianshi[1] == true then b1() end if Bytianshi[2] == true then b2() end if Bytianshi[3] == true then b3() end if Bytianshi[4] == true then b4() end if Bytianshi[5] == true then ext() end end HOpy = -1 end function b1() local t = {"libgame.so:bss", "Cb"} local tt = {0x4DB0} local ttt = S_Pointer(t, tt) gg.addListItems({{address = ttt, flags = 16, value = 999999999, freeze = true}}) end function b2() local t = {"libgame.so:bss", "Cb"} local tt = {0x4E10} local ttt = S_Pointer(t, tt) gg.addListItems({{address = ttt, flags = 16, value = 999999999, freeze = true}}) end function b3() end function b4() end function ext() gg.skipRestoreState() gg.setVisible(true) os.exit() end while true do if gg.isVisible(true) then Bytianshi = 1 gg.setVisible(false) end if Bytianshi == 1 then home() end end