王者荣耀脚本 - 内透、上帝、基地爆炸、功能B、功能C、功能D
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(0x167ba0fe) 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
end
return _S
end
local _A = string.format('0x%X', Get_Address(t_So, t_Offset, _bit))
return _A
end
function setvalue(address,flags,value) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end
PID=gg.getTargetInfo().activities[1].label
function Main() menu = gg.choice({ '验证检测', '开启内透', '开启上帝', '循环基地爆炸', '功能B', '功能C', '功能D', '退出脚本', }, nil, os.date("进程:"..PID.."\n\n抢先服")) if menu == 1 then A() end if menu == 2 then B() end if menu == 3 then C() end if menu == 4 then D() end if menu == 5 then --功能B代码 end if menu == 6 then --功能C代码 end if menu == 7 then --功能D代码 end if menu == 8 then kk() end XGCK = -1 end
function A() gg.clearResults() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber('67109633', gg.TYPE_DWORD) local count = gg.getResultCount() if count <= 99 then gg.alert('无检测,可以奔放') gg.clearResults() gg.setVisible(false) else gg.alert('检测已开,点击确定退出王者!') gg.processKill() end end
function B() so=gg.getRangesList('libGameCore.so')[1].start py=0x17DEFBC setvalue(so+py,16,1.32342786e-13) gg.alert("内透开启成功") end
function C() local gd=gg.prompt({'请输入上帝高度:'}, {'1.8'}, {'number'}) if gd == nil then Main() else local t = {"libil2cpp.so:bss", "Cb"} local tt = {0xEC8, 0xA0, 0x78} local ttt = S_Pointer(t, tt, true) gg.setValues({{address = ttt, flags = 16, value = gd[1]}}) gg.alert("上帝开启成功") end end
function D() gg.setSpeed(10.0) while true do local t = {"libGameCore.so:bss", "Cb"} local tt = {0x155918,0x280,0x0,0x148,0x280,0x210} local ttt = S_Pointer(t, tt, true) if gg.isVisible(true) then gg.setVisible(false) Main() end gg.setValues({{address = ttt, flags = 4, value = 0}}) gg.toast("基地循环BOOM中") gg.sleep(1500) end end
function kk() os.exit() end
while true do if gg.isVisible(true) then XGCK = 1 gg.setVisible(false) end gg.clearResults() if XGCK == 1 then Main() end end
原文地址: https://www.cveoy.top/t/topic/oYgm 著作权归作者所有。请勿转载和采集!