function panduan(rec) fille,err = io.open(rec) if fille == nil then return false else return true end end function pdcf(lujing) rec = "/storage/emulated/0/熊大辅助配置文件/配置文件/"..lujing fille,err = io.open(rec) if fille == nil then return false else return true end end sleep = gg.sleep if gg.isHTTPdump()==true and panduan("/storage/emulated/0/熊大辅助配置文件/配置文件/vpn.txt") == false then gg.alert("\n熊大:检测到您开启了VPN 无法启用该脚本!") os.exit() end function read(fileName) f = assert(io.open(fileName, 'r')) content = f:read("*all") f:close() return content end -----↑防抓包 Y=gg.makeRequest("https://v1.hitokoto.cn/").content --获取云端数据 Q=string.match(Y,'hitokoto(.+)type') --模式匹配他们中的一切字符 F=string.gsub(Q,'":"',"") K=string.gsub(F,'","',"") --删除多余垃圾 string.toMusic("\n\n"..""..K.."") --QD = gg.alert("今日语录:\n\n"..""..K.."") if QD == 1 then end if QD == 3 then end local ByXD= [[ 逃 跑 吧 少 年 —————————启动]] gg.alert(ByXD.."","确认") local json =json--调用 local g = {} g.file = gg.getFile() g.sel = nil gqlb={"请先搜索歌曲",}---语音 idb={"1010"} SN,gc=1,nil g.config = gg.getFile():gsub("%lua$", "").."cfg" function bei() g.data = loadfile("-- WSG PRO 1.0.9(109)\n"..g.config) if g.data ~= nil then g.sel = g.data() g.data = nil end if g.sel == nil then g.sel = {"红色高跟鞋","5"} end end bei() --搜索歌曲 function start(name,sl) fw=gg.makeRequest("http://music.163.com/api/search/get?s="..name.."&type=1&offset=0&total=true&limit="..sl) return fw end --歌词 --播放音乐 function play(id,name) gg.toast("正在播放音乐:"..name,true) gg.playMusic("http://music.163.com/song/media/outer/url?id="..id..".mp3") end --停止播放 function stop() gg.toast("正在停止音乐") for i=1,100 do gg.playMusic("stop") gg.playMusic("stop") gg.playMusic("stop") end end ---- function Play(gqlb,idb) SN = gg.choice(gqlb,nil,ts) if SN == nil then XGCK =-1 else sn=gg.choice({"播放歌曲","播放并下载"},nil,"歌曲:"..gqlb[SN]) if sn == nil then end if sn == 1 then play(idb[SN],gqlb[SN]) end if sn == 2 then local XEY=gg.makeRequest("http://music.163.com/song/media/outer/url?id="..idb[SN]..".mp3").content local XEY1=gg.getFile():gsub("[^/]+$","")..gqlb[SN]..".mp3" io.open(XEY1,"w"):write(XEY) gg.alert("提示:\n\n音乐已成功下载位置:\n\n"..XEY1) end XGCK=-1 end end function zjson(jsonr) local str = jsonr -- 匹配Json Key的正则表达式 local pattern = "\"[%w]+\":" string.gsub(str, pattern, function(v) if string.find(str, v) then str = string.gsub(str, v, string.gsub(v, "\"", "")) end end) str = string.gsub(str, ":", "=") str = string.gsub(str, "%[", "{") str = string.gsub(str, "%]", "}") local data = "-- WSG PRO 1.0.9(109)\nreturn " .. str local res = load(data)() return res end function json(con) res=zjson(con) zd=res.result.songCount pd=go3-zd if pd <= 0 then else go3=zd end ts="《"..go1.."》找到"..zd.."首歌曲,当前显示"..go3.."首" gqlb={} idb={} for i=1,go3 do gqlb[i]=res.result.songs[i].name idb[i]=res.result.songs[i].id end --print(idb) 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(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 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 --修改器配置区 ------------------------------ vibra = context:getSystemService(Context.VIBRATOR_SERVICE) changan = {} local changan = changan local android = import('android.*') write=file.write function panduan(rec) fille,err = io.open(rec) if fille == nil then return false else return true end end read=file.read function checkimg(tmp) if panduan("/sdcard/熊大辅助配置文件/图片/"..tmp) ~= true then gg.toast("正在加载资源"..tmp) download("https://escape2020-1303126286.cos.ap-shenzhen-fsi.myqcloud.com/"..tmp,"/sdcard/熊大辅助配置文件/图片/"..tmp) end end function 获取图片(txt) ntxt=string.sub(string.gsub(txt,"/","."),-10,-1) if string.find(tostring(txt),"http")~=nil then if panduan("/sdcard/熊大辅助配置文件/图片/"..ntxt)==false then download(txt,"/sdcard/熊大辅助配置文件/图片/"..ntxt) end txt="/sdcard/熊大辅助配置文件/图片/"..ntxt end return luajava.getBitmapDrawable(txt) end ckimg = { "blackx", } for i = 1,#ckimg do checkimg(ckimg[i]) end context = app.context window = context:getSystemService("window") -- 获取窗口管理器 function getLayoutParams() LayoutParams = WindowManager.LayoutParams layoutParams = luajava.new(LayoutParams) if (Build.VERSION.SDK_INT >= 26) then -- 设置悬浮窗方式 layoutParams.type = LayoutParams.TYPE_APPLICATION_OVERLAY else layoutParams.type = LayoutParams.TYPE_PHONE end layoutParams.format = PixelFormat.RGBA_8888 -- 设置背景 layoutParams.flags = LayoutParams.FLAG_NOT_FOCUSABLE -- 焦点设置Finish layoutParams.gravity = Gravity.TOP|Gravity.LEFT -- 重力设置 layoutParams.width = LayoutParams.WRAP_CONTENT -- 布局宽度 layoutParams.height = LayoutParams.WRAP_CONTENT -- 布局高度 return layoutParams end function getj6() jianbian6 = luajava.new(GradientDrawable) jianbian6:setCornerRadius(20) jianbian6:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbian6:setColors({0xffffffff,0xffffffff}) jianbian6:setStroke(0,"0xdd000000")--边框宽度和颜色 return jianbian6 end hanshu = function(v, event) local Action = event:getAction() if Action == MotionEvent.ACTION_DOWN then isMove = false RawX = event:getRawX() RawY = event:getRawY() x = mainLayoutParams.x y = mainLayoutParams.y elseif Action == MotionEvent.ACTION_MOVE then isMove = true mainLayoutParams.x = tonumber(x) + (event:getRawX() - RawX) mainLayoutParams.y = tonumber(y) + (event:getRawY() - RawY) window:updateViewLayout(floatWindow, mainLayoutParams) end end slctb1 = luajava.loadlayout({ GradientDrawable, color = "#FFB6C1", cornerRadius = 20 }) slcta1 = luajava.loadlayout({ GradientDrawable, color = "#FFB6C1", cornerRadius = 20 }) function getSelector3() selector = luajava.getStateListDrawable() selector:addState({ android.R.attr.state_pressed }, slcta1) -- 点击时候的背景 selector:addState({ -android.R.attr.state_pressed }, slctb1) -- 没点击的背景 return selector end slctb = luajava.loadlayout({ GradientDrawable, color = "#001E1C27", cornerRadius = 0 }) slcta = luajava.loadlayout({ GradientDrawable, color = "0xff0086F1", cornerRadius = 4 }) slctc = luajava.loadlayout { GradientDrawable, color = "#ffffffff", cornerRadius = 16 } slctd = luajava.loadlayout { GradientDrawable, color = "#FFB6C1", cornerRadius = 16 } slcte = luajava.loadlayout { GradientDrawable, color = "#11ffffff", cornerRadius = 12 } slctf = luajava.loadlayout { GradientDrawable, color = "#aa1E1C27", cornerRadius = 12 } changan.controlFlip = function(control,time) luajava.runUiThread(function() import "android.view.animation.Animation" import "android.animation.ObjectAnimator" xuanzhuandonghua = ObjectAnimator:ofFloat(control, "rotationY", {0, 360}) xuanzhuandonghua:setRepeatCount(0) xuanzhuandonghua:setRepeatMode(Animation.REVERSE) xuanzhuandonghua:setDuration(time) xuanzhuandonghua:start() end) end function getSelector() selector = luajava.getStateListDrawable() selector:addState({ android.R.attr.state_pressed }, slcta) -- 点击时候的背景 selector:addState({ -android.R.attr.state_pressed }, slctb) -- 没点击的背景 return selector end function getSelector2() selector = luajava.getStateListDrawable() selector:addState({ android.R.attr.state_pressed }, slctd) -- 点击时候的背景 selector:addState({ -android.R.attr.state_pressed }, slctc) -- 没点击的背景 return selector end jianbian = luajava.new(GradientDrawable) jianbian:setCornerRadius(30) jianbian:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbian2 = luajava.new(GradientDrawable) jianbian2:setCornerRadius(30) jianbian2:setGradientType(GradientDrawable.LINEAR_GRADIENT) local isswitch YoYoImpl = luajava.getYoYoImpl() changan.menu = function(sview) if isswitch then return false end for i=1,#stab do _ENV["jmb"..i]=getSelector() end isswitch = true cebian = { LinearLayout, id = "侧边", gravity = "center", visibility = "gone", layout_height = "wrap_content", layout_width = "match_parent", } gund = { LinearLayout, background=getblue(), gravity = "center", orientation = "horizontal", layout_height = "wrap_content", layout_width = "wrap_content", } for i = 1,#stab do _ENV["jm"..i]=luajava.loadlayout({ LinearLayout, id = "jm"..i, layout_height = "28dp", layout_width = "68dp", gravity = "center", layout_marginTop = "2dp", layout_marginBottom = "2dp", background = _ENV["jmb"..i], onClick=function() --changan.controlFlip(_ENV["jm"..i],500) 切换(i) end, { TextView, id="jm"..i.."t", gravity = "center", textColor="#0086F1", text = stab[i], --onClick = function() 切换(i) end }}) gund[#gund+1] = _ENV["jm"..i] if i< #stab then gund[#gund+1] = luajava.loadlayout({ LinearLayout, layout_height="match_parent", layout_width="1.3dp", background="#0086F1" }) end end cebian[#cebian+1] = { HorizontalScrollView, gravity = "center", fillViewport = "true", layout_height = "wrap_content", layout_width = "wrap_content", gund, } cebian = luajava.loadlayout(cebian) for i = 1,#stab do _ENV["layout"..i] = luajava.loadlayout( { ScrollView, --background = getj6(), fillViewport = "true", padding = "3dp", id = "layout"..i, visibility = "gone", padding="10dp", layout_width = "wrap_content", layout_height = "280dp", orientation = "vertical", { LinearLayout, --background = getj6(), id = "layoutm"..i, gravity = "top", layout_width = "250dp", orientation = "vertical", gravity = "center_horizontal", }, }) end ckou = { LinearLayout, id = "chuangk", padding="4dp", visibility = "gone", layout_width = "wrap_content", layout_height = "wrap_content", orientation = "vertical", cebian, } for i = 1,#stab do ckou[#ckou+1] = _ENV["layout"..i] end --luajava.newThread(function() develo(ckou) end):start() ckou = luajava.loadlayout(ckou) title = luajava.loadlayout({ TextView, id = "title", visibility = "gone", text = stitle, --background="#80FF00", textColor="#000000", gravity = "center", textSize = "19sp", layout_marginTop = "20dp", layout_width = "280dp", }) floatWindow = { LinearLayout, id = "motion", orientation="vertical", {FrameLayout, layout_width="wrap_content", --background="#ffffff", { LinearLayout, gravity = "center", { ImageView, id = "control", background = 获取图片(xfcpic), layout_width = "40dp", layout_height = "40dp", }}, { ImageView, id = "exit", layout_gravity="right", visibility="gone", src = "/sdcard/熊大辅助配置文件/图片/blackx", layout_width = "20dp", layout_height = "20dp", layout_marginTop = "10dp", layout_marginRight = "20dp", }, {LinearLayout, layout_width = "wrap_content", orientation = "vertical", gravity = "center_vertical", layout_height = "wrap_content", { LinearLayout, layout_width = "wrap_content", layout_height = "wrap_content", orientation = "horizontal", gravity = "center", title, }, }}, ckou } local function invoke() local ok local RawX, RawY, x, y mainLayoutParams = getLayoutParams() floatWindow = luajava.loadlayout(floatWindow) local function invoke2() block('start') for k = 1,#sview do for i = 1,#sview[k] do _ENV["layoutm"..k]:addView(sview[k][i]) end end window:addView(floatWindow, mainLayoutParams) block('end') end local runnable = luajava.getRunnable(invoke2) local handler = luajava.getHandler() handler:post(runnable) block('join') control.onClick = 隐藏 exit.onClick = 隐藏 local isMove motion.onTouch = hanshu control.onTouch = hanshu exit.onTouch = hanshu end invoke(swib1,swib2) gg.setVisible(false) luajava.setFloatingWindowHide(true) 切换(1) end function changan.line() rest = luajava.loadlayout({ LinearLayout, layout_width = 'fill_parent', layout_height = "1dp", background = "#C2CAD7", }) return rest end function changan.line2() rest = luajava.loadlayout({ LinearLayout, layout_width = '180dp', layout_height = "5dp", layout_marginLeft="35dp", background = "#0087FF", layout_marginTop="10dp", }) return rest end function getblue() jianbians = luajava.new(GradientDrawable) jianbians:setCornerRadius(6) jianbians:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbians:setColors({0xffffffff,0xffffffff}) jianbians:setStroke(4,"0xff0086F1")--边框宽度和颜色 return jianbians end function getShape3() jianbians = luajava.new(GradientDrawable) jianbians:setCornerRadius(10) jianbians:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbians:setColors({0xffffffff,0xffffffff}) jianbians:setStroke(4,"0x77000000")--边框宽度和颜色 return jianbians end function getShape5() jianbians = luajava.new(GradientDrawable) jianbians:setCornerRadius(4) jianbians:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbians:setColors({0xffffffff,0xff007AFF}) jianbians:setOrientation(GradientDrawable.Orientation.TL_BR) jianbians:setStroke(2,"0x77000000")--边框宽度和颜色 return jianbians end function getShape() jianbians = luajava.new(GradientDrawable) jianbians:setCornerRadius(90) jianbians:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbians:setColors({0xff49C263,0xff49C263}) jianbians:setStroke(0,"0xffffffff")--边框宽度和颜色 return jianbians end function getShape2() jianbians = luajava.new(GradientDrawable) jianbians:setCornerRadius(10) jianbians:setShape(GradientDrawable.RECTANGLE) jianbians:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbians:setColors({0xffffffff,0xffffffff}) jianbians:setStroke(8,"0xff000000")--边框宽度和颜色 return jianbians end corbk = true 当前ui = 1 显示 = 0 beij = luajava.new(GradientDrawable) beij:setCornerRadius(25) beij:setGradientType(GradientDrawable.LINEAR_GRADIENT) beij:setColors({0xfeEFEFEF,0xfeEFEFEF,}) beij:setStroke(0,"0x44FFffff")--边框宽度和颜色 --beijw beij2 = luajava.loadlayout({ GradientDrawable, color = "#001E1C27", cornerRadius = 10 }) function visi(tid,ttid) local tview = luajava.getIdValue(tid) local ttview = luajava.getIdValue(ttid) if not tview then return 0 end if tonumber(tostring(tview:getVisibility())) == 8.0 then tview:setVisibility(View.VISIBLE) ttview:setBackground(luajava.getBitmapDrawable("/sdcard/熊大辅助配置文件/图片/hsj")) else tview:setVisibility(View.GONE) ttview:setBackground(luajava.getBitmapDrawable("/sdcard/熊大辅助配置文件/图片/sj")) end end function changan.box2(views,boxi) local tid = "box"..guid() local ttid = tid.."678" firadio = { LinearLayout, layout_width = '250dp', layout_height = "wrap_content", layout_marginTop = "2dp", layout_marginBottom = "2dp", orientation = "vertical", } if type(views[1]) == "string" or type(views[1]) == "number" then firadio[#firadio+1] = { LinearLayout, layout_width = 'fill_parent', layout_height = "28dp", gravity = "center_vertical", layout_marginTop = "2dp", layout_marginBottom = "4dp", onClick = function() visi(tid,ttid) end, background = getSelector3(), { ImageView, layout_marginLeft = "10dp", id = luajava.newId(ttid), background = "/sdcard/熊大辅助配置文件/图片/hsj", layout_width = "20dp", layout_height = "20dp", layout_marginTop = "0dp", }, { TextView,text = views[1], textSize = "16sp", layout_marginLeft = "15dp", layout_width = "100dp", textColor = "#ffffff", gravity = "left", }} else gg.alert("changan.box第一个参数必须是string") os.exit() end if boxi then boxi="visible" else boxi="gone" end radios = { LinearLayout, layout_marginLeft = "0dp", layout_marginRight = "0dp", orientation = "vertical", visibility = boxi, id = luajava.newId(tid), padding = "0dp", layout_width = 'fill_parent', } for i = 2,#views do radios[#radios+1] = views[i] end firadio[#firadio+1] = radios return luajava.loadlayout(firadio) end function changan.box(views) local tid = "box"..guid() local ttid = tid.."6" firadio = { LinearLayout, gravity = "center", layout_width = 'fill_parent', layout_height = "wrap_content", orientation = "vertical", } if type(views[1]) == "string" or type(views[1]) == "number" then if views[1]~="" then tsiz="14sp" else tsiz="0sp"end firadio[#firadio+1] = { LinearLayout, layout_height = "wrap_content", layout_width = "fill_parent", { TextView, text = views[1], textSize = tsiz, layout_width = "match_parent", textColor = "#000000", gravity = "center", }} else end radios = { LinearLayout, layout_marginLeft = "0dp", layout_marginRight = "0dp", orientation = "vertical", padding = "0dp", background = getj6(), layout_width = 'fill_parent', } for i = 2,#views do radios[#radios+1] = views[i] if i~=#views then radios[#radios+1] = changan.line() end end firadio[#firadio+1] = radios return luajava.loadlayout(firadio) end 当前ui = 1 function 切换(x) 当前ui = x luajava.runUiThread(function() for i = 1,#stab do _ENV["jm"..i]:setBackground(_ENV["jmb"..i]) _ENV["jm"..i.."t"]:setTextColor(0xff0086F1) _ENV["layout"..i]:setVisibility(View.GONE) end _ENV["layout"..当前ui]:setVisibility(View.VISIBLE) _ENV["jm"..当前ui]:setBackground(slcta) _ENV["jm"..当前ui.."t"]:setTextColor(0xffffffff) --YoYoImpl:with("FadeIn"):duration(200):playOn(_ENV["layout"..当前ui]) end) end function 隐藏() luajava.runUiThread(function() if tonumber(tostring(exit:getVisibility())) == 8.0 then control:setVisibility(View.GONE) chuangk:setVisibility(View.VISIBLE) exit:setVisibility(View.VISIBLE) title:setVisibility(View.VISIBLE) cebian:setVisibility(View.VISIBLE) mainLayoutParams.flags = LayoutParams.FLAG_NOT_TOUCH_MODAL window:updateViewLayout(floatWindow, mainLayoutParams) --YoYoImpl:with("FadeIn"):duration(300):playOn(title) _ENV["layout"..当前ui]:setVisibility(View.VISIBLE) YoYoImpl:with("FadeIn"):duration(200):playOn(floatWindow) floatWindow:setBackground(beij) else control:setVisibility(View.VISIBLE) mainLayoutParams.flags = LayoutParams.FLAG_NOT_FOCUSABLE window:updateViewLayout(floatWindow, mainLayoutParams) title:setVisibility(View.GONE) cebian:setVisibility(View.GONE) floatWindow:setBackground(beij2) chuangk:setVisibility(View.GONE) exit:setVisibility(View.GONE) YoYoImpl:with("FadeIn"):duration(200):playOn(floatWindow) _ENV["layout"..当前ui]:setVisibility(View.GONE) end end) end function 退出UI() window:removeView(floatWindow) luajava.setFloatingWindowHide(false) bloc("end") end function guid() seed = { 'e','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f' } tb = {} for i = 1,32 do table.insert(tb,seed[math.random(1,16)]) end sid = table.concat(tb) return string.format('%s%s%s%s%s', string.sub(sid,1,8), string.sub(sid,10,12), string.sub(sid,21,22)) ..string.format('%s%s%s%s%s', string.sub(sid,1,6), string.sub(sid,21,25) ) end chazhi={} chajv={} function changan.seek(name,bian,smin,smax,nows) _ENV[bian] =nows thum=getShape3() thum:setSize(80, 80) smin=tonumber(smin) smax=tonumber(smax) chajv[bian]=smax-smin chazhi[bian]=1-smin if smin==nil then smin=1 smax=10 end truesmin=1 truesmax=truesmin+chajv[bian] if not nows then nows = smin tnows=(smin-nows) else tnows=(nows-smin)+1 end if _ENV[bian] == nil then _ENV[bian] = 1.0 end if not name then name = "未设置" end local names = name..guid() rest = luajava.loadlayout({ LinearLayout, layout_width = 'fill_parent', layout_height = "36dp", { LinearLayout, layout_width = 'fill_parent', layout_hight = "fill_parent", layout_marginTop = "5dp", layout_marginBottom = "5dp", gravity = "center_vertical", --background = getShape(), { TextView, gravity = "top", textColor="#00A4FF", textSize="16sp", text = name..":"..nows, id = luajava.newId(names), layout_width = '100dp', layout_marginLeft = "10dp", layout_marginRight = "0dp", }, { SeekBar, layout_width = '140dp', id=luajava.newId(name.."seekbar"), min = truesmin, max = truesmax, progress=tnows, --paddingStart="0dp", --paddingEnd="0dp", progressDrawable={getShape5()}, thumb=thum, progressHeight="2dp", onSeekBarChange = { onProgressChanged = function(SeekBar, var2, var3) if not var3 then return end local resultvar=tonumber(string.sub(var2,0,-3))-chazhi[bian] luajava.runUiThread(function() luajava.getIdValue(names):setText(name..":".. resultvar) end) _ENV[bian] = resultvar end }} }}) return rest end function getShape(tmp0,tmp1,tmp2,tmp3) jianbians = luajava.new(GradientDrawable) jianbians:setCornerRadius(tmp0) jianbians:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbians:setColors(tmp1) jianbians:setOrientation(GradientDrawable.Orientation.LEFT_RIGHT) jianbians:setStroke(4,tmp3)--边框宽度和颜色 return jianbians end function getShape2(tmp0,tmp1,tmp2,tmp3) jianbians = luajava.new(GradientDrawable) jianbians:setCornerRadius(tmp0) jianbians:setGradientType(GradientDrawable.LINEAR_GRADIENT) jianbians:setColors(tmp1) jianbians:setOrientation(GradientDrawable.Orientation.LEFT_RIGHT) jianbians:setStroke(8,tmp3)--边框宽度和颜色 return jianbians end checkbg=getShape( 45, {0xffB8B8B8,0xffB8B8B8}, 4,0xffB8B8B8) checkbga=getShape( 45, {0xff0086F1,0xff0086F1}, 4,0xff0086F1) checkbg1=getShape2( 45, {0xffffffff,0xffffffff}, 4,0xffffffff) checkbg2=getShape2( 45, {0xffffffff,0xffffffff}, 4,0xffffffff) function 开关3(name,func1,func2,nid) name=name..guid() _ENV[name] = "关" if func1 == nil then func1 = "" end if func2 == nil then func2 = "" end if type(func1) == "function" then return function() namers = _ENV[name] if namers ~= "开" then luajava.runUiThread(function() luajava.getIdValue(nid.."k"):setVisibility(View.GONE) luajava.getIdValue(nid.."g"):setVisibility(View.VISIBLE) luajava.getIdValue(nid):setBackground(checkbga) end) _ENV[name] = "开" vibra:vibrate(10) pcall(func1) else luajava.runUiThread(function() luajava.getIdValue(nid.."g"):setVisibility(View.GONE) luajava.getIdValue(nid.."k"):setVisibility(View.VISIBLE) luajava.getIdValue(nid):setBackground(checkbg) end) _ENV[name] = "关" vibra:vibrate(10) pcall(func2) end end end end function changan.switch(name,func1,func2,yans) nid = name..guid() if not yans then yans="#00A4FF" end local func = 开关3(name,func1,func2,nid) if not name then name = "未设置" end rest = luajava.loadlayout({ LinearLayout, layout_width = 'fill_parent', layout_height = "36dp", gravity = "center_vertical", { LinearLayout, layout_width = 'fill_parent', layout_height = "35dp", gravity = "center_vertical", { TextView, gravity = "top", text = name, textColor=yans, textSize="16sp", layout_width = '170dp', layout_marginLeft = "10dp", layout_marginRight = "10dp", }, { FrameLayout, id = luajava.newId(nid), background = checkbg, onClick = function() luajava.newThread(function() func() end):start() end, layout_width = '43dp', layout_height = 'wrap_content', padding="1dp", { LinearLayout, layout_gravity="left", id = luajava.newId(nid.."k"), background = checkbg1, onClick = function() luajava.newThread(function() func() end):start() end, layout_width = '21dp', layout_height = '21dp', },{ LinearLayout, visibility="gone", layout_gravity="right", id = luajava.newId(nid.."g"), background = checkbg2, onClick = function() luajava.newThread(function() func() end):start() end, layout_width = '21dp', layout_height = '21dp', } }} }) return rest end function changan.edit(name) _ENV[name] = name..guid() if not name then name = "点击输入文字" end rest = luajava.loadlayout({ LinearLayout, layout_width = 'fill_parent', layout_height = "40dp", { FrameLayout, layout_width = 'fill_parent', layout_hight = "fill_parent", gravity = "center", --orientation="vertical", { EditText, gravity = "top", background = getShape(), hint = name, textColor="#383C3F", gravity="center", textSize="15sp", --layout_marginBottom="-20dp", id = luajava.newId(_ENV[name]), layout_width = 'fill_parent', }, { LinearLayout, layout_width = '220dp', layout_height = "2dp", layout_gravity="center", background = "#0087FF", layout_marginTop="10dp", } } }) luajava.getIdValue(_ENV[name]):setHintTextColor(0xff787878) return rest end function changan.radio(radio) firadio = { LinearLayout, layout_width = 'fill_parent', layout_hight = "fill_parent", padding="10dp", orientation = "vertical" } if type(radio[1]) == "string" or type(radio[1]) == "number" then firadio[#firadio+1] = { TextView,text = radio[1]} end radios = { RadioGroup,background = getShape(), layout_width = 'fill_parent', } for i = 2,#radio do radios[#radios+1] = { RadioButton, layout_width = 'fill_parent', text = radio[i][1], onClick = function() luajava.newThread(function() pcall(radio[i][2]) end):start() end, } end firadio[#firadio+1] = radios return luajava.loadlayout(firadio) end function changan.button(txt,func,yans) if not yans then yans="#00A4FF" end if not txt then txt = "未设置" end return luajava.loadlayout( {LinearLayout, layout_width = 'fill_parent', layout_hight = "30dp", background=getSelector2(), onClick=function() luajava.newThread(func):start() end, { LinearLayout, layout_width = "fill_parent", layout_hight="wrap_content", gravity="center_horizontal", layout_marginTop = "6dp", layout_marginBottom = "6dp", { TextView, textStyle="bold", textColor=yans, --id = luajava.newId(tid), text = txt, textSize="15sp", layout_width = "wrap_content", }, }}) end function changan.text(txt,color,size) if not txt then txt = "未设置文字" end if not color then color = "#ffffff" end if not size then size = "18sp" end return luajava.loadlayout( { TextView, text = txt, textSize = size, textColor = color, layout_width = "wrap_content", }) end corb = true function changan.setedit(name,txt) txt = tostring(txt) luajava.runUiThread(function() luajava.getIdValue(_ENV[name]):setText(txt) end) end function changan.getedit(name) edit = tostring(luajava.getIdValue(_ENV[name]):getText()) return edit end function 开关(name,func1,func2) if func1 == nil then func1 = "" end if func2 == nil then func2 = "" end if type(func1) == "function" then return function() namers = _ENV[name] if namers ~= "开" then _ENV[name] = "开" pcall(func1) else _ENV[name] = "关" pcall(func2) end end end end ---↓↓↓你的脚本放在这里,结菜单调用 ---↑↑↑你的脚本放在这里,下面菜单调用 stitle = "你好"--←大标题 stab = {--←菜单导航栏 "设置", "稳定", "火力", "半稳", "音乐", --可自行拓展,需要对应下边菜单配置 } xfcpic = "https://i.hd-r.cn/841c6b4f-636a-4dd8-9cca-7c6af5038f4e.jpg" --xfcpic = "https://pan.szfx.top/down.php/d3a8fdc1bd98abce40c1fad81b430fb2.jpg" --↑悬浮窗链接或路径↑ --changan.button 按钮 --changan.switch 开关 --changan.box 区域框 --changan.text 文字 --changan.seek 拖动条 --changan.edit 输入框(changan.getedit和changan.setedit调用 --以上是本UI模块包含的控件,在下面都有示例参考 changan.menu( { {----1 changan.box({--box开头 "逃跑8.41.0", changan.button("选择进程😂", function() gg.setProcessX() end), changan.button("缩小菜单😂", function() 隐藏() gg.playMusic('http://valkire.cn/view.php/ed248003934582a63b91fad2fade143f.mp3') gg.toast("开启成功") end), changan.button("清除列表😂", function() gg.clearList() gg.clearResults() gg.playMusic('http://valkire.cn/view.php/ed248003934582a63b91fad2fade143f.mp3') gg.toast("开启成功") end), changan.button("显示水印😂", function() draw.text("离别信", 350,300) draw.setColor('#00FF00') draw.setSize(60) draw.setStyle("描边并填充") --draw.text("直播效果后期PS合成注意分辨!!! ", 810, 150) --draw.setColor('#FF0A90FF') --draw.setSize(50) --draw.setStyle("描边并填充") end), changan.button("退出辅助😂", function() 退出UI() end, "#FFB6C1"),--最后一个参数是颜色可以省略,默认蓝 }),--box结尾 }, {----2 changan.box({--box开头 "稳定一辈子", changan.button("自调视角",--功能名字 function()--功能开始 --↓放你的代 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 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 t = {"libil2cpp.so", "Cd"} local tt = {0x3A8FA0, 0x20, 0xB8, 0x0, 0xEC} local ttt = S_Pointer(t, tt, true) local p = gg.prompt({"12是初始视角"}, {12}, {"number"}) gg.addListItems({{address = ttt, flags = 16, value = p[1], freeze = true }}) gg.toast("开启成功") end,"#FFB6C1"), changan.button("明亮透视",--功能名字 function()--功能开始 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].name: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 local function coreEnc(src,ka,kb,kc,kd) local r = src + ka r = bit32.bxor(r, kb) r = r * 7 r = bit32.bxor(r, kc) r = r + kd return r end local function coreDec(enc,ka,kb,kc,kd) local r = enc - kd r = bit32.bxor(r, kc) r = r / 7 r = bit32.bxor(r, kb) r = r - ka return r end local k1a = 0x135 local k1b = 0x8722 local k1c = 0xAE11 local k1d = 0x294 local k2a = 0x52 local k2b = 0x3371 local k2c = 0xBF22 local k2d = 0x108 local k3a = 0x22 local k3b = 0x7712 local k3c = 0xCD33 local k3d = 0x44 local k4a = 0x310 local k4b = 0x4466 local k4c = 0xDE44 local k4d = 0x155 local dumpA = 0 local dumpB = 0 local dumpC = 0 local dumpD = 0 dumpA = dumpA + 0x11 dumpA = bit32.bxor(dumpA,0x22) dumpA = dumpA + 0x33 dumpA = bit32.bxor(dumpA,0x44) dumpA = dumpA + 0x55 dumpA = bit32.bxor(dumpA,0x66) dumpA = dumpA + 0x77 dumpA = bit32.bxor(dumpA,0x88) dumpA = dumpA + 0x99 dumpA = bit32.bxor(dumpA,0xAA) dumpA = dumpA + 0xBB dumpA = bit32.bxor(dumpA,0xCC) dumpA = dumpA + 0xDD dumpA = bit32.bxor(dumpA,0xEE) dumpA = dumpA + 0xFF dumpA = bit32.bxor(dumpA,0x101) dumpA = dumpA + 0x102 dumpA = bit32.bxor(dumpA,0x103) dumpA = dumpA + 0x104 dumpA = bit32.bxor(dumpA,0x105) dumpA = dumpA + 0x106 dumpA = bit32.bxor(dumpA,0x107) dumpA = dumpA + 0x108 dumpA = bit32.bxor(dumpA,0x109) dumpA = dumpA + 0x10A dumpA = bit32.bxor(dumpA,0x10B) dumpA = dumpA + 0x10C dumpA = bit32.bxor(dumpA,0x10D) dumpA = dumpA + 0x10E dumpA = bit32.bxor(dumpA,0x10F) dumpA = dumpA + 0x110 dumpA = bit32.bxor(dumpA,0x111) dumpA = dumpA + 0x112 dumpA = bit32.bxor(dumpA,0x113) dumpA = dumpA + 0x114 dumpA = bit32.bxor(dumpA,0x115) dumpA = dumpA + 0x116 dumpA = bit32.bxor(dumpA,0x117) dumpA = dumpA + 0x118 dumpA = bit32.bxor(dumpA,0x119) dumpA = dumpA + 0x11A dumpA = bit32.bxor(dumpA,0x11B) dumpA = dumpA + 0x11C dumpA = bit32.bxor(dumpA,0x11D) dumpA = dumpA + 0x11E dumpA = bit32.bxor(dumpA,0x11F) dumpA = dumpA + 0x120 dumpA = bit32.bxor(dumpA,0x121) dumpA = dumpA + 0x122 dumpA = bit32.bxor(dumpA,0x123) dumpA = dumpA + 0x124 dumpA = bit32.bxor(dumpA,0x125) dumpA = dumpA + 0x126 dumpA = bit32.bxor(dumpA,0x127) dumpA = dumpA + 0x128 dumpA = bit32.bxor(dumpA,0x129) dumpA = dumpA + 0x12A dumpA = bit32.bxor(dumpA,0x12B) dumpA = dumpA + 0x12C dumpA = bit32.bxor(dumpA,0x12D) dumpA = dumpA + 0x12E dumpA = bit32.bxor(dumpA,0x12F) dumpA = dumpA + 0x130 dumpA = bit32.bxor(dumpA,0x131) dumpA = dumpA + 0x132 dumpA = bit32.bxor(dumpA,0x133) dumpA = dumpA + 0x134 dumpA = bit32.bxor(dumpA,0x135) dumpA = dumpA + 0x136 dumpA = bit32.bxor(dumpA,0x137) dumpA = dumpA + 0x138 dumpA = bit32.bxor(dumpA,0x139) dumpA = dumpA + 0x13A dumpA = bit32.bxor(dumpA,0x13B) dumpA = dumpA + 0x13C dumpA = bit32.bxor(dumpA,0x13D) dumpA = dumpA + 0x13E dumpA = bit32.bxor(dumpA,0x13F) dumpA = dumpA + 0x140 dumpA = bit32.bxor(dumpA,0x141) dumpA = dumpA + 0x142 dumpA = bit32.bxor(dumpA,0x143) dumpA = dumpA + 0x144 dumpA = bit32.bxor(dumpA,0x145) dumpA = dumpA + 0x146 dumpA = bit32.bxor(dumpA,0x147) dumpA = dumpA + 0x148 dumpA = bit32.bxor(dumpA,0x149) dumpA = dumpA + 0x14A dumpA = bit32.bxor(dumpA,0x14B) dumpA = dumpA + 0x14C dumpA = bit32.bxor(dumpA,0x14D) dumpA = dumpA + 0x14E dumpA = bit32.bxor(dumpA,0x14F) dumpA = dumpA + 0x150 dumpA = bit32.bxor(dumpA,0x151) dumpA = dumpA + 0x152 dumpA = bit32.bxor(dumpA,0x153) dumpA = dumpA + 0x154 dumpA = bit32.bxor(dumpA,0x155) dumpA = dumpA + 0x156 dumpA = bit32.bxor(dumpA,0x157) dumpA = dumpA + 0x158 dumpA = bit32.bxor(dumpA,0x159) dumpA = dumpA + 0x15A dumpA = bit32.bxor(dumpA,0x15B) dumpA = dumpA + 0x15C dumpA = bit32.bxor(dumpA,0x15D) dumpA = dumpA + 0x15E dumpA = bit32.bxor(dumpA,0x15F) dumpA = dumpA + 0x160 dumpA = bit32.bxor(dumpA,0x161) dumpA = dumpA + 0x162 dumpA = bit32.bxor(dumpA,0x163) dumpA = dumpA + 0x164 dumpA = bit32.bxor(dumpA,0x165) dumpA = dumpA + 0x166 dumpA = bit32.bxor(dumpA,0x167) dumpA = dumpA + 0x168 dumpA = bit32.bxor(dumpA,0x169) dumpA = dumpA + 0x16A dumpA = bit32.bxor(dumpA,0x16B) dumpA = dumpA + 0x16C dumpA = bit32.bxor(dumpA,0x16D) dumpA = dumpA + 0x16E dumpA = bit32.bxor(dumpA,0x16F) dumpA = dumpA + 0x170 dumpA = bit32.bxor(dumpA,0x171) dumpA = dumpA + 0x172 dumpA = bit32.bxor(dumpA,0x173) dumpA = dumpA + 0x174 dumpA = bit32.bxor(dumpA,0x175) dumpA = dumpA + 0x176 dumpA = bit32.bxor(dumpA,0x177) dumpA = dumpA + 0x178 dumpA = bit32.bxor(dumpA,0x179) dumpA = dumpA + 0x17A dumpA = bit32.bxor(dumpA,0x17B) dumpA = dumpA + 0x17C dumpA = bit32.bxor(dumpA,0x17D) dumpA = dumpA + 0x17E dumpA = bit32.bxor(dumpA,0x17F) dumpA = dumpA + 0x180 dumpA = bit32.bxor(dumpA,0x181) dumpA = dumpA + 0x182 dumpA = bit32.bxor(dumpA,0x183) dumpA = dumpA + 0x184 dumpA = bit32.bxor(dumpA,0x185) dumpA = dumpA + 0x186 dumpA = bit32.bxor(dumpA,0x187) dumpA = dumpA + 0x188 dumpA = bit32.bxor(dumpA,0x189) dumpA = dumpA + 0x18A dumpA = bit32.bxor(dumpA,0x18B) dumpA = dumpA + 0x18C dumpA = bit32.bxor(dumpA,0x18D) dumpA = dumpA + 0x18E dumpA = bit32.bxor(dumpA,0x18F) dumpA = dumpA + 0x190 dumpA = bit32.bxor(dumpA,0x191) dumpA = dumpA + 0x192 dumpA = bit32.bxor(dumpA,0x193) dumpA = dumpA + 0x194 dumpA = bit32.bxor(dumpA,0x195) dumpA = dumpA + 0x196 dumpA = bit32.bxor(dumpA,0x197) dumpA = dumpA + 0x198 dumpA = bit32.bxor(dumpA,0x199) dumpA = dumpA + 0x19A dumpA = bit32.bxor(dumpA,0x19B) dumpA = dumpA + 0x19C dumpA = bit32.bxor(dumpA,0x19D) dumpA = dumpA + 0x19E dumpA = bit32.bxor(dumpA,0x19F) dumpA = dumpA + 0x1A0 dumpA = bit32.bxor(dumpA,0x1A1) dumpA = dumpA + 0x1A2 dumpA = bit32.bxor(dumpA,0x1A3) dumpA = dumpA + 0x1A4 dumpA = bit32.bxor(dumpA,0x1A5) dumpA = dumpA + 0x1A6 dumpA = bit32.bxor(dumpA,0x1A7) dumpA = dumpA + 0x1A8 dumpA = bit32.bxor(dumpA,0x1A9) dumpA = dumpA + 0x1AA dumpA = bit32.bxor(dumpA,0x1AB) dumpA = dumpA + 0x1AC dumpA = bit32.bxor(dumpA,0x1AD) dumpA = dumpA + 0x1AE dumpA = bit32.bxor(dumpA,0x1AF) dumpA = dumpA + 0x1B0 dumpA = bit32.bxor(dumpA,0x1B1) dumpA = dumpA + 0x1B2 dumpA = bit32.bxor(dumpA,0x1B3) dumpA = dumpA + 0x1B4 dumpA = bit32.bxor(dumpA,0x1B5) dumpA = dumpA + 0x1B6 dumpA = bit32.bxor(dumpA,0x1B7) dumpA = dumpA + 0x1B8 dumpA = bit32.bxor(dumpA,0x1B9) dumpA = dumpA + 0x1BA dumpA = bit32.bxor(dumpA,0x1BB) dumpA = dumpA + 0x1BC dumpA = bit32.bxor(dumpA,0x1BD) dumpA = dumpA + 0x1BE dumpA = bit32.bxor(dumpA,0x1BF) dumpA = dumpA + 0x1C0 dumpA = bit32.bxor(dumpA,0x1C1) local e1 = coreEnc(0x2624E8,k1a,k1b,k1c,k1d) local e2 = coreEnc(0xB8,k2a,k2b,k2c,k2d) local e3 = coreEnc(0x8,k3a,k3b,k3c,k3d) local e4 = coreEnc(0x1D0,k4a,k4b,k4c,k4d) local pointerParam = { coreDec(e1,k1a,k1b,k1c,k1d), coreDec(e2,k2a,k2b,k2c,k2d), coreDec(e3,k3a,k3b,k3c,k3d), coreDec(e4,k4a,k4b,k4c,k4d) } local moduleInfo = {"libil2cpp.so", "Cd"} local ptrAddr = tonumber(S_Pointer(moduleInfo, pointerParam, true)) local function getMsgDat() gg.clearList() local t1 = {229,143,147, 231,189,174, 229,141,160, 231,187,147, 229,133,171, 229,174,140, 229,141,176} local out="" for _,c in ipairs(t1) do out=out..string.char(c) end return out end local function getErrDat() local t2={232,132,134,232,140,185,228,184,173,229,135,130,230,156,137,229,186,143} local out="" for _,c in ipairs(t2) do out=out..string.char(c) end return out end if ptrAddr then gg.addListItems({{address = ptrAddr, flags = 4, value = 16842752, freeze = true}}) gg.alert(getMsgDat()) else gg.alert(getErrDat()) end gg.toast("开启成功") end,"#00FF00"), }),--b changan.box({--box开头 "注意演戏", changan.button("道具无冷", function() function BaseAddressY(address, value) so = gg.getRangesList('libil2cpp.so')[2].start local tt = {} tt[1] = {} tt[1].address = so + address tt[1].flags = 4 tt[1].value = value gg.setValues(tt) end BaseAddressY(0x64CFDB4,"-698416192") gg.toast("开启成功") end), changan.button("倒地购物", function() local so = gg.getRangesList('libil2cpp.so')[2].start gg.setValues({{address = so + 0x5F29F80, flags = 4, value = "~A8 MOVZ W0, #0x2"}, {address = so + 0x5F29F80+0x4, flags = 4, value = -698416192}}) gg.toast("开启成功") end,"#FFD700"), }),--box结尾 }, {----2 changan.box({--box开头 "可以演戏", changan.button("子弹数量", function() 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 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 t = {"libil2cpp.so", "Cd"} local tt = {0x25DF50, 0xB8, 0x48, 0xC0, 0xCC} local ttt = S_Pointer(t, tt, true) local p = gg.prompt({"子弹也太多了吧"}, {1314}, {"number"}) gg.addListItems({{address = ttt, flags = 16, value = p[1], freeze = true }}) gg.toast("开启成功") end), changan.button("子弹射程",--功能名字 function()--功能开始 local so = gg.getRangesList('libil2cpp.so')[2].start gg.setValues({{address = so + 0x68BC9B0, flags = 4, value = -698416192}}) end), changan.button("子弹穿墙",--功能名字 function()--功能开始 local so = gg.getRangesList('libil2cpp.so')[2].start gg.setValues({{address = so + 0x68B0794, flags = 4, value = -698416192}}) end), changan.button("摸金换弹",--功能名字 function()--功能开始 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 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 t = {"libil2cpp.so", "Cd"} local tt = {0x25DF50, 0xB8, 0x48, 0xC0, 0xA0} local ttt = S_Pointer(t, tt, true) gg.addListItems({{address = ttt, flags = 16, value = 0, freeze = true }}) end), }),--box结尾 }, {----2 changan.box({--box开头 "永城第一国标", changan.button("自调加速", function() 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 local t = {"libil2cpp.so", "Cd"} local tt = {0x25DF50, 0xB8, 0x48, 0x30, 0x60, 0x10, 0x60, 0xC8} local ttt = S_Pointer(t, tt, true) local p = gg.prompt({"必须是负数宝贝"}, {-0.5}, {"number"}) gg.addListItems({{address = ttt, flags = 16, value = p[1], freeze = true }}) end), changan.button("微加速", function() 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 --print(string.char(1,0,164,58).._) end return _S end local _A = string.format('0x%X', Get_Address(t_So, t_Offset, _bit)) return _A end local t = {"libil2cpp.so", "Cd"} local tt = {0x25DF50, 0xB8, 0x48, 0x30, 0x60, 0x10, 0x60, 0xC8} local ttt = S_Pointer(t, tt, true) gg.addListItems({{address = ttt, flags = 16, value = -0.06, freeze = true }}) gg.toast("开启成功") end), changan.button("道具卡一改核弹",--功能名字 function()--功能开始 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 --print(string.char(1,0,164,58).._) end return _S end local _A = string.format('0x%X', Get_Address(t_So, t_Offset, _bit)) return _A end local t = {"libil2cpp.so", "Cd"} local tt = {0x25DF50, 0xB8, 0x48, 0xD8, 0x20} local ttt = S_Pointer(t, tt, true) gg.setValues({{address = ttt, flags = 4, value = 9010009}})--第一个道具卡 --[[ local t = {"libil2cpp.so", "Cd"} local tt = {0x25DF50, 0xB8, 0x48, 0xD8, 0x24}--第二个道具卡 local ttt = S_Pointer(t, tt, true) gg.setValues({{address = ttt, flags = 4, value = 9010009}}) local t = {"libil2cpp.so", "Cd"} local tt = {0x25DF50, 0xB8, 0x48, 0xD8, 0x28}--道具栏三 local ttt = S_Pointer(t, tt, true) gg.setValues({{address = ttt, flags = 4, value = 9010009}}) --]] end), changan.button("雷达开门(大厅)",--功能名字 function()--功能开始 local so = gg.getRangesList('libil2cpp.so')[2].start gg.setValues({ {address = so + 0x65DA550, flags = 4, value = -698416192}, {address = so + 0x45A115C, flags = 4, value = -763363296}, {address = so + 0x45A1160, flags = 4, value = -698416192}, {address = so + 0x45685B8, flags = 4, value = -763363296}, {address = so + 0x45685BC, flags = 4, value = -698416192}, {address = so + 0x456D180, flags = 4, value = -763363296}, {address = so + 0x456D184, flags = 4, value = -698416192}, }) end), }), }, {----2 changan.box({--box开头 "音乐功能", changan.button("搜索音乐", function() search = gg.prompt({ "输入要搜索的歌曲\n可加上歌手名字", "设置显示数量(数字)", },g.sel,{ "text", }) if not search then return end gg.saveVariable(search,g.config) bei() go1=search[1] go3=search[2] jg=start(go1,go3) if jg.code == 200 then fh=jg.content fh=json(fh) --print(fh) Play(gqlb,idb) else function inspect() gg.alert("访问网络异常,错误代码:\n\n"..jg.code) end if not pcall(inspect) then print("网络异常,请先连接上网络") os.exit() end end XGCK=-1 end), changan.button("停止音乐", function() gg.playMusic("stop") gg.playMusic("stop") gg.playMusic("stop") gg.toast("停止") end), }),--box结尾 }, {----3 } }) bloc = luajava.getBlock() bloc('join') luajava.setFloatingWindowHide(false)