_o=_ENV 
function rc4_UTF_8(text,key,kasi)

  local function __xorBit(left, right)
    return (left + right) == 1
    and 1 or 0
  end

  local function __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

  local function xorOp(left, right)
    return __base(left, right, __xorBit)
  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(xorOp(schedule[i], c))
    end
    return table.concat(res)
  end


  ----

  m=0
  if kasi==false then
    str = text
    str=str:gsub("[%s%p]",""):upper()
    local index=1
    local ret=""

    for index=1,str:len(),2 do

      if tonumber(str:sub(index,index+1))== nil then
             m=m+1
          end
      ret=ret..string.char(tonumber(str:sub(index,index+1),16))
    end
    text=ret
  end


  local textLen = string.len(text)
  local schedule = KSA(key)
  local k = PRGA(schedule, textLen)
  local 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

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 = string.sub(str, i, i)
    if not numberchars[char] then break
    end i = i + 1
  end

  local num = tonumber(string.sub(str, from, i-1))
  if not num then
    gg.alert(string.gsub('json格式错误，不正确的数字, 错误位置:{from}', '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 = string.sub(str, i, i)
    if not ignor then
      if char == fuhao then
        return string.sub(str, from+1, i-1), i
       elseif char == '\\' then
        ignor = true
      end
     else ignor = false
    end
  end
  gg.alert(string.gsub('json格式错误，字符串没有找到结尾, 错误位置:{from}', 'from',from))
end

local function json2array(str,from,to)
  local result = {} from = from or 1
  local pos = from+1
  local to = to or string.len(str)
  while(pos<=to) do
    local char = string.sub(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
  gg.alert( string.gsub('json格式错误，表没有找到结尾, 错误位置:{from}', 'from',from))
end


function _G.json2table(str,from,to)
  local result = {}
  from = from or 1
  local pos = from+1
  local to = to or
  string.len(str)
  local key
  while(pos<=to) do
    local char = string.sub(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
  gg.alert(string.gsub('格式错误，表没有找到结尾, 错误位置:{from}','from',from))
end

fuhao= '"'
local jsonfuncs={
  [fuhao]=json2string,
  ['[']=json2array,
  ['{']=json2table,
  ['f']=json2false,
  ['F']=json2false,
  ['t']=json2true,
  ['T']=json2true}

function jsoooooooon(str)
  local char = string.sub(str, 1, 1)
  local func=jsonfuncs[char]
  if func == nil then
    gg.alert("json格式头错误 [ "..char.." ]")
    os.exit()
  end
  if func then
    return func(str,1, string.len(str))
  end
  if numberchars[char] then
    return json2number(str, 1, string.len(str))
  end
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)
    local tLen = #rTab
    rTab[tLen + 1] = bitLen & 0xffffffff
    rTab[tLen + 2] = bitLen >> 32
    return rTab
  end

  function getmb5(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 getmb5(code)
end

jm={
["md5"]=md5,
["jsoooooooon"]=jsoooooooon,
["rc4"]=rc4_UTF_8
}

jy_oj026402351d09e52=jm.md5
jy_oj202351d09e520f708=jm.jsoooooooon
jy_oj102351d09e520f=jm.rc4


local id_y026402351d09e='14310'
--APPID
local key_y151d09e520f7087d39='CSvYdpcpnlvSaDPP'
--APPKEY
local keys_y226402351d09e5='eas7bDXFjkf14310'
--是否 RC4 加密[key 密钥]
local xxxbanb='1.0'
--版本号
api_total=0
--查看人数


---------------------------------------------
local website_2351d09e520f708='http://cute521.cn/'
--官网
local km_02351d09e520f7087=website_2351d09e520f708..'/api.php?api=kmlogon&app='..id_y026402351d09e
--接口名称[卡密登录]
local jieba_426402351d09e52=website_2351d09e520f708..'/api.php?api=kmunmachine&app='..id_y026402351d09e
--接口名称[卡密解绑]
local to_configure_351d09e520f=website_2351d09e520f708..'/api.php?api=ini&app='..id_y026402351d09e
--接口名称[应用配置]
local Notice_2351d09e520f7087=website_2351d09e520f708..'/api.php?api=notice&app='..id_y026402351d09e
--接口名称[应用公告]


local AMI_km='/sdcard/km'
--卡密 路径
I_km=''

local AMI_miei='/sdcard/miei'
--设备码 路径
I_miei=''

local AMI_e='/sdcard/e'
--自动登入 路径
I_e=''


local d_a_n_kml351d09e520f70='开'

if id_y026402351d09e=='' or key_y151d09e520f7087d39=='' then
  gg.alert('对接数据,空...')--对话框
  os.exit()
end


Notice=gg.makeRequest(Notice_2351d09e520f7087,nil,'')["content"]
if d_a_n_kml351d09e520f70 == '开' then
  Notice=jy_oj102351d09e520f(Notice,keys_y226402351d09e5,false)
end
if jy_oj202351d09e520f708(Notice)== nil then
gg.alert('JSON: 数据错误')--对话框
os.exit()
end
if jy_oj202351d09e520f708(Notice).code==200 then
if jy_oj202351d09e520f708(Notice).msg.app_gg~='' then
gg.alert('kk有话说: '..jy_oj202351d09e520f708(Notice).msg.app_gg)
end
else
gg.alert('Notice！: '..jy_oj202351d09e520f708(Notice).msg)
end




file=gg.makeRequest(to_configure_351d09e520f,nil,'')["content"]
if d_a_n_kml351d09e520f70 == '开' then
  file=jy_oj102351d09e520f(file,keys_y226402351d09e5,false)
end
if jy_oj202351d09e520f708(file)== nil then
gg.alert('JSON: 数据错误')--对话框
os.exit()
end
api_total=jy_oj202351d09e520f708(file).msg.api_total
--调用几次接口[ 判断使用人数 ]
app_update_must=jy_oj202351d09e520f708(file).msg.app_update_must
--是否强行更新 y是 n否
app_update_show=jy_oj202351d09e520f708(file).msg.app_update_show
--更新内容
app_update_url=jy_oj202351d09e520f708(file).msg.app_update_url
--更新地址
version=jy_oj202351d09e520f708(file).msg.version
--版本号
if jy_oj202351d09e520f708(file).code ~= 200 then
gg.alert('file :'..jy_oj202351d09e520f708(file).msg)--对话框
os.exit()
end
if version ~= xxxbanb then
gg.alert('检查到新版本！')--对话框
gg.setVisible(false)
gg.alert("更新内容："..app_update_show,"复制链接")--对话框
gg.copyText(app_update_url)
if app_update_show== 'y' then
os.exit()
end
end



function m_a_in_A6402351d09e520f7()
if io.open(AMI_km,'r')== nil then
io.open(AMI_km,'w+'):write('')--写
l_km=''
io.close()
else
l_km=io.open(AMI_km,'r'):read('*a')--读
io.close() 
end


if io.open(AMI_miei,'r')== nil then
io.open(AMI_miei,'w+'):write(string.sub(jy_oj026402351d09e52(os.date()..keys_y226402351d09e5),16))--写
l_miei=string.sub(jy_oj026402351d09e52(os.date()..keys_y226402351d09e5),16)
io.close()
else
if io.open(AMI_miei,'r'):read('*a')== '' then
io.open(AMI_miei,'w+'):write(string.sub(jy_oj026402351d09e52(os.date()..keys_y226402351d09e5),16))--写
l_miei=string.sub(jy_oj026402351d09e52(os.date()..keys_y226402351d09e5),16)
io.close()
else
l_miei=io.open(AMI_miei,'r'):read('*a')--读
io.close()
end
end


if io.open(AMI_e,'r')== nil then
io.open(AMI_e,'w+'):write("0")--写
l_e="0"
io.close()
else
l_e=io.open(AMI_e,'r'):read('*a')--读
io.close() 
end


if l_e == "0" then
l_e=false
else
l_e=true
end



function d_a_n_jb6402351d09e(km,miei)
key=jy_oj026402351d09e52("kami="..km.."&markcode="..miei.."&t="..os.time().."&".. key_y151d09e520f7087d39)
--签名
bops="kami="..km.."&markcode="..miei.."&t="..os.time().."&sign="..key
if  d_a_n_kml351d09e520f70 == "开" then
bops= "data="..jy_oj102351d09e520f(bops,keys_y226402351d09e5,true) 
end
jy_oj32351d09e520f7087d=gg.makeRequest(jieba_426402351d09e52,nil,bops)["content"]
--请求数据
if d_a_n_kml351d09e520f70 == '开' then
  jy_oj32351d09e520f7087d=jy_oj102351d09e520f(jy_oj32351d09e520f7087d,keys_y226402351d09e5,false)
end
if jy_oj202351d09e520f708(jy_oj32351d09e520f7087d)== nil then
gg.alert('JSON: 数据错误')--对话框
os.exit()
end
if jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).code== 200 then
gg.alert(jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg)
else
gg.alert(jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg)--对话框
end
end



function d_a_n_km6402351d09e520f708(km,miei)---[=[   ]=]-------------------------------------------------------------------------------------------------------------------
Random=jy_oj026402351d09e52(miei..os.time()*1000+611*os.time()-999999)..math.random(521)
key=jy_oj026402351d09e52("kami="..km.."&markcode="..miei.."&t="..os.time().."&".. key_y151d09e520f7087d39)
--签名
bops="kami="..km.."&markcode="..miei.."&t="..os.time().."&sign="..key
--合成发送数据
if  d_a_n_kml351d09e520f70 == "开" then
bops= "data="..jy_oj102351d09e520f(bops,keys_y226402351d09e5,true) 
end
jy_oj32351d09e520f7087d=gg.makeRequest(km_02351d09e520f7087,nil,bops.."&value="..Random)["content"]
--请求数据
if d_a_n_kml351d09e520f70 == '开' then
  jy_oj32351d09e520f7087d=jy_oj102351d09e520f(jy_oj32351d09e520f7087d,keys_y226402351d09e5,false)
end
if jy_oj202351d09e520f708(jy_oj32351d09e520f7087d)== nil then
gg.alert('JSON: 数据错误')--对话框
os.exit()
end
if jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg.kami == nil then
gg.alert(jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg)--对话框
io.open(AMI_e,'w+'):write("0")--写
else
if jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg.vip == nil then
gg.alert(jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg)--对话框
io.open(AMI_e,'w+'):write("0")--写
else
while jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).check ~= jy_oj026402351d09e52(jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).time..key_y151d09e520f7087d39..Random) do
gg.alert("脚本：检测到你有非法操作")--对话框
io.open(AMI_e,'w+'):write("0")--写
os.exit()
end

while jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).time-os.time()>30 or jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).time-os.time()<-30 do
gg.alert("脚本：数据过期")--对话框
io.open(AMI_e,'w+'):write("0")--写
os.exit()
end

if jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).code== 200 then
io.open(AMI_km,'w+'):write(km)--写
io.open(AMI_e,'w+'):write("1")--写
TT=gg.alert("到期时间:-----------\n" ..os.date("%Y".."年".."%m".."月".."%d".."日  %H".."时".."%M".."分".."%S".."秒",jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg.vip).."\n使用卡密: "..jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg.kami,"确定","返回")--对话框
if TT== 2 then
io.open(AMI_e,'w+'):write("0")--写
m_a_in_A6402351d09e520f7()
else
_ENV=_o
---------------------------------------------









gg.copyText([[
添加QQ反馈:1561246033
]])

function Main()
menu = gg.choice({
'XK防封',
'XK功能',
'退出脚本'},
2018,'大厅开防')
if menu == 1 then A() end
if menu == 2 then B() end
if menu == 3 then Exit() end
XGCK=-1
end

function A()
menu1 = gg.choice({
'XK防封',
'返回上一页'},
2018,'XK防封')
if menu1 == 1 then a1() end
if menu1 == 11 then HOME() end
GLWW=-1
end



function B()
menu1 = gg.choice({
'待添加1',
'待添加2',
'待添加3',
'待添加4',
'待添加5',
'待添加6',
'待添加7',
'待添加8',
'待添加9',
'待添加10',
'返回上一页'},
2018,'只有防封有用')
if menu1 == 1 then b1() end
if menu1 == 2 then b2() end
if menu1 == 3 then b3() end
if menu1 == 4 then b4() end
if menu1 == 5 then b5() end
if menu1 == 6 then b6() end
if menu1 == 7 then b7() end
if menu1 == 8 then b8() end
if menu1 == 9 then b9() end
if menu1 == 10 then b10() end
if menu1 == 11 then HOME() end
GLWW=-1
end



function a1()
gg.alert("开启香蕉防封")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("197,769", gg.TYPE_DWORD)
gg.getResults(62877)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("开启中")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("197,361", gg.TYPE_DWORD)
gg.getResults(50000)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("开启中")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("197,929", gg.TYPE_DWORD)
gg.getResults(50000)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("开启中")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("198,009", gg.TYPE_DWORD)
gg.getResults(50000)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("开启中")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("198,153", gg.TYPE_DWORD)
gg.getResults(5000)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("开启中")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("196,784", gg.TYPE_DWORD)
gg.getResults(500)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("开启中")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("193,468", gg.TYPE_DWORD)
gg.getResults(510)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("开启中")
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("193,065", gg.TYPE_DWORD)
gg.getResults(510)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("196,608;196,608;196,608;196,608;196,608;196,608;196,608", gg.TYPE_DWORD)
gg.getResults(510)
gg.editAll("0", gg.TYPE_DWORD)
gg.clearResults()
gg.alert("成功开启XK防封")
end







function b1()

gg.toast("开启成功")
end



function b2()

gg.toast("开启成功")
end



function b3()

gg.toast("开启成功")
end



function b4()

gg.toast("开启成功")
end



function b5()

gg.toast("开启成功")
end



function b6()

gg.toast("开启成功")
end



function b7()

gg.toast("开启成功")
end



function b8()

gg.toast("开启成功")
end



function b9()

gg.toast("开启成功")
end



function b10()

gg.toast("开启成功")
end



function Exit()
print("你已退出XK科技")
os.exit()
end



function HOME()
lw=1
Main()
end



cs = '反馈1561246033'
while(true)do
if gg.isVisible(true) then
XGCK=1
gg.setVisible(false)
end
gg.clearResults()
if XGCK==1 then
Main()
end
end












---------------------------------------------
end
else
gg.alert(jy_oj202351d09e520f708(jy_oj32351d09e520f7087d).msg)--对话框
io.open(AMI_e,'w+'):write("0")--写
end
end
end
end




function jko()
hak=gg.prompt({
'全网使用次数：'..api_total..'\n输入[  1  ]解绑卡密\n在下方输入你的卡密',
'是否自动登入',
},{
l_km,
l_e
},{
'text',--文字
'checkbox',--多选
})--文本功能

if hak==nil then
XGCK=0
else

if hak[2]== true then
io.open(AMI_e,'w+'):write("1")--写
io.close() 
else
io.open(AMI_e,'w+'):write("0")--写
io.close() 
end

if hak[1] == "" then
gg.alert("卡密不能空！")--对话框
else

if hak[1] == "1" then
hakk=gg.prompt({
'输入要解绑的卡密！',
},{l_km},{
'text',
})--文本功

if hakk==nil then XGCK=0 else
if hakk[1] == "" then gg.alert("卡密不能空！") else
d_a_n_jb6402351d09e(hakk[1],l_miei)
end end else
d_a_n_km6402351d09e520f708(hak[1],l_miei)
end end end end
if l_e == false then jko() end
if l_e == true then d_a_n_km6402351d09e520f708(l_km,l_miei) end end

while(true)do
  if gg.isVisible(true) then
    XGCK=1
    gg.setVisible(false)
  end
  gg.clearResults()
  if XGCK==1 then
    m_a_in_A6402351d09e520f7()
  end
end
