ab97aa6654d76064b21888a12b96af9e9d=function (vip)
---[=[脚本可以复制到下面]=]-------------------------------------------------------------------------------------------------------------------




local CSMS,CSMD,CSMX=function(C,S,M)gg.clearResults()gg.setRanges(C[1])gg.searchNumber(C[3],C[2],false,gg.SIGN_EQUAL,C[4],C[5],C[6])local SL=gg.getResultCount()local SS=gg.getResults(SL)gg.clearResults()local DZ={}if(SL>0)then for V,W in ipairs(SS)do W.ZJ=true end for K=1,#S do local Y={}local Z=S[K][3]for V,W in ipairs(SS)do Y[#Y+1]={}Y[#Y].address=W.address+S[K][1]*4 Y[#Y].flags=S[K][2]end local Y=gg.getValues(Y)for V,W in ipairs(Y)do if (W.value~=Z)then SS[V].ZJ=false end end end for V,W in ipairs(SS)do if(W.ZJ)then DZ[#DZ+1]=W.address end end end return DZ end,function(C,S,M)local D={}for V,W in ipairs(S)do D[V]={}D[V].address=C+W[1]*4 D[V].flags=W[2]end local D,Q=gg.getValues(D),{}for V,W in ipairs(D)do Q[V]=W.value end return Q end,function(C,S,M)if type(C)~=[[table]]then gg.toast("格式错误")else if #C==0 then if M~=nil then gg.toast(M.."开启失败")end else local X,D={},{}for V,W in ipairs(C)do for v,w in ipairs(S)do local T={}T.address=W+w[1]*4 T.flags=w[2]T.value=w[3]if w[4]==true then T.freeze=w[4]D[#D+1]=T else X[#X+1]=T end end end gg.setValues(X)gg.addListItems(D)if M~=nil then gg.toast(M.."开启成功")end end end end
local function DXWJ(l,m,n)
if m==1 then
local c=io.open(l,'r')
if c==nil then
return c
else
local c=io.open(l,'r')
g=c:read('*a')
c:close()
end
return g
elseif m==2 then
local file=io.open(l,'w')
file:write(n)
file:close()
end
end

function JSJL(X,Q)
return math.sqrt(math.pow(Q[1]-X[1],2)+math.pow(Q[3]-X[3],2))
end

function wxgn1()
local NCZ={}
for V,W in ipairs(gg.getRangesList())do
if W.state=="Ca"then
NCZ[#NCZ+1]=W["end"]
end
end

FFNC="0x"..string.format([[%#x]],NCZ[#NCZ/2])

ZZB=CSMS({4,4,1035174360,0,FFNC},{{1,4,1056964608},{7,4,1069547520},{39,4,1092616192},{40,4,1063675494},{47,4,1060320051},{48,4,1053609164},{-84,4,1056964608},{-85,4,1035174360},{-86,4,1059360187},{-90,4,1060439283},})
if #ZZB>0 then 
gg.toast("初始化1成功")
else
gg.toast("初始化1失败")
end

CZS=CSMS({4,4,1134034944,0,FFNC},{{1,4,1065353216},{-1,4,1140457472},{-2,4,1121714176},})
if #CZS>0 then 
gg.toast("初始化2成功")
else
gg.toast("初始化2失败")
end

end
      function wxgn181()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("134,658", gg.TYPE_DWORD)
      gg.refineNumber("134,658", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("131,586", gg.TYPE_DWORD)
      gg.refineNumber("131,586", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("131,842", gg.TYPE_DWORD)
      gg.refineNumber("131,842", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("132,098", gg.TYPE_DWORD)
      gg.refineNumber("132,098", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("70,658", gg.TYPE_DWORD)
      gg.refineNumber("70,658", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("133,378", gg.TYPE_DWORD)
      gg.refineNumber("133,378", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("134,914", gg.TYPE_DWORD)
      gg.refineNumber("134,914", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.clearResults()
      gg.setRanges(gg.REGION_C_ALLOC)
      gg.setVisible(false)
      gg.searchNumber("133,634", gg.TYPE_DWORD)
      gg.refineNumber("133,634", gg.TYPE_DWORD)
      gg.getResults(50000)
      gg.setVisible(false)
      gg.editAll("0", gg.TYPE_DWORD)
      gg.setVisible(false)
      gg.clearResults()
      gg.toast("ID:界面防封\n"..string.format("耗时: %.2f", os.clock() ))
      end

function wxgn2()
ocal sjk={
{"❃❃❃❃矿场❃❃❃❃",101},
{"✪       血蛋       ✪",4749},
{"✪      铜箱子     ✪",42},
{"✪      银箱子     ✪",43},
{"✪      金箱子     ✪",44},
{"✪       铁矿       ✪",1201,1221,1231},
{"✪       铜矿       ✪",1202,1222,1232},
{"✪       银矿       ✪",1203,1223,1233},
{"✪       仓石       ✪",1211},
{"✪       冰晶       ✪",3013},
{"✪       熔岩       ✪",3005},
{"✪       瑶石       ✪",1212},
{"✪       玄石       ✪",1213},
{"✪       胭玉       ✪",1214},
{"✪       璇玉       ✪",1215},
{"✪       灵芝       ✪",1308},
{"✪       荒石       ✪",3142},
{"✪       冰块       ✪",1453},
{"✪       瑾瑜玉    ✪",1216},
{"✪     荒野水晶   ✪",3085},
{"✪     凛冰化石   ✪",5552},
{"✪     炽焰化石   ✪",3767,40103,3772},
{"✪     太空星石   ✪",2301,2302,2303,2304},
{"✪     荒野化石   ✪",3623,3649,3619,3743,3664,3634,3651,3605},
{"✪       水晶        ✪",3051,3052,3053,3054,3055,3056,3057,3058,3059,3060},
{"✪      碧水珠      ✪",3081,3082,3083,3084,3085,3086,3087,3088,3089,3090},
{"✪        海葵       ✪",4140,4143,4141,4131},
{"✪        珊瑚       ✪",4053,4006,4008,4052,4054,4055,4056,4057,4001,4002,4003,4004,4007},
{"✪      湾角藻      ✪",4200},
{"❃❃❃✿花儿✿❃❃❃",101},
{"✪       彼岸花     ✪",2201},
{"✪       蘑菇        ✪",4658,3773,5701,4307},
{"✪     如意金箍    ✪",2202},
{"✪       丹顶红     ✪",2203},
{"✪      朝阳花      ✪",2204},
{"✪       芙蓉        ✪",2205},
{"❃❃❃❃草药❃❃❃❃",101},
{"✪       苹果        ✪",1341,1342,1343,1344,1345,1346,1347,1348,1349,1350},
{"✪       辣椒        ✪",1461,1462,1463,1464,1465,1466,1467,1468,1469,1470},
{"✪       意以        ✪",1471,1472,1473,1474,1475,1476,1477,1478,1479,1480},
{"✪       山蒜        ✪",1491,1492,1493,1494,1495,1496,1497,1498,1499,1450},
{"✪       幽兰        ✪",1301},
{"✪       莽草        ✪",1302},
{"✪       龙骨        ✪",1303},
{"✪       枇华        ✪",1306},
{"✪       嘉荣        ✪",1304},
{"✪        屎          ✪",40103},
{"❃❃❃❃树木❃❃❃❃",101},
{"✪       棕树        ✪",800,801,802},
{"✪       古椰        ✪",810,811,812},
{"✪       铁树        ✪",820,821,822},
{"✪       诸树        ✪",830,831,832},
{"✪      长叶树      ✪",840,841,842},
{"✪       松树        ✪",870,871,872},
{"✪      黄棘树      ✪",1021},
{"✪      红韶树      ✪",1344},
{"✪       扭树        ✪",931,1082},
{"✪       杨树        ✪",961,962,963,964,965,966,967,968,969,970},
{"✪      樱花树      ✪",1051},
{"✪       椫树        ✪",890.891},
{"✪       栯木        ✪",910,911,912,913,914,915,916,917,918,919},
{"✪       柠檬桉     ✪",1060},
{"✪       长叶树     ✪",841},
{"✪       寒木        ✪",5502},
{"✪       竹子        ✪",750,751,752,753,754,755,756,757,758,759},
{"❃❃❃❃其他❃❃❃❃",101},
{"✪ 高等战斗图腾 ✪",47},
{"✪ 高等狩猎图腾 ✪",48},
{"✪    首领图腾     ✪",49},
{"✪    神兽图腾1   ✪",50},
{"✪    神兽图腾2   ✪",53},
{"✪    秘境入口     ✪",52},
{"✪    山海通鉴     ✪",101},
}
local m={}
for x=1,#sjk do
m[x]=sjk[x][1]
end
local sj={}
local zylx=gg.multiChoice(m,nil,"可多选，不选则是全物资(所有能搜索到的物资)，注：选择的物资越多，规划路线的时间越长。")
if zylx~=nil then
for x=1,#m do
if zylx[x]==true then
for h=1,#sjk[x] do
sj[#sj+1]=sjk[x][h]
end
end
end

while(true)do
if gg.isVisible(true) then break else
local zbd={}
gg.toast("测试\n搜索物资")
local tz=CSMS({4,4,999,0,FFNC},{
{-83,4,335544320},
})
local zbk={}
if #sj==0 then
for x=1,#tz do
local zb=CSMD(tz[x],{{-62,16},{-61,16},{-60,16},{-82,4}})
zbk[x]={}
zbk[x][1],zbk[x][2],zbk[x][3]=zb[1],zb[2],zb[3]
end
else
for x=1,#tz do
local zb=CSMD(tz[x],{{-62,16},{-61,16},{-60,16},{-82,4}})
for h=1,#sj do
if zb[4]==sj[h]then 
local j=#zbk+1
zbk[j]={}
zbk[j][1],zbk[j][2],zbk[j][3]=zb[1],zb[2],zb[3]
end
end
end
end


gg.toast("测试\n规划路线，请稍候。")
local XZB=CSMD(ZZB[1],{{19,64},{21,64},{23,64}})
local xzbk={}
local cs=#zbk
local jsgh=nil
for h=1,#zbk do
zxz,dng=nil,nil
for x=1,#zbk do
local jl=JSJL(XZB,zbk[x])
if zxz==nil then zxz=jl dng=x end
if jl<zxz then zxz=jl dng=x end
end
if zxz>SZXX[1] then break else
xzbk[h]=zbk[dng]
XZB=zbk[dng]
table.remove(zbk,dng)
end
end


local cs=#xzbk
for x=1,#xzbk do
if gg.isVisible(true)then break else
gg.toast("测试\n共有"..cs.."个坐标\n前往第"..x.."个坐标")
local XZB=CSMD(ZZB[1],{{19,64},{21,64},{23,64}})
local QZB=xzbk[x]
if JSJL(XZB,QZB)>SZXX[1]then gg.toast("状态异常，重新搜索。")CSMX(ZZB,{{21,64,0},})break 
else
local ZBC={}
ZBC[1]=math.ceil(QZB[1]-XZB[1])
ZBC[2]=math.ceil(QZB[3]-XZB[3])
local CZ={}
CZ[1]=math.abs(ZBC[1])
CZ[2]=math.abs(ZBC[2])
local S={}
if CZ[1]>CZ[2]then
CS=CZ[1]
if ZBC[1]<0 then Y=-1 elseif ZBC[1]>0 then Y=1 else Y=0 end
S[1],S[2]=Y,ZBC[2]/CZ[1]
else
CS=CZ[2]
if ZBC[2]<0 then Y=-1 elseif ZBC[2]>0 then Y=1 else Y=0 end
S[1],S[2]=ZBC[1]/CZ[2],Y
end
CSMX(ZZB,{{21,64,0},})
gg.sleep(1000)
for x=1,CS do
if gg.isVisible(true) then break else
XZB[1]=XZB[1]+S[1]
XZB[3]=XZB[3]+S[2]
CSMX(ZZB,{{19,64,XZB[1]},{23,64,XZB[3]},})
end
gg.sleep(130)
end
CSMX(ZZB,{{21,64,QZB[2]+5},})
local XZB=CSMD(ZZB[1],{{19,64},{21,64},{23,64}})
if JSJL(XZB,QZB)>5 then gg.toast("状态异常，重新搜索。")CSMX(ZZB,{{21,64,0},})break 
else
gg.sleep(SZXX[2]*1000)
local jc=0
while(true)do
jc=jc+1
if gg.isVisible(true)then break else
if CSMD(CZS[1],{{-31,4}})[1]==0 or jc==SZXX[3] then 
gg.toast("无物资或超时，等待"..SZXX[4].."秒")
gg.sleep(SZXX[4]*1000)
break 
end
gg.sleep(1000)
end
end

end


end
end
end
end
end
end
end

SZXX={5000,2,15,1}
function wxgn3()
local m={
"设置距离(规划路线时，超过此距离将直接剔除，增加效率。)",
"设置检测(移动完成，多少秒后开始检测附近是否有可操作元素?)",
"设置超时(如果检测有物资但操作无效，多久去下一个物资。)",
"检测后呢(如果检测到无物资或超时，可停留一段时间，捡取掉落物等。)",
}
local szjl=gg.prompt(m,SZXX,{number,number,number,number})
if szjl~=nil then
for x=1,#m do
SZXX[x]=szjl[x]*1
end
end
end

  function wxgn121()
    gg.clearResults()
    gg.setRanges(16)
    gg.searchNumber("16384;16384;16384;16384;16384;16384;16384;16384;16384;16384;16384", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
    gg.refineNumber("16384", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
    revert = gg.getResults(10000, nil, nil, nil, nil, nil, nil, nil, nil)
    for _FORV_4_, _FORV_5_ in ipairs((gg.getResults(10000, nil, nil, nil, nil, nil, nil, nil, nil))) do
      if _FORV_5_.flags == gg.TYPE_DWORD then
        _FORV_5_.value = "70012"
        _FORV_5_.freeze = true
      end
    end
    gg.addListItems((gg.getResults(10000, nil, nil, nil, nil, nil, nil, nil, nil)))
    gg.alert("防封开启成功，请勿切换应用，否则游戏会卡死。")
  end

function wxsh()
local m={
"1.防封1",
"1.防封2",
"2.初始化",
"3.打工人",
"4.设置",
"5.退出"
}local g=gg.multiChoice(m,nil,"现仅适配真机，可能有些bug")
if g~=nil then 
if g[1]==true then wxgn181()end
if g[2]==true then wxgn121()end
if g[3]==true then wxgn1()end
if g[4]==true then if ZZB==nil or CZS==nil then gg.alert("请初始化")else wxgn2()end end
if g[5]==true then wxgn3()end
if g[6]==true then os.exit()end
end 
kg=-1
end
while(true)do if gg.isVisible(true)then 
kg=1 gg.setVisible(false)end if
kg==1 then 
wxsh()
end 
end
--[[
测试
]]







---[=[上面可以复制上你的脚本]=]------------------------------------------------------------------------------------------------------------------- end-- ab80fff28ac9259a245266d5b0cc5575c7
end


function md5(code)    local code = tostring(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 = s:len()         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] | (s:byte(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 = math.floor(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 string.lower(retStr)       end       return getmd5(code)     end
--md5加密 md5("加密内容")

ZZRc4 = {} 
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 = math.modf( left / 2)           right = math.modf( right / 2)       end       return res end function ZZMathBit.xorOp(left, right)       return ZZMathBit.__base(left, right, ZZMathBit.__xorBit) end function RC4(text,key,kasi)
if kasi==false then      str = text      str=str:gsub("[%s%p]",""):upper()       local index=1       local ret=""       for index=1,str:len(),2 do         ret=ret..string.char(tonumber(str:sub(index,index+1),16))       end       text=ret     end          local function KSA(key)           local keyLen = string.len(key)           local schedule = {}           local keyByte = {}           for i = 0, 255 do               schedule[i] = i           end              for i = 1, keyLen do               keyByte[i - 1] = string.byte(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 = string.len(text)           local c = nil           local res = {}           for i = 1, len do               c = string.byte(text, i,i)               res[i] = string.char(ZZMathBit.xorOp(schedule[i], c))           end           return table.concat(res)       end          local textLen = string.len(text)       local schedule = KSA(key)       local k = PRGA(schedule, textLen)          str=output(k, text) if kasi==true then       str = tostring(str)       local index=1       local ret=""       for index=1,str:len() do         ret=ret..string.format("%02X",str:sub(index):byte())       end       return string.lower(ret) else     return str end end 
--极简云RC42加密和解密配置     RC4("加密内容","密码",false=解密_true=加密)

function ultra(get,post)    local c=gg.makeRequest(get,nil,post).content     return c  end 
--请求

---[=[上面不要乱动]=]-------------------------------------------------------------------------------------------------------------------


function cu()
x={
"https://cute521.cn",
}

uio=gg.makeRequest(x[1]).content
if uio==nil then
gg.alert("网络错误")--提示
else

if uio=="欢迎使用！" then
oqvqo(x[1])
else
gg.alert("网络错误,可能是被攻击了！")--提示
end

end

end

---[=[  ↑检测网络  ]=]-------------------------------------------------------------------------------------------------------------------

xxxxxxx=""
function oqvqo(xxxxxxx)
local xxxxxxx_Kami=xxxxxxx.."/api.php?api=kmlogon"
--接口名称[卡密登录]

local xxxxxxx_jieba=xxxxxxx.."/api.php?api=kmunmachine"
--接口名称[卡密解绑]

local xxxxxxx_to_configure=xxxxxxx.."/api.php?api=ini"
--接口名称[应用配置]

local xxxxxxx_Notice=xxxxxxx.."/api.php?api=notice"
--接口名称[应用公告]

local xxxxxxx_RC4=true
--是否 RC4 加密[false=关 true=开] 
--选择 RC4加密-2 否则会乱码 
--打开 签名放DATA里:打开


local xxxxxxx_APPID="10809"
--APPID

local xxxxxxx_APPKEY="hiCge8na3JI88i05"
--APPKEY

local xxxxxxx_RC4_key="CMa3A9RZmzv78JTD"
--是否 RC4 加密[key 密钥]


local xxxbanb="1.0"
--1.0

local xxxQQ=""
--作者QQ


if xxxxxxx_APPID=="" or xxxxxxx_RC4_key=="" or xxxxxxx_APPKEY=="" then
gg.alert("关键东西没填，运行啥啊？")--对话框
os.exit() 
end


FILES_DIR="/sdcard/Android/"
--卡密 设备码 路径


---[=[   ↑配置  ]=]-------------------------------------------------------------------------------------------------------------------

Notice=ultra(xxxxxxx_Notice.."&app=".. xxxxxxx_APPID,"")

No=Notice:match('"code":(.-),')
if  No ~= nil then 
No=Notice:match('"msg":"(.-)",')
if No==nil then
xxxxxxx_RC4=false--判定是否关闭
else
gg.alert("公告接口："..No)--对话框
os.exit() 
end
end

if  xxxxxxx_RC4 == true then 
Notice=RC4(Notice,xxxxxxx_RC4_key,false) 
end


Notice=Notice:match('"app_gg":"(.-)"},')--获取公告
if Notice==nil then
No=Notice:match('"code":(.-),')
if  No ~= nil then 
No=Notice:match('"msg":"(.-)",')
if No==nil then
xxxxxxx_RC4=false--判定是否关闭
else
gg.alert("公告接口："..No)--对话框
os.exit() 
end
end

else
if Notice~="" then
gg.alert(Notice,"确定")--对话框
end
end

---[=[上面是公告]=]-------------------------------------------------------------------------------------------------------------------

fanhui="无法获取"
gongxing=ultra(xxxxxxx_to_configure.."&app=".. xxxxxxx_APPID,"")


No=gongxing:match('"code":(.-),')
if  No ~= nil then 
No=gongxing:match('"msg":"(.-)",')
if No==nil then
xxxxxxx_RC4=false--判定是否关闭
else
gg.alert("应用配置接口："..No)--对话框
os.exit() 
end
end

if  xxxxxxx_RC4 == true then 
gongxing=RC4(gongxing,xxxxxxx_RC4_key,false) 
end

xxxxbanben=gongxing:match('"version":"(.-)",')--获取版本号
xxxxgxnr=gongxing:match('app_update_show":"(.-)",')--更新内容
xxxxlianjie=gongxing:match('app_update_url":"(.-)","app_update_must')--更新链接
xxcisu=gongxing:match('"api_total":"(.-)"}')--启动次数

if gongxing==nil then

No=gongxing:match('"code":(.-),')
if  No ~= nil then 
No=gongxing:match('"msg":"(.-)",')
if No==nil then
xxxxxxx_RC4=false--判定是否关闭
else
gg.alert("应用配置接口："..No)--对话框
os.exit() 
end
end

else

if xxxxbanben==xxxbanb then
gg.toast("最新版本")--提示 
else
if xxxxlianjie=="未提交URL" then
print("\n没有要更新的链接\n请联系作者:"..xxxQQ)
os.exit() 
end
bhh=gg.alert("发现新版本，请更新内容 ","开始下载","浏览器更新")--对话框

if xxxxbanben == xxxbanb then

xxxxlianjie=gg.makeRequest(xxxxlianjie).content
io.open("/storage/emulated/0/最新版本.lua","w+"):write(xxxxlianjie)--写
gg.setVisible(true)
print("---[=[ 下载成功]=]---------------\n\n[新版本]:\n"..xxxxbanben.."\n\n[更新内容]:\n"..xxxxgxnr.."\n\n[新脚本路径]:\n/storage/emulated/0/最新版本.lua\n")--打印
 elseif bhh == 2 then
gg.setVisible(true)
print("\n[新版本]:\n"..xxxxbanben.."\n\n[更新内容]:\n"..xxxxgxnr.."\n\n[更新链接]:\n"..xxxxlianjie)--打印 end
os.exit() 
end
end

end
---[=[获取更新↑]=]-------------------------------------------------------------------------------------------------------------------


function yanzzzzz(km,sbm)

key=md5("kami="..km.."&markcode="..sbm.."&t="..os.time().."&".. xxxxxxx_APPKEY)
--计算签名

Random=md5(RC4(os.time().."极简云",xxxxxxx_RC4_key,true)..xxxxxxx_APPKEY..sbm)
--随机[用来计算是否相等]

bops="kami="..km.."&markcode="..sbm.."&t="..os.time().."&sign="..key
--需要请求的数据

if  xxxxxxx_RC4 == true then
bops="data="..RC4(bops,xxxxxxx_RC4_key,true)
end-- 把请求数据用RC4加密

HUT=ultra(xxxxxxx_Kami.."&app=".. xxxxxxx_APPID,bops.."&value="..Random)
--请求数据


if HUT~=nil then
if  xxxxxxx_RC4 == true then
HUT=RC4(HUT,xxxxxxx_RC4_key,false) 
end-- 把返回的数据用RC4解密

qued=HUT:match('code":(.-),')--获取编号 200是成功
vip=HUT:match('vip":"(.-)"},')--获取 卡密时间
yanzen=HUT:match('check":"(.-)"')--获取随机值
tinme=HUT:match('time":(.-),')--获取时间搓
fanhui=HUT:match('msg":"(.-)",')--获取错误

if qued~="200" then
gg.alert(fanhui)--返回错误
io.open(FILES_DIR.."/km","w"):write("")--写
else

if (tinme-os.time())>10 or (tinme-os.time())<-10 then
gg.setVisible(false)
gg.toast("\n(▔_▔) 数据超时！")
else--时间10小于就跳转

if yanzen~=md5(tinme..xxxxxxx_APPKEY..Random) then
gg.setVisible(false)
gg.toast("\n️(▔_▔) 请不要修改数据！")
else--网络数据是否修改

gg.setVisible(false)
vip1=os.date("%Y".."年".."%m".."月".."%d".."日".."\r".."%H".."时".."%M".."分".."%S".."秒\n",vip)
io.open(FILES_DIR.."/km","w"):write(km)--写
kll=gg.alert("\n登入成功:\n\n[到期时间]\n"..vip1,"确定","返回")--提示--获取到期时间
if kll==2 then
io.open(FILES_DIR.."/lko","w"):write("false")--写
oqvqo(xxxxxxx)
end


ab97aa6654d76064b21888a12b96af9e9d(vip)--
--登入成功后的动作------------------------------------------------------------------------------------------------------------------


end
end
end
else
gg.setVisible(false)
gg.toast("\n️(▔_▔) 请检查网络！")
end

end


---[=[  卡密登入↑ ]=]-------------------------------------------------------------------------------------------------------------------

function jiebang(km,sbm)
gg.setVisible(false)
key=md5("kami="..km.."&markcode="..sbm.."&t="..os.time().."&".. xxxxxxx_APPKEY)

bops="kami="..km.."&markcode="..sbm.."&t="..os.time().."&sign="..key

if  xxxxxxx_RC4 == true then
bops= "data="..RC4(bops,xxxxxxx_RC4_key,true) 
end


HUT=ultra(xxxxxxx_jieba.."&app=".. xxxxxxx_APPID,bops)

if  xxxxxxx_RC4 == true then
HUT=RC4(HUT,xxxxxxx_RC4_key,false) 
end-- xxxxxxx_Base64

qued=HUT:match('code":(.-),')
fanhui=HUT:match('msg":"(.-)",')
yanzen=HUT:match('check":"(.-)"')
tinme=HUT:match('time":(.-),')
gg.toast(fanhui)

end

---[=[  解绑卡密↑ ]=]-------------------------------------------------------------------------------------------------------------------



rq=os.date("%Y".."年".."%m".."月".."%d".."日".." ".."%H".."时".."%M".."分".."%S".."秒")
local a={}
fien={io.open(FILES_DIR.."/km","r"),io.open(FILES_DIR.."/miux","r"),io.open(FILES_DIR.."/lko","r")}

if fien[1]==nil then
io.open(FILES_DIR.."/km","w"):write("")--写
a[1]=io.open(FILES_DIR.."/km","r"):read("*a")--读
else
a[1]=io.open(FILES_DIR.."/km","r"):read("*a")--读
end--fien[1]--卡密

if fien[2]==nil then
io.open(FILES_DIR.."/miux","w"):write(md5(rq))--写
a[2]=io.open(FILES_DIR.."/miux","r"):read("*a")--读
else
a[2]=io.open(FILES_DIR.."/miux","r"):read("*a")--读
end--fien[2]--机器码

fien2=io.open(FILES_DIR.."/miux","r"):read("*a")--读
if fien2=="" then
io.open(FILES_DIR.."/miux","w"):write(md5(rq))--写
fien2=io.open(FILES_DIR.."/miux","r"):read("*a")--读
a[2]=fien2
end

if fien[3]==nil then
io.open(FILES_DIR.."/lko","w"):write("false")--写
a[3]=io.open(FILES_DIR.."/lko","r"):read("*a")--读
else
a[3]=io.open(FILES_DIR.."/lko","r"):read("*a")--读
end--fien[2]--机器码

fien3=io.open(FILES_DIR.."/lko","r"):read("*a")--读
if fien3=="" then
io.open(FILES_DIR.."/lko","w"):write("false")--写
fien3=io.open(FILES_DIR.."/lko","r"):read("*a")--读
a[3]=fien3
end

sbm=a[2]--设备码
km=a[1]--卡密

--判定自动登入
if a[3]=="true" then
a[3]=true
elseif a[3]=="false" then
a[3]=false
end



if a[3]==true then
yanzzzzz(a[1],sbm)
end


hak=gg.prompt({
'[输入: 1 开始解绑卡密]\n[输入: 2 邮箱反馈]\n现在时间:'..rq.."\n[本脚本使用："..fanhui.." 次]\n请输入卡密：",
"[自动登入]"
},{
km,
a[3]
},{
'text',--文字
'checkbox',--多选
})--文本功能



if hak==nil then
gg.setVisible(false)
gg.toast("取消……")--提示
elseif hak[1]=="1" then---[=[ ↓解绑  ]=]-------------------------------------------------------------------------------------------------------------------

gg.toast("开始解绑卡密……")--提示
hak2=gg.prompt({
'现在时间:'..rq.."\n请输入解绑卡密："
},{
},{
'text',--文字
})--文本功能

if hak2==nil then
gg.setVisible(false)
gg.toast("取消……")--提示
else
jiebang(hak2[1],sbm)
---[=[  ↑ 输入卡密跳转解绑卡密  ]=]-------------------------------------------------------------------------------------------------------------------
end

elseif hak[1]=="2" then ---[=[  ↓ 邮箱反馈 ]=]-------------------------------------------------------------------------------------------------------------------
if xxxQQ=="" then
gg.alert("作者没有填写QQ")
else

b=gg.prompt({
"联系方式(QQ或网名,手机号等)",
"反馈内容",
"取消就是[返回主页面]",
},{
"",
"",
true
},{
'text',
'text',
'checkbox',
})

if b ==nil then
gg.setVisible(false)
gg.toast("取消……")--提示
else


if b[1] ~= "" then
if b[2] ~= "" then
bh="&name="..b[1].."&certno="..b[2]
b=gg.makeRequest(xxxxxxx.."/api/mail/api.php?address="..xxxQQ.."@qq.com"..bh)
if b.code=="200" then
gg.alert("反馈成功[谢谢你的支持]")
else
gg.alert("反馈失败")
end
else
gg.alert("空内容")
end
else
gg.alert("空联系方式")
end
end
end
---[=[ ↘你们可以自己加购卡 加群什么的  ]=]-------------------------------------------------------------------------------------------------------------------
--elseif hak[1]=="3" then 输入3 干啥干啥





else---[=[  ↓卡密登入  ]=]-------------------------------------------------------------------------------------------------------------------

if hak[2]==true then
io.open(FILES_DIR.."/lko","w"):write("true")--写
elseif hak[2]==false then
io.open(FILES_DIR.."/lko","w"):write("false")--写
end

yanzzzzz(hak[1],sbm)
---[=[  ↑ 输入卡密跳转登入卡密  ]=]-------------------------------------------------------------------------------------------------------------------
end

end


while true do
  if gg.isVisible(true) then
  cu()
  end
end
