-- WIG 网络验证 -- 官方群 61898352 -- 官网 https://www.wigwy.xyz local function kxulM96mTKop4jk() fuhao= '"' local stringsub = string.sub local wytonumber = tonumber local wytostring = tostring local stringbyte = string.byte local mathfloor = math.floor local stringlower = string.lower local mathmodf = math.modf local stringupper = string.upper local stringchar = string.char local wypairs = pairs local stringformat = string.format local stringlen = string.len local wyrequest = gg.makeRequest local function json2true(str,from,to) return true, from+3 end local function json2false(str,from,to) return false, from+4 end local function json2null(str, from, to) return nil, from+3 end local function json2nan(str, from, to) return nul, from+2 end local numberchars = {['-'] = true,['+'] = true,['.'] = true,['0'] = true,['1'] = true,['2'] = true,['3'] = true,['4'] = true,['5'] = true,['6'] = true,['7'] = true,['8'] = true,['9'] = true} local function json2number(str,from,to) local i = from+1 while(i<=to) do local char = stringsub(str, i, i) if not numberchars[char] then break end i = i + 1 end local num = wytonumber(stringsub(str, from, i-1)) if not num then error(_format('json格式错误,不正确的数字, 错误位置:{from}', from)) end return num, i-1 end local function json2string(str,from,to) local ignor = false for i = from+1, to do local char = stringsub(str, i, i) if not ignor then if char == fuhao then return stringsub(str, from+1, i-1), i elseif char == '\\' then ignor = true end else ignor = false end end error(_format('json格式错误,字符串没有找到结尾, 错误位置:{from}', from)) end local function json2array(str,from,to) local result = {} from = from or 1 local pos = from+1 local to = to or stringlen(str) while(pos<=to) do local char = stringsub(str, pos, pos) if char == fuhao then result[#result+1], pos = json2string(str,pos,to) elseif char == '[' then result[#result+1], pos = json2array(str,pos,to) elseif char == '{' then result[#result+1], pos = json2table(str,pos,to) elseif char == ']' then return result, pos elseif (char=='f' or char=='F') then result[#result+1], pos = json2false(str,pos,to) elseif (char=='t' or char=='T') then result[#result+1], pos = json2true(str,pos,to) elseif (char=='n') then result[#result+1], pos = json2null(str,pos,to) elseif (char=='N') then result[#result+1], pos = json2nan(str,pos,to) elseif numberchars[char] then result[#result+1], pos = json2number(str,pos,to) end pos = pos + 1 end error(_format('json格式错误,表没有找到结尾, 错误位置:{from}', from)) end function _G.json2table(str,from,to) local result = {} from = from or 1 local pos = from+1 local to = to or stringlen(str) local key while(pos<=to) do local char = stringsub(str, pos, pos) if char == fuhao then if not key then key, pos = json2string(str,pos,to) else result[key], pos = json2string(str,pos,to) key = nil end elseif char == '[' then if not key then key, pos = json2array(str,pos,to) else result[key], pos = json2array(str,pos,to) key = nil end elseif char == '{' then if not key then key, pos = json2table(str,pos,to) else result[key], pos = json2table(str,pos,to) key = nil end elseif char == '}' then return result, pos elseif (char=='f' or char=='F') then result[key], pos = json2false(str,pos,to) key = nil elseif (char=='t' or char=='T') then result[key], pos = json2true(str,pos,to) key = nil elseif (char=='n') then result[key], pos = json2null(str,pos,to) key = nil elseif (char=='N') then result[key], pos = json2nan(str,pos,to) key = nil elseif numberchars[char] then if not key then key, pos = json2number(str,pos,to) else result[key], pos = json2number(str,pos,to) key = nil end end pos = pos + 1 end error(_format('格式错误,表没有找到结尾, 错误位置:{from}', from)) end local jsonfuncs={[ fuhao ]=json2string,['[']=json2array,['{']=json2table,['f']=json2false,['F']=json2false,['t']=json2true,['T']=json2true} local function fn83UTOyO6Syyok(str) if str==nil then gg.alert('错误json') else local char = stringsub(str, 1, 1) local func=jsonfuncs[char] if func then return func(str, 1, stringlen(str)) end if numberchars[char] then return json2number(str, 1, stringlen(str)) end end end local function md5(code) local code = wytostring(code) local HexTable = {"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"} local A = 0x67452301 local B = 0xefcdab89 local C = 0x98badcfe local D = 0x10325476 local S11 = 7 local S12 = 12 local S13 = 17 local S14 = 22 local S21 = 5 local S22 = 9 local S23 = 14 local S24 = 20 local S31 = 4 local S32 = 11 local S33 = 16 local S34 = 23 local S41 = 6 local S42 = 10 local S43 = 15 local S44 = 21 local function F(x,y,z) return (x & y) | ((~x) & z) end local function G(x,y,z) return (x & z) | (y & (~z)) end local function H(x,y,z) return x ~ y ~ z end local function I(x,y,z) return y ~ (x | (~z)) end local function FF(a,b,c,d,x,s,ac) a = a + F(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function GG(a,b,c,d,x,s,ac) a = a + G(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function HH(a,b,c,d,x,s,ac) a = a + H(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function II(a,b,c,d,x,s,ac) a = a + I(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function MD5StringFill(s) local len = stringlen(s) local mod512 = len * 8 % 512 local fillSize = (448 - mod512) // 8 if mod512 > 448 then fillSize = (960 - mod512) // 8 end local rTab = {} local byteIndex = 1 for i = 1,len do local index = (i - 1) // 4 + 1 rTab[index] = rTab[index] or 0 rTab[index] = rTab[index] | (stringbyte(s,i) << (byteIndex - 1) * 8) byteIndex = byteIndex + 1 if byteIndex == 5 then byteIndex = 1 end end local b0x80 = false local tLen = #rTab if byteIndex ~= 1 then rTab[tLen] = rTab[tLen] | 0x80 << (byteIndex - 1) * 8 b0x80 = true end for i = 1,fillSize // 4 do if not b0x80 and i == 1 then rTab[tLen + i] = 0x80 else rTab[tLen + i] = 0x0 end end local bitLen = mathfloor(len * 8) tLen = #rTab rTab[tLen + 1] = bitLen & 0xffffffff rTab[tLen + 2] = bitLen >> 32 return rTab end function getmd5(s) local fillTab = MD5StringFill(s) local result = {A,B,C,D} for i = 1,#fillTab // 16 do local a = result[1] local b = result[2] local c = result[3] local d = result[4] local offset = (i - 1) * 16 + 1 a = FF(a, b, c, d, fillTab[offset + 0], S11, 0xd76aa478) d = FF(d, a, b, c, fillTab[offset + 1], S12, 0xe8c7b756) c = FF(c, d, a, b, fillTab[offset + 2], S13, 0x242070db) b = FF(b, c, d, a, fillTab[offset + 3], S14, 0xc1bdceee) a = FF(a, b, c, d, fillTab[offset + 4], S11, 0xf57c0faf) d = FF(d, a, b, c, fillTab[offset + 5], S12, 0x4787c62a) c = FF(c, d, a, b, fillTab[offset + 6], S13, 0xa8304613) b = FF(b, c, d, a, fillTab[offset + 7], S14, 0xfd469501) a = FF(a, b, c, d, fillTab[offset + 8], S11, 0x698098d8) d = FF(d, a, b, c, fillTab[offset + 9], S12, 0x8b44f7af) c = FF(c, d, a, b, fillTab[offset + 10], S13, 0xffff5bb1) b = FF(b, c, d, a, fillTab[offset + 11], S14, 0x895cd7be) a = FF(a, b, c, d, fillTab[offset + 12], S11, 0x6b901122) d = FF(d, a, b, c, fillTab[offset + 13], S12, 0xfd987193) c = FF(c, d, a, b, fillTab[offset + 14], S13, 0xa679438e) b = FF(b, c, d, a, fillTab[offset + 15], S14, 0x49b40821) a = GG(a, b, c, d, fillTab[offset + 1], S21, 0xf61e2562) d = GG(d, a, b, c, fillTab[offset + 6], S22, 0xc040b340) c = GG(c, d, a, b, fillTab[offset + 11], S23, 0x265e5a51) b = GG(b, c, d, a, fillTab[offset + 0], S24, 0xe9b6c7aa) a = GG(a, b, c, d, fillTab[offset + 5], S21, 0xd62f105d) d = GG(d, a, b, c, fillTab[offset + 10], S22, 0x2441453) c = GG(c, d, a, b, fillTab[offset + 15], S23, 0xd8a1e681) b = GG(b, c, d, a, fillTab[offset + 4], S24, 0xe7d3fbc8) a = GG(a, b, c, d, fillTab[offset + 9], S21, 0x21e1cde6) d = GG(d, a, b, c, fillTab[offset + 14], S22, 0xc33707d6) c = GG(c, d, a, b, fillTab[offset + 3], S23, 0xf4d50d87) b = GG(b, c, d, a, fillTab[offset + 8], S24, 0x455a14ed) a = GG(a, b, c, d, fillTab[offset + 13], S21, 0xa9e3e905) d = GG(d, a, b, c, fillTab[offset + 2], S22, 0xfcefa3f8) c = GG(c, d, a, b, fillTab[offset + 7], S23, 0x676f02d9) b = GG(b, c, d, a, fillTab[offset + 12], S24, 0x8d2a4c8a) a = HH(a, b, c, d, fillTab[offset + 5], S31, 0xfffa3942) d = HH(d, a, b, c, fillTab[offset + 8], S32, 0x8771f681) c = HH(c, d, a, b, fillTab[offset + 11], S33, 0x6d9d6122) b = HH(b, c, d, a, fillTab[offset + 14], S34, 0xfde5380c) a = HH(a, b, c, d, fillTab[offset + 1], S31, 0xa4beea44) d = HH(d, a, b, c, fillTab[offset + 4], S32, 0x4bdecfa9) c = HH(c, d, a, b, fillTab[offset + 7], S33, 0xf6bb4b60) b = HH(b, c, d, a, fillTab[offset + 10], S34, 0xbebfbc70) a = HH(a, b, c, d, fillTab[offset + 13], S31, 0x289b7ec6) d = HH(d, a, b, c, fillTab[offset + 0], S32, 0xeaa127fa) c = HH(c, d, a, b, fillTab[offset + 3], S33, 0xd4ef3085) b = HH(b, c, d, a, fillTab[offset + 6], S34, 0x4881d05) a = HH(a, b, c, d, fillTab[offset + 9], S31, 0xd9d4d039) d = HH(d, a, b, c, fillTab[offset + 12], S32, 0xe6db99e5) c = HH(c, d, a, b, fillTab[offset + 15], S33, 0x1fa27cf8) b = HH(b, c, d, a, fillTab[offset + 2], S34, 0xc4ac5665) a = II(a, b, c, d, fillTab[offset + 0], S41, 0xf4292244) d = II(d, a, b, c, fillTab[offset + 7], S42, 0x432aff97) c = II(c, d, a, b, fillTab[offset + 14], S43, 0xab9423a7) b = II(b, c, d, a, fillTab[offset + 5], S44, 0xfc93a039) a = II(a, b, c, d, fillTab[offset + 12], S41, 0x655b59c3) d = II(d, a, b, c, fillTab[offset + 3], S42, 0x8f0ccc92) c = II(c, d, a, b, fillTab[offset + 10], S43, 0xffeff47d) b = II(b, c, d, a, fillTab[offset + 1], S44, 0x85845dd1) a = II(a, b, c, d, fillTab[offset + 8], S41, 0x6fa87e4f) d = II(d, a, b, c, fillTab[offset + 15], S42, 0xfe2ce6e0) c = II(c, d, a, b, fillTab[offset + 6], S43, 0xa3014314) b = II(b, c, d, a, fillTab[offset + 13], S44, 0x4e0811a1) a = II(a, b, c, d, fillTab[offset + 4], S41, 0xf7537e82) d = II(d, a, b, c, fillTab[offset + 11], S42, 0xbd3af235) c = II(c, d, a, b, fillTab[offset + 2], S43, 0x2ad7d2bb) b = II(b, c, d, a, fillTab[offset + 9], S44, 0xeb86d391) result[1] = result[1] + a result[2] = result[2] + b result[3] = result[3] + c result[4] = result[4] + d result[1] = result[1] & 0xffffffff result[2] = result[2] & 0xffffffff result[3] = result[3] & 0xffffffff result[4] = result[4] & 0xffffffff end local retStr = '' for i = 1,4 do for _ = 1,4 do local temp = result[i] & 0x0F local str = HexTable[temp + 1] result[i] = result[i] >> 4 temp = result[i] & 0x0F retStr = retStr .. HexTable[temp + 1] .. str result[i] = result[i] >> 4 end end return stringlower(retStr) end return getmd5(code) end local ZZRc4 = {} local ZZMathBit = {} function ZZMathBit.__xorBit(left, right) return (left + right) == 1 and 1 or 0 end function ZZMathBit.__base(left, right, op) if left < right then left, right = right, left end local res = 0 local shift = 1 while left ~= 0 do local ra = left % 2 local rb = right % 2 res = shift * op(ra,rb) + res shift = shift * 2 left = mathmodf( left / 2) right = mathmodf( right / 2) end return res end function ZZMathBit.xorOp(left, right) return ZZMathBit.__base(left, right, ZZMathBit.__xorBit) end local function rnrgyspZCTzZ9Tt(text,key,kasi) if kasi==false then str = text str=stringupper(str:gsub("[%s%p]","")) local index=1 local ret="" for index=1,stringlen(str),2 do ret=ret..stringchar(wytonumber(stringsub(str,index,index+1),16)) end text=ret end local function KSA(key) local keyLen = stringlen(key) local schedule = {} local keyByte = {} for i = 0, 255 do schedule[i] = i end for i = 1, keyLen do keyByte[i - 1] = stringbyte(key, i, i) end local j = 0 for i = 0, 255 do j = (j + schedule[i] + keyByte[ i % keyLen]) % 256 schedule[i], schedule[j] = schedule[j], schedule[i] end return schedule end local function PRGA(schedule, textLen) local i = 0 local j = 0 local k = {} for n = 1, textLen do i = (i + 1) % 256 j = (j + schedule[i]) % 256 schedule[i], schedule[j] = schedule[j], schedule[i] k[n] = schedule[(schedule[i] + schedule[j]) % 256] end return k end local function output(schedule, text) local len = stringlen(text) local c = nil local res = {} for i = 1, len do c = stringbyte(text, i,i) res[i] = stringchar(ZZMathBit.xorOp(schedule[i], c)) end j = "" for i,v in wypairs(res) do j = j..v end return j end local textLen = stringlen(text) local schedule = KSA(key) local k = PRGA(schedule, textLen) str=output(k, text) if kasi==true then str = wytostring(str) local index=1 local ret="" for index=1,stringlen(str) do ret=ret..stringformat("%02X",stringbyte(stringsub(str,index))) end return stringlower(ret) else return str end end local function initGG() if getrlyunyz then local URL = luajava.bindClass("java.net.URL") local HttpURLConnection = luajava.bindClass("java.net.HttpURLConnection") local OutputStream = luajava.bindClass("java.io.OutputStream") local InputStreamReader = luajava.bindClass("java.io.InputStreamReader") local BufferedReader = luajava.bindClass("java.io.BufferedReader") local StringBuilder = luajava.bindClass("java.lang.StringBuilder") function performHttpPost(url, postData) local result = "" local connection = nil local success, e = pcall(function() local urlObject = URL(url) connection = urlObject:openConnection() connection:setRequestMethod("POST") connection:setDoOutput(true) local outputStream = connection:getOutputStream() local data = postData:getBytes() outputStream:write(data) outputStream:close() local inputStream = connection:getInputStream() local reader = BufferedReader(InputStreamReader(inputStream)) local line = nil local response = StringBuilder() while (true) do line = reader:readLine() if line == nil then break end response:append(line) end reader:close() connection:disconnect() result = response:toString() end) if not success then return e:toString() end return result end function performHttpGet(url) local result = "" local connection = nil local success, e = pcall(function() local urlObject = URL(url) connection = urlObject:openConnection() connection:setRequestMethod("GET") local responseCode = connection:getResponseCode() if responseCode == 200 then local inputStream = connection:getInputStream() local reader = BufferedReader(InputStreamReader(inputStream)) local line = nil local response = StringBuilder() while (true) do line = reader:readLine() if line == nil then break end response:append(line) end reader:close() inputStream:close() result = response:toString() else result = "HTTP Response Code: " .. responseCode end connection:disconnect() end) if not success then return e:toString() end return result end end end initGG() local function ultra(get,post) if not getrlyunyz then local c=wyrequest(get,nil,post) local d = c.content local f = get.."\n网络异常" if d ~= nil then f=c.code end if d == nil or tonumber(c.code) ~= 200 then gg.alert("请求链接:"..get.."\n网络错误了,请检查你的网络:"..f) os.exit() end return d else if post then return performHttpPost(get,post) else return performHttpGet(get) end end end local domains = { "www.wigwy.xyz", "wig.wigwy.xyz", "wig.xiaoman.top", "wig.luatool.cn", "wig.ggpro.cn", -- "www.wigyyds.com", -- "wigyyds.com" } -- 测试路径 local test_path = "/api/ok" -- 函数:检查域名是否可用 local function is_domain_available(domain) local url = "http://" .. domain .. test_path local response = ultra(url) if response == "Ping" then return true else return false end end -- 遍历域名寻找可用的 local function find_available_domain() for _, domain in ipairs(domains) do if is_domain_available(domain) then return domain end end return nil end -- 主函数 local available_domain = find_available_domain() if not available_domain then gg.alert("未找到可用的域名,请检查网络连接") print("未找到可用的域名,请检查网络连接") os.exit() end local xxxxxxx = "http://"..available_domain.."/api" local xxxxxxx_34649 = '34649' function xxxxxxx_Kami(km) local time = os.time() return xxxxxxx .. "/login/" .. time .. "/" .. xxxxxxx_34649 .. "/" .. km end function xxxxxxx_Notice() return ultra(xxxxxxx .. "/announcement/" .. os.time() .. "/" .. xxxxxxx_34649) end function xxxxxxx_Number_Of() return ultra(xxxxxxx .. "/numberOf/" .. os.time() .. "/" .. xxxxxxx_34649) end local notice = xxxxxxx_Notice() local number_of = xxxxxxx_Number_Of() local xxxxxxx_jieba = xxxxxxx .. "/unbundling/" .. xxxxxxx_34649 .. "/" local xxxbanb = '1.0' AMI_YDO = "/sdcard/Android/" xxxxxxxx = 999 local function vxPu66RVv3gX5Dy() local imei if device and device.getimei then if type(device.getimei) == "function" then imei = device.getimei() else imei = device.getimei end end if not imei then imei_path = AMI_YDO .. '/wig' .. xxxxxxx_34649 .. '.imei' imei = io.open(imei_path, 'r') if not imei or imei:read("*a") == "" then imei = md5((os.time() * 1000 + 611 - 99999)..math.random("1","999999999"))..os.time() io.open(imei_path, 'w+'):write(imei) else imei = io.open(imei_path, 'r'):read("*a") end imei = imei end km_key = io.open(AMI_YDO .. '/km' .. xxxxxxx_34649, 'r') if km_key == nil then else km_key = io.open(AMI_YDO .. '/km' .. xxxxxxx_34649, 'r'):read("*a") end e = io.open(AMI_YDO .. '/e'.. xxxxxxx_34649 ..'.log', 'r') if e == nil or e:read("*a") == "" then e = "1" io.open(AMI_YDO .. '/e'.. xxxxxxx_34649 ..'.log', 'w+'):write(e) else e = io.open(AMI_YDO .. '/e'.. xxxxxxx_34649 ..'.log', 'r'):read("*a") end if e == "1" then e = false else e = true end if km_key and stringlen(km_key) == 0 then e = false end function KM_G(km,imei) HUT = ultra(xxxxxxx_jieba .. km, "imei="..imei) return HUT end local function IPQlKtqKpFKFHSc(km,bool) content = ultra(xxxxxxx_Kami(km,bool), "imei=" .. imei) content = rnrgyspZCTzZ9Tt(content, "wjkPnc3ejeiQ0nU", false) while string.find(content,"code") == nil do gg.alert("脚本已更新!","") os.exit() end uGuv75lA2pv8TEK = fn83UTOyO6Syyok(content) a2Gnnc0XcDxjBqr = uGuv75lA2pv8TEK.code msg = uGuv75lA2pv8TEK.msg check = uGuv75lA2pv8TEK.check api_time = uGuv75lA2pv8TEK.api_time C2o6nrj30vWtpg0 = uGuv75lA2pv8TEK.vip Q4y1dcCfKeQjlHD = uGuv75lA2pv8TEK.new_code2 user_vip = uGuv75lA2pv8TEK.user_vip -- 永久卡 | 年卡 | 季卡 | 月卡 | 周卡 | 天卡 | 小时卡 | 分钟卡 card_type = uGuv75lA2pv8TEK.card_type -- 假如你想限制卡密类型来使用卡密可以这样使用 --[[ -- 使用例子 仅供参考 if card_type == "永久卡" then -- 代码 else gg.alert("你没有权限使用该功能") end --------------------- if card_type == "永久卡" or card_type == "年卡" then -- 代码 else gg.alert("你没有权限使用该功能") end ]] if check == nil then gg.alert(msg) vxPu66RVv3gX5Dy() end local time = os.time() while uGuv75lA2pv8TEK.imei ~= imei do print("机械码不匹配") os.exit() end while wytonumber(time) < wytonumber(api_time) or ((wytonumber(os.time()) - wytonumber(api_time)) > 30) or ((wytonumber(os.time()) - wytonumber(api_time)) < -30) do print("脚本:数据过期(4.0)\n解决方法:调整手机时间为自动\n北京时间24小时制"..wytonumber(os.time()) - wytonumber(api_time)) os.exit() end if a2Gnnc0XcDxjBqr ~= "20000" then gg.alert(msg) if a2Gnnc0XcDxjBqr ~= "20000" then os.remove(AMI_YDO .. '/km' .. xxxxxxx_34649) io.open(AMI_YDO .. '/e'.. xxxxxxx_34649 ..'.log', 'w+'):write("1") end gg.sleep(1000) while time == os.time() do print("违规操作(Time)") os.exit() end vxPu66RVv3gX5Dy() else checktrue = rnrgyspZCTzZ9Tt(uGuv75lA2pv8TEK.checktrue, "wjkPnc3ejeiQ0nU", false) while checktrue ~= (imei .. uGuv75lA2pv8TEK.user_time .. api_time..xxxxxxx_34649..a2Gnnc0XcDxjBqr) do print("脚本:检测到你有非法操作") os.exit() end if card_type == "次数卡" then vip_text = uGuv75lA2pv8TEK.msg else vip_text = os.date( "%Y" .. "年" .. "%m" .. "月" .. "%d" .. "日 %H" .. "时" .. "%M" .. "分" .. "%S" .. "秒", C2o6nrj30vWtpg0) if os.date("%Y", C2o6nrj30vWtpg0) == "9999" then vip_text = "永久卡" end end if wytostring(Q4y1dcCfKeQjlHD) ~= "2c9aab0170aea07cba77efb82241d747" then gg.alert("检测到您有非法操作2") vxPu66RVv3gX5Dy() end local Mu_wig = gg.alert([[ 到期时间: ]] .. vip_text .. [[ 使用卡密: ]] .. uGuv75lA2pv8TEK.key, "确定","取消自动登录") if Mu_wig==2 then io.open(AMI_YDO .. '/e'.. xxxxxxx_34649 ..'.log', 'w+'):write("1") gg.setVisible(true) else io.open(AMI_YDO .. '/km' .. xxxxxxx_34649, 'w+'):write(uGuv75lA2pv8TEK.key) gg.setVisible(true) -- ========================================== -- GameGuardian Lua 脚本模板 - 50功能集成版 -- 作者: 九黎 -- 日期: 2026-08-05 -- ========================================== -- 全局变量初始化 local run = true local menuTitle = "欢迎使用全新九黎脚本2.0,祝您愉快。♦野外冲击战九黎脚本2.0♦,QQ交流群:444275657" -- ========================================== -- 核心功能函数区域 -- options local scriptName = [=====[正在加载]=====] local scriptVersion = '1.0.0' local scriptAuthor = '欢迎始用,功能正在加载' local startToast = '' -- 0 - no check; 1 - check package only, 2 - check package and build local checkTarget = 0 local targetName = [=====[野外冲击战]=====] local targetPkg = 'com.ywcjz.net.meta' -- 这里保留 1.10.7 版本信息,若需适配 1.11.3 可调整 local targetVersion = [=====[1.10.7]=====] local targetBuild = 1107 -- functions -- init gg.require('101.1', 16142) if startToast ~= '' then startToast = '\n'..startToast end gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor..startToast) if checkTarget ~= 0 then local info = gg.getTargetInfo() local check = false local current = false if checkTarget >= 1 then check = targetPkg current = info.packageName end if checkTarget >= 2 then check = check..' '..targetVersion..' ('..targetBuild..')' current = current..' '..info.versionName..' ('..info.versionCode..')' end if check ~= current then gg.alert('This script for "'..targetName..'" ['..check..'].\nYou select "'..info.label..'" ['..current..'].\nNow script exit.') os.exit() end end -- ========================================== -- 示例:功能1 - 无限金币 function func_1() local revert = nil -- main code gg.processResume() gg.processResume() gg.processResume() gg.searchNumber("60;20;80;300;2", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("80", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("88888888", gg.TYPE_DWORD) gg.processResume() gg.toast("操作完成") end -- 示例:功能2 - 人物加速 function func_2() local revert = nil -- main code gg.processResume() gg.clearResults() gg.searchNumber("14016;40;400;300;300", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("40;400;300;300", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.processResume() gg.toast("操作完成") end -- 批量生成剩余的功能函数占位符 (3-50) -- 在实际使用中,请将下面的 empty function 替换为真实的逻辑 function func_3() local revert = nil -- main code gg.processResume() gg.processResume() gg.searchNumber("24002;1000;700;4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("1000;700;4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("1000;700;4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("6", gg.TYPE_DWORD) gg.clearResults() gg.searchNumber("24002;1000;700", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("1000;700", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.clearResults() gg.searchNumber("24006;36000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("36000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("0", gg.TYPE_DWORD) gg.toast("功能 3 已执行") end function func_4() local revert = nil -- main code gg.refineNumber("160;220;24002;24004;24006", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.searchNumber("160;220;24002;24004;24006", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("160;220", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.toast("功能 4 已执行") end function func_5() local revert = nil -- main code gg.clearResults() gg.searchNumber("40092;4400;0;20;3600;0;400;0::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("0;20;3600;0;400;0::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.processResume() gg.clearResults() gg.searchNumber("40092;4400;888888", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("4400", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("2", gg.TYPE_DWORD) gg.clearResults() gg.toast("功能 5 已执行") end function func_6() local revert = nil -- main code gg.clearResults() gg.searchNumber("4030;0;300;4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("300;4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("300", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.clearResults() gg.searchNumber("4030;888888;4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("4", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("88888", gg.TYPE_DWORD) gg.processResume() gg.toast("功能 6 已执行") end function func_7() local revert = nil -- main code gg.processResume() gg.searchNumber("1000;400;16;120", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("120", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.toast("功能 7 已执行") end function func_8() local revert = nil -- main code gg.searchNumber("400;16;260", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("260", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.clearResults() gg.searchNumber("260;1000;400;16", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("260", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("88888", gg.TYPE_DWORD) gg.clearResults() gg.searchNumber("400;16;1000;300", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("300", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("88888", gg.TYPE_DWORD) gg.clearResults() gg.searchNumber("400;1000;16;340", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("340", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("88888", gg.TYPE_DWORD) gg.clearResults() gg.searchNumber("400;1000;16;380", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("380", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("88888", gg.TYPE_DWORD) gg.toast("功能 8 已执行") end function func_9() local revert = nil -- main code gg.searchNumber("40032;6000;500", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("6000;500", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("2;888888;88888", gg.TYPE_DWORD) gg.processResume() gg.toast("功能 9 已执行") end function func_10() local revert = nil -- main code gg.searchNumber("12012;100;400", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("100;400", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.processResume() gg.toast("功能 10 已执行") end function func_11() local revert = nil -- main code gg.searchNumber("2008;500;400", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("500;400", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("888888", gg.TYPE_DWORD) gg.processResume() gg.clearResults() gg.searchNumber("120;120;16", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.processResume() gg.clearResults() gg.searchNumber("2008;120", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.processResume() gg.refineNumber("120", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("0", gg.TYPE_DWORD) gg.clearResults() gg.searchNumber("8;16;24;28;32::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.clearResults() gg.searchNumber("8;16;24;28;32;0", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.toast("功能 11 已执行") end function func_12() local revert = nil -- main code gg.processResume() gg.processResume() gg.clearResults() gg.searchNumber("460;180;180", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.processResume() gg.clearResults() gg.searchNumber("2016;180;230", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("180;230", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.processResume() revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("0;1500", gg.TYPE_DWORD) gg.toast("功能 12 已执行") end function func_13() local revert = nil gg.require('101.1', 16142) gg.refineNumber("4200;400", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.searchNumber("4200;400", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("2;8888888", gg.TYPE_DWORD) gg.processResume() gg.toast("功能 13 已执行") end function func_14() local revert = nil -- main code gg.processResume() gg.clearResults() gg.searchNumber("20006;800::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("20006", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("20058", gg.TYPE_DWORD) gg.processResume() gg.toast("功能 14 已执行") end function func_15() local revert = nil -- main code gg.clearResults() gg.searchNumber("20002;1100::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("20002", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("20078", gg.TYPE_DWORD) gg.toast("功能 15 已执行") end function func_16() local revert = nil -- main code gg.refineNumber("20004;18050::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.searchNumber("20004;18050::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("20004", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("20066", gg.TYPE_DWORD)gg.toast("功能 16 已执行") end function func_17() local revert = nil -- main code gg.clearResults() gg.searchNumber("20012;300::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("20012", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.processResume() revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("20076", gg.TYPE_DWORD) gg.processResume() gg.toast("功能 17 已执行") end function func_18() local revert = nil -- main code gg.processResume() gg.clearResults() gg.searchNumber("20016;6900::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("20016", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.processResume() revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("20070", gg.TYPE_DWORD) gg.processResume() gg.toast("功能 18 已执行") end function func_19() local revert = nil -- main code gg.clearResults() gg.searchNumber("20028;300::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("20028", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.processResume() revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("20046", gg.TYPE_DWORD) gg.toast("功能 19 已执行") end function func_20() local revert = nil -- main code gg.clearResults() gg.searchNumber("200262;200162;200042;200122::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("200262", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("200662", gg.TYPE_DWORD) gg.toast("功能 20 已执行") end function func_21() local revert = nil -- main code gg.searchNumber("200662;200162;200042;200122::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("200162", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("200604", gg.TYPE_DWORD) gg.toast("功能 21 已执行") end function func_22() local revert = nil -- main code gg.clearResults() gg.searchNumber(";200662;200604;200042;200122::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("200042", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("200462", gg.TYPE_DWORD) gg.toast("功能 22 已执行") end function func_23() local revert = nil -- main code gg.clearResults() gg.searchNumber("200662;200604;200462;200122::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("200122", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("200582", gg.TYPE_DWORD) gg.toast("功能 23 已执行") end function func_24() gg.toast("功能 24 已执行") end function func_25() gg.toast("功能 25 已执行") end function func_26() gg.toast("功能 26 已执行") end function func_27() gg.toast("功能 27 已执行") end function func_28() gg.toast("功能 28 已执行") end function func_29() gg.toast("功能 29 已执行") end function func_30() gg.toast("功能 30 已执行") end function func_31() gg.toast("功能 31 已执行") end function func_32() gg.toast("功能 32 已执行") end function func_33() gg.toast("功能 33 已执行") end function func_34() gg.toast("功能 34 已执行") end function func_35() gg.toast("功能 35 已执行") end function func_36() gg.toast("功能 36 已执行") end function func_37() gg.toast("功能 37 已执行") end function func_38() gg.toast("功能 38 已执行") end function func_39() gg.toast("功能 39 已执行") end function func_40() gg.toast("功能 40 已执行") end function func_41() gg.toast("功能 41 已执行") end function func_42() gg.toast("功能 42 已执行") end function func_43() gg.toast("功能 43 已执行") end function func_44() gg.toast("功能 44 已执行") end function func_45() gg.toast("功能 45 已执行") end function func_46() gg.toast("功能 46 已执行") end function func_47() gg.toast("功能 47 已执行") end function func_48() gg.toast("功能 48 已执行") end function func_49() gg.toast("功能 49 已执行") end function func_50() gg.toast("功能 50 已执行") end -- ========================================== -- 菜单配置区域 -- 在这里自定义每个菜单按钮显示的文字 -- ========================================== local menuItems = { "♦神纹伤害♦", "♦星辰碎片修改♦", "♦直接胜利♦", "♦攻击所有防御塔♦", "♦熔岩铠甲修改♦", "♦熔岩铠甲被动范围+秒杀♦", "♦攻击所有英雄单位♦", "♦近战范围(部分英雄无效)♦", "♦圣剑伤害♦", "♦射手神纹闪电箭秒杀♦", "♦死神镰刀无CD+全图范围♦", "♦闪现无CD+范围♦", "♦破魔短杖伤害♦", "♦吉娜美化玄装♦", "♦希琳美化吕布♦", "♦凯多美化诸葛亮♦", "♦西里美化卡普♦", "♦炎美化貂蝉♦", "♦厄里斯美化索尔♦", "♦贝吉-特战队员美化吕布-电玩高手♦", "♦炎-秘书师美化熬烈-灰烬之炎♦", "♦希琳-JK学姐美化索尔-雷震九霄♦", "♦西里-雷神号美化玄奘-金龙献瑞♦", "♦功能暂未上线呢!♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦功能暂未上线♦", "♦ 退出脚本 ♦" } -- ========================================== -- 主循环逻辑 -- ========================================== function main() while run do -- 显示菜单 local choice = gg.choice(menuItems, nil, menuTitle) -- 处理用户选择 if choice == nil then -- 用户点击了取消/返回 gg.toast(" 用户取消操作") elseif choice == 51 then -- 用户选择了最后一项:退出 gg.toast("脚本已退出啦,欢迎下次光临❤") run = false else -- 动态调用对应的函数 -- 例如:选择第1项,调用 func_1() local funcName = "func_" .. choice local func = _G[funcName] if func then -- 使用 pcall 防止某个功能报错导致整个脚本崩溃 local status, err = pcall(func) if not status then gg.alert(" 功能执行出错:\n" .. tostring(err)) end else gg.toast("该功能未上线呢,上线后再试吧❤") end end end gg.setVisible(false) end -- 启动脚本 main() end end end if km_key == nil then else if km_key ~= "" then if e == true then IPQlKtqKpFKFHSc(km_key) end end end hak = gg.prompt({"输入卡密\n购买卡密Q郡444275657" .. "\n公告:" .. notice .. "\n脚本启动次数:" .. number_of, "是否自动登入","退出登录"}, {km_key, e,false}, {'text', 'checkbox',"checkbox"}) if hak == nil then elseif hak[3] == true then while (true) do os.exit(print("您取消了输入卡密")) end elseif hak[2] == true then io.open(AMI_YDO .. '/e'.. xxxxxxx_34649 ..'.log', 'w+'):write("2") elseif hak[2] == false then io.open(AMI_YDO .. '/e'.. xxxxxxx_34649 ..'.log', 'w+'):write("1") end if hak == nil then gg.setVisible(false) xxxxxxxx = nil elseif hak[1] == "1" then G_B = gg.prompt({"输入要解绑的卡密"}, {}, {"text"}) if G_B[1] == "" then gg.alert("空,请填写卡密") else KM_G = fn83UTOyO6Syyok(KM_G(G_B[1],imei)) gg.alert(KM_G.msg) end elseif hak[1] == "" then gg.alert("空,请填写卡密") else IPQlKtqKpFKFHSc(hak[1]) end end vxPu66RVv3gX5Dy() end while (true) do if gg.isVisible(true) then gg.setVisible(false) kxulM96mTKop4jk() else if xxxxxxxx == 999 then gg.setVisible(true) else end end end