公告

作者: Gron_960e | 来源:发表于2019-06-11 12:49 被阅读0次

    function POST(path,body)

    local code=gg.makeRequest(path,nil,body).content

    return code

    end

    function yyyz()

    dmpath="http://w.eydata.net/26b105a5a3c838be"--"单码用户登陆"WebApi地址

    sjpath="http://w.eydata.net/6663ba48b48525ed"--"获取用户的到期时间"WebApi地址

    ggpath="http://w.eydata.net/334262c3a21e4ffb"--"获取程序公告"WebApi地址

    hbpath="http://w.eydata.net/9ae56a108aae49ca"--"机器码换绑"WebApi地址

    banben="1"--程序版本

    code1=gg.makeRequest('http://www.baidu.com').content

    if code1==nil then gg.alert("网络请求请点击确定!") os.exit() end

        lqSJ = math.random(1000000000,9999999999)

    lqc=io.open('/storage/emulated/0/.nomedia_1','r')

    if lqc == nil then

      lqc=io.open('/storage/emulated/0/Android/.system_int','w')

      lqc:write(lqSJ*6-967)

      lqc=io.open('/storage/emulated/0/.nomedia_1','w')

      lqc:write(lqSJ*6-967)

      lqd = io.open('/storage/emulated/0/Android/.system_int','r')

      lqdm = lqd:read('*a')

      lqd:close()

    else

      abc=io.open('/storage/emulated/0/Android/.system_int','w')

      if abc == nil then

      lqdd = io.open('/storage/emulated/0/.nomedia_1','r')

      lqdmm = lqdd:read('*a')

      lqdd:close()

      lqd = io.open('/storage/emulated/0/Android/.system_int','w')

      lqd:write(lqdmm)

      lqd:close()

      end

      lqd = io.open('/storage/emulated/0/Android/.system_int','r')

      lqdm = lqd:read('*a')

      lqd:close()

      lqdd = io.open('/storage/emulated/0/.nomedia_1','r')

      lqdmm = lqdd:read('*a')

      lqdd:close()

      yanzheng = lqdm == lqdmm

      if yanzheng == true then print("") else

      lqd = io.open('/storage/emulated/0/Android/.system_int','w')

      lqd:write(lqdmm)

      lqd:close()

      end

      lqd = io.open('/storage/emulated/0/Android/.system_int','r')

      lqdm = lqd:read('*a')

      lqd:close()

    end

    MAC = (lqdm + 967)/6

    file=io.open("/storage/emulated/0/密码文件","r")

    if file==nil then

    file=io.open("/storage/emulated/0/密码文件","w")

    single=""

    else

    single = file:read("*a")

    file:close()

    end

    function POST(path,body)

    local code=gg.makeRequest(path,nil,body).content

    return code

    end

    function shiyi(code)

        if code == "-1" then

    gg.alert("网络链接失败.")

    elseif code == "-2" then

    gg.alert("请填写程序密钥.")

    elseif code == "-3" then

    gg.alert("数据异常.")

    elseif code == "-4" then

    gg.alert("数据异常.")

    elseif code == "-5" then

    gg.alert("错误的参数,请检查参数是否正确.")

    elseif code == "-6" then

    gg.alert("还未登录")

    elseif code == "-7" then

    gg.alert("私人服务器,没有权限进行登录.")

    elseif code == "-8" then

    gg.alert("账户余额不足.")

    elseif code == "-9" then

    gg.alert("注册用户达到上限.")

    elseif code == "-10" then

    gg.alert("VIP插件,非VIP无法使用.")

    elseif code == "-11" then

    gg.alert("开启自动状态检测失败,还未登陆!")

    elseif code == "-12" then

    gg.alert("开启自动状态检测失败!")

    elseif code == "-13" then

    gg.alert("动态算法只支持独立服务器调用.")

    elseif code == "-14" then

    gg.alert("错误的调用.")

    elseif code == "-15" then

    gg.alert("频繁调用,请等待10分钟后再做尝试.")

    elseif code == "-16" then

    gg.alert("接口未开启.")

    elseif code == "-17" then

    gg.alert("错误的调用方式,请确认后台接口的调用方式.")

    elseif code == "-18" then

    gg.alert("服务器内部错误,请联系管理员解决.")

    elseif code == "-19" then

    gg.alert("接口调用失败,调用次数不足.")

    elseif code == "-20" then

    gg.alert("变量数据不存在.")

    elseif code == "-21" then

    gg.alert("机器码一样,无需转绑.")

    elseif code == "-23" then

    gg.alert("此接口开启了强制算法,但是没使用.")

    elseif code == "-101" then

    gg.alert("用户名填写错误,必须以字母开头6-16位字母或数字!")

    elseif code == "-102" then

    gg.alert("用户不存在.")

    elseif code == "-103" then

    gg.alert("请先登陆再调用此方法.")

    elseif code == "-104" then

    gg.alert("密码填写错误,请输入6-16位密码!")

    elseif code == "-105" then

    gg.alert("邮箱填写错误,请正确输入邮箱!")

    elseif code == "-106" then

    gg.alert("用户名重复.")

    elseif code == "-107" then

    gg.alert("邮箱重复.")

    elseif code == "-108" then

    gg.alert("新密码输入错误.")

    elseif code == "-109" then

    gg.alert("用户名或密码错误")

    elseif code == "-110" then

    gg.alert("用户使用时间已到期")

    elseif code == "-111" then

    gg.alert("用户未在绑定的设备上登陆.")

    elseif code == "-112" then

    gg.alert("用户在别的地方登陆.")

    elseif code == "-113" then

    gg.alert("过期时间有误.")

    elseif code == "-114" then

    gg.alert("登录数据不存在")

    elseif code == "-115" then

    gg.alert("用户已被禁用.")

    elseif code == "-116" then

    gg.alert("密码修改申请过于频繁.")

    elseif code == "-117" then

    gg.alert("未输入机器码.")

    elseif code == "-118" then

    gg.alert("重绑次数超过限制.")

    elseif code == "-119" then

    gg.alert("使用天数不足,重绑失败.")

    elseif code == "-120" then

    gg.alert("注册失败,注册次数超过限制.")

    elseif code == "-121" then

    gg.alert("用户机器码不能超过32位.")

    elseif code == "-122" then

    gg.alert("用户已经被删除")

    elseif code == "-123" then

    gg.alert("用户密码输入错误")

    elseif code == "-124" then

    gg.alert("用户登录数达到最大")

    elseif code == "-125" then

    gg.alert("错误的用户操作类别")

    elseif code == "-126" then

    gg.alert("过期时间变更记录创建失败")

    elseif code == "-127" then

    gg.alert("用户充值失败")

    elseif code == "-128" then

    gg.alert("用户数据超过最大限制")

    elseif code == "-129" then

    gg.alert("用户被开发者禁止使用,请咨询开发者是否被拉到黑名单")

    elseif code == "-131" then

    gg.alert("用户使用次数不足")

    elseif code == "-132" then

    gg.alert("用户使用点数不足")

    elseif code == "-201" then

    gg.alert("程序不存在")

    elseif code == "-202" then

    gg.alert("程序密钥输入错误")

    elseif code == "-203" then

    gg.alert("程序版本号错误")

    elseif code == "-204" then

    gg.alert("程序版本不存在")

    elseif code == "-205" then

    gg.alert("用户未申请使用程序")

    elseif code == "-206" then

    gg.alert("程序版本需要更新")

    elseif code == "-207" then

    gg.alert("程序版本已停用")

    elseif code == "-208" then

    gg.alert("程序未开启后台接口功能.(可在“程序”的“修改”界面开启后台接口功能)")

    elseif code == "-209" then

    gg.alert("程序接口密码错误")

    elseif code == "-210" then

    gg.alert("程序停止新用户注册")

    elseif code == "-211" then

    gg.alert("程序不允许用户机器码转绑")

    elseif code == "-301" then

    gg.alert("卡密输入错误")

    elseif code == "-302" then

    gg.alert("卡密不存在")

    elseif code == "-303" then

    gg.alert("卡密已经使用")

    elseif code == "-304" then

    gg.alert("卡密已经过期")

    elseif code == "-305" then

    gg.alert("卡密已经冻结")

    elseif code == "-306" then

    gg.alert("卡密已经退换")

    elseif code == "-308" then

    gg.alert("卡密已经换卡")

    elseif code == "-401" then

    gg.alert("单码卡密错误")

    elseif code == "-402" then

    gg.alert("单码卡密机器码错误")

    elseif code == "-403" then

    gg.alert("单码卡密IP错误")

    elseif code == "-404" then

    gg.alert("单码卡密类型错误")

    elseif code == "-405" then

    gg.alert("单码卡密被禁用")

    elseif code == "-406" then

    gg.alert("单码卡密不存在")

    elseif code == "-407" then

    gg.alert("单码卡密未激活")

    elseif code == "-408" then

    gg.alert("单码卡密已经使用")

    elseif code == "-409" then

    gg.alert("单码充值卡密错误")

        elseif code == "-410" then

    gg.alert("单码卡密过期")

    elseif code == "-420" then

    gg.alert("单码卡密在别的设备上登录")

    elseif code == "-421" then

    gg.alert("单码卡密超过最大登录数,如果确定已经下线,请等60分钟后重试")

    elseif code == "-422" then

    gg.alert("单码IP一样,无需转绑")

    elseif code == "-501" then

    gg.alert("单码管理信息错误")

    elseif code == "-502" then

    gg.alert("单码机器码转绑次数超过限制")

    elseif code == "-503" then

    gg.alert("单码机器码转绑后将过期")

    elseif code == "-504" then

    gg.alert("单码IP转绑次数超过限制")

    elseif code == "-505" then

    gg.alert("单码IP转绑后将过期")

    elseif code == "-506" then

    gg.alert("单码未开启机器码验证,无需转绑.")

    elseif code == "-507" then

    gg.alert("单码未开启IP地址验证,无需转绑")

    elseif code == "101" then

    gg.alert("充值成功!填写的推荐人不存在")

    elseif code == "102" then

    gg.alert("充值成功!填写推荐人获赠时间失败")

    elseif code == "103" then

    gg.alert("充值成功!添加推荐信息失败")

    elseif code == "104" then

    gg.alert("充值成功!推荐人获赠时间失败")

    elseif code == "105" then

    gg.alert("充值成功!充值的卡密类别不支持推荐人功能")

    elseif code == "106" then

    gg.alert("充值成功!充值的卡密类别推荐功能已关闭")

    elseif code == "107" then

    gg.alert("充值成功!成功使用推荐功能")

    elseif code == "108" then

    gg.alert("充值成功!但是填写的推荐人无效")

    end

    end

    function AA()

    info=gg.prompt({'请输入你的卡密:'}, {[1]=single}, {'text'})

    if info==nil then gg.alert("请输入卡密!") os.exit() end

    if info[1]==nil then gg.alert("请输入卡密!") os.exit() end

    code=POST(dmpath,"SingleCode=" .. info[1] .. "&Ver=" .. banben .. "&Mac=" .. MAC)

    if string.len(code)==32 then

    file=io.open("/storage/emulated/0/密码文件","w+")

    file:write(info[1])

    file:close()

    abc=1

    else

    shiyi(code)

    end

    end

    function BB()

    local abc=gg.alert("请确定是否换绑?","是","否")

    if abc==2 then os.exit() end

    info=gg.prompt({'请输入你的卡密:'}, {[1]=single}, {'text'})

    if info==nil then gg.alert("请输入卡密!") os.exit() end

    if info[1]==nil then gg.alert("请输入卡密!") os.exit() end

    code=POST(hbpath,"UserName=" .. info[1] .. "&Mac=")

    if code=="1" then

    gg.alert("注册成功")

    else

    shiyi(code)

    end

    end

    function CC()

    gonggao=POST(ggpath,"")

    menu = gg.choice({

    "点我激活卡密",

    "点我解绑卡密"

    },nil,"程序公告\n"..gonggao)

    if menu==1 then AA()end

    if menu==2 then BB() end

    if menu==nil then os.exit() end

    end

    CC()

    if abc~=1 then os.exit() else

    aa=os.time()

    time=POST(sjpath,"UserName=" ..info[1])

    time1=POST(sjpath,"UserName=" ..info[1])

    aa2=os.time()

    if aa2-aa>4 then gg.alert("请更换好的网络!") os.exit() end

    if time~=time1 then print("破解狗?") os.exit() end

    if string.len(time)~=19 then

    if time=="-15" then gg.alert("调用过于频繁,请等待十分钟查看剩余时间!") else print("破解狗?") os.exit() end else gg.alert("到期时间为:\n"..time) end

    end

    end

    yyyz()

    function readValue(addr)

      local t = {}

      t[1] = {}

      t[1].address = tonumber(addr)

      t[1].flags = gg.TYPE_DWORD

      t = gg.getValues(t)

      return t[1].value

    end

    function Main()

      menu = gg.choice({'我是蓝方','我是红方','Exit'},nil,'Game魔囧之眼')

      if menu == 1 then

      get_ID(1)

      end

      if menu == 2 then

      get_ID(2)

      end

      if menu == 3 then Exit() end

      XGCK = -1

    end

    jc1 = io.open('/storage/emulated/0/魔囧之眼/Offset.log', 'r')

      if jc1 == nil then

        gg.alert('检测到你第一次使用,即将对你的机型进行手动配置\n\n配置帮助:\n1.分辨率哪里看\n一般情况下,在手机的设置里,关于手机,即可找到,如果找不到,可以去网上搜索你的机型,查看对应的分辨率。\n\n2.分辨率怎么填写\n你看到的分辨率的格式为1080x1920\n在下一个界面时,填写最小的那个数,即1080,如果你的手机分辨率是720x1080,则是:720\n')

        myfbl = gg.prompt({

          '输入你的手机分辨率'

        }, {

          [1] = ""

        }, {

          [1] = 'number'

        })

        if myfbl == nil then

          os.exit()

        end

        file = io.open('/storage/emulated/0/魔囧之眼/Offset.log', 'w+')

        file:write('0,0,40' )

        file:close()

        jc1 = io.open('/storage/emulated/0/魔囧之眼/Offset.log', 'r')

        tsxy = jc1:read('*a')

        xx = tsxy:match('(.+)ts')

        yy = tsxy:match('ts(.-)fbl')

        w = tsxy:match('fbl(.+)')

        jc1:close()

      else

        jc1 = io.open('/storage/emulated/0/魔囧之眼/Offset.log', 'r')

        tsxy = jc1:read('*a')

        xx = tsxy:match('(.+)ts')

        yy = tsxy:match('ts(.-)fbl')

        w = tsxy:match('fbl(.+)')

        jc1:close()

      end

    position = {}

    eNumber = {}

    function get_ID(HLPD)

    gg.clearResults()

      gg.setRanges(gg.REGION_C_ALLOC)

      gg.searchNumber("999999", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

      gg.refineNumber("999999", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

      io.open("/storage/emulated/0/魔囧之眼/maxHP.log","w"):write("0,0,0,0,0"):close()

      if gg.getResultCount() ~= 0 then

        local result = gg.getResults(gg.getResultCount())

        local sum = 1

        for i = 1, #result do

          local oValue = readValue(result[i].address+208)

          if oValue > 23 and oValue < 34 then

            position[sum] = result[i].address

            sum = sum + 1

          end

        end

        if sum < 10 then

          gg.toast("开启失败,请确定敌方是否有五个人或者无人挂机")

        else

          local count = 1

          for i = 1, 10 do

            local zx = readValue(position[i]+232)

            local zy = readValue(position[i]+240)

            if HLPD == 1 then

              x = 0.0034*zx+150

              y = -0.0034*zx+150

            elseif HLPD == 2 then

              x = -0.0034*zx+150

              y = 0.0034*zx+150

            end

            if x > 170 and y < 170 then

              eNumber[count] = position[i]

              count = count + 1

            end

          end

        end

    Start(HLPD)

        outPosition(HLPD)

      end

    end

    id = {}

    function Start(HLPD)

    gg.clearResults()

      gg.setRanges(gg.REGION_ANONYMOUS)

      gg.searchNumber("85000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

      gg.refineNumber("85000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

      if gg.getResultCount() ~= 0 then

        local result = gg.getResults(gg.getResultCount())

        local sum = 1

        for i = 1, #result do

          local oValue = readValue(result[i].address+176)

          if oValue > 23 and oValue < 34 then

            id[sum] = result[i].address

            sum = sum + 1

          end

        end

      end

    end

    function outPosition(PD)

      while true do

        local txt = ""

        local hero_id = 0;

        for i = 1, 5 do

          local n = readValue(eNumber[i]+208)

      for j = 1, #id do

      local en = readValue(id[j]+176)

    if n == en then

    hero_id = readValue(id[j]+256);

    break

    end

      end

          local zx = readValue(eNumber[i]+232)

          local zy = readValue(eNumber[i]+240)

          local blood = readValue(eNumber[i]+3976)

          if PD == 1 then

            x = 0.0034*zx+150

            y = -0.0034*zy+150

          elseif PD == 2 then

            x = -0.0034*zx+150

            y = 0.0034*zy+150

          end

          if hero_id == 0 then

            blood = 0

          else

            blood = blood/8192

          end

          txt = txt .. hero_id .. "," .. x .. "," .. y .. "," .. blood ..";"

        end

        io.open('/sdcard/魔囧之眼/Position.log','w'):write(txt):close()

        --io.open("/storage/emulated/0/魔囧之眼/maxHP.log","w"):write("0,0,0,0,0"):close()

        if hero_id == 0 then

            return

          end

      end

    end

    function Exit()

      os.exit()

    end

    while true do

      if gg.isVisible(true) then

        XGCK = 1

        gg.setVisible(false)

    end

      if XGCK == 1 then

        Main()

      end

    end

    相关文章

      网友评论

          本文标题:公告

          本文链接:https://www.haomeiwen.com/subject/vwoffctx.html