Giter Site home page Giter Site logo

Comments (13)

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024

@Attt 大佬给点思路?

from anyproxy-fgo-rule.

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024

我分别拆了fgo1.20.2和1.21.0的包,发现多了一个MD5.class,我推测那个sign值就是用MD5算出来的。
接下来需要看哪些函数调用了MD5的计算。
fgo1
fgo2

from anyproxy-fgo-rule.

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024

没有那么简单。。。fgo又加了一层壳。
B站做不成,请网易做得2333
fgo3

from anyproxy-fgo-rule.

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024

稍微继续看了一下才知道,我只是个弟中弟。。。
我上面说的都是狗屎!

from anyproxy-fgo-rule.

Chrischenx avatar Chrischenx commented on June 7, 2024

据说直接把sign删除就可以
某隔壁群看到的
qq 20180730213855
本人代码萌新 还望大佬教下如何写成脚本

from anyproxy-fgo-rule.

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024

很有道理,这样写的确可以。这是个百倍ATK的例子

module.exports = { * beforeSendResponse(requestDetail, responseDetail) {
        if ((requestDetail.url.indexOf('ac.php') != -1) && (requestDetail.requestData.indexOf('key=battlesetup') != -1 || requestDetail.requestData.indexOf('key=battleresume') != -1)) {
            const newResponse = responseDetail.response;
            var newbodyString = newResponse.body.toString();
            var dec = new Buffer(newbodyString.replace(/%3D/g, '='), 'base64').toString();
            var decJson = JSON.parse(dec);
            decJson['cache']['replaced']['battle'][0]['followerType'] = 1;
            var svts = decJson['cache']['replaced']['battle'][0]['battleInfo']['userSvt'];
            for (var i = 0; i < svts.length; i++) {
                if (svts[i]['hpGaugeType'] != undefined) {
                    svts[i]['maxActNum'] = 1;
                    svts[i]['chargeTurn'] = 6;
                }
                if (svts[i]['status'] != undefined && svts[i]['userId'] != undefined && svts[i]['userId'] != '0' && svts[i]['userId'] != 0) {
                    var ohp = Number(svts[i]['hp']);
                    hp = 200000;
                    if (typeof svts[i]['hp'] === 'number') {
                        svts[i]['hp'] = String(hp);
                    } else {
                        svts[i]['hp'] = hp;
                    }

                    var oatk = Number(svts[i]['atk']);
                    atk = oatk * 100;
                    if (typeof svts[i]['atk'] === 'number') {
                        svts[i]['atk'] = String(atk);
                    } else {
                        svts[i]['atk'] = atk;
                    }

                    svts[i]['skillLv1'] = '10';
                    svts[i]['skillLv2'] = '10';
                    svts[i]['skillLv3'] = '10';
                    svts[i]['treasureDeviceLv'] = '5';
                }
            }
            decJson['cache']['replaced']['battle'][0]['battleInfo']['userSvt'] = svts;
	    delete decJson['sign'];
            var encStr = JSON.stringify(decJson);
            var preStr = '\\u';
            var cnReg = /[\u0391-\uFFE5]/gm;
            if (cnReg.test(encStr)) {
                var encStr = encStr.replace(cnReg,
                function(str) {
                    return preStr + str.charCodeAt(0).toString(16)
                });
            }
            encStr = encStr.replace(/\//g, '\\\/');
            var enc = new Buffer(encStr).toString('base64');
            enc = enc.replace(/=/g, '%3D');
            var b = new Buffer(enc);
            newResponse.body = b;
            return {
                response: newResponse
            };
        }
    },
};

from anyproxy-fgo-rule.

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024
delete decJson['sign'];

也就加了这句话2333

from anyproxy-fgo-rule.

Chrischenx avatar Chrischenx commented on June 7, 2024

感谢 大大 我就是不知道该怎么加那句话2333找表头什么的也没找到

from anyproxy-fgo-rule.

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024

我也是现学的2333
我之前想的太复杂了,没想到直接删了就好。。。

from anyproxy-fgo-rule.

einnse avatar einnse commented on June 7, 2024

@ZizhuoWang 直接删除就行了吗。。

from anyproxy-fgo-rule.

Attt avatar Attt commented on June 7, 2024

@Chrischenx @ZizhuoWang 6666 -v-
今天刚想上线没想到竟然加了签名,然而B站程序员竟然没有对sign进行判空逻辑。。。
虽然感觉下个更新要gg...

from anyproxy-fgo-rule.

ZizhuoWang avatar ZizhuoWang commented on June 7, 2024

是啊,趁着能用赶快提高练度😂

from anyproxy-fgo-rule.

cgx150018 avatar cgx150018 commented on June 7, 2024

不会添加语句 绝望的眼神QAQ

from anyproxy-fgo-rule.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.