精易论坛

标题: 霸王sign和x值算法开源 [打印本页]

作者: Lll0000    时间: 2025-6-15 22:19
标题: 霸王sign和x值算法开源
练习逆向时长两年半

const cyo = require('crypto-js');




function Y(timestamp, uId) {
    function $(id) {
        return {
            floor: function (x) {
                return Math.floor(x);
            }
        };
    }

    o = uId;
    n = timestamp;
    r = [
        [
            3,
            5,
            8,
            12
        ],
        [
            7,
            11,
            2
        ],
        [
            19,
            23,
            17
        ]
    ]
    i = "1" + o['slice'](-2) + n['toString']()['slice'](-2);
    console.log('i=' + i)
    s = $('oVapsI')['floor'](n / 1000) % 1000 || 1
    u = s;
    console.log('u=' + u)


    r['forEach'](((t, e) => {
            a = [
                2,
                3,
                5,
                7,
                11,
                13,
                17,
                19,
                23,
                29
            ]

            function z(t, e = 1) {
                return Object.defineProperty(t, 'length', {
                    value: e,
                    configurable: false
                }),
                    t
            }

            function Q() {
                Q = function () {
                }
            }

            const r = a[e];
            t['forEach'](z(((...t) => {
                    Q(t['length'] = 1, i ^= t[0] * r, u += Math['pow'](t[0] % 10, 2) * s % 1000003)
                }
            )))
        }
    ));

    d = o
    p = ((n + 0) % 1e4)['toStri' + "ng"]();
    for (let t = 0; t < 3; t++) {
        d = cyo['MD5'](d + p)['toString']()
    }

    const h = "" + i + '-' + u + '-' + n + '-' + d;
    console.log('h=' + h)
    return cyo['MD5'](cyo['SHA256'](h)['toString'](cyo['enc']['Hex']))['toString']()
}

function D(aId,timestamp,uId) {
    m = 'activityId='+aId+'&appId=wxafec6f8422cb357b&sellerId=49006&timestamp='+timestamp+'&userId='+uId+'&key=4LbZ2YxW7VuTs9Qr5PpN1Jk3HgF8'
    return cyo['MD5'](m)['toString']()['toUpperCase']()


}

var sign = D('1080523113114726401','1749995500267','')
console.log(sign)
var x = Y(1749995500267, '')
console.log(x)
// {
//     const e = 2
//         , i = D(r);
//     let a = "";
//     try {
//         a = Y(n)
//     } catch (t) {
//         s.a.reportError("encryptConfuser", t),
//             a = cyo.MD5("123456").toString()
//     }
//     o = at(it({}, t), {
//         timestamp: n,
//         signature: i,
//         x: a,
//         v: e
//     })
// }


作者: 1184798949    时间: 2025-6-16 09:20
感谢分享
作者: 铭焱    时间: 2025-7-3 16:20
霸王type__1475有办法嘛?




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4