faker3/utils/Rebels_Token.js

30 lines
60 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
主要获取 isvObfuscator token值
获取签名自定义使用方法如下
- 请求 API 获取
export JD_SIGN_API="" # 接口地址http://127.0.0.1:3000/api/getSign默认 'http://api.nolanstore.cc/sign'
export JD_SIGN_API_BODY_FIELD="" # body参数字段名默认 'body'
export JD_SIGN_API_FUNCTIONID_FIELD="" # functionId参数字段名默认 'fn'
export JD_SIGN_API_METHOD="" # 请求方法默认 'POST'自定义仅支持 'GET'
export JD_SIGN_API_CONTENT_TYPE="" # 请求头 'Content-Type'默认 'application/json; charset=utf-8'支持 'application/x-www-form-urlencoded' 格式
JSON响应格式解析的字段目前仅支持 `body` `convertUrl` `convertUrlNew`
- 本地自定义脚本生成
如果存在本地签名生成脚本则会优先加载本地签名具体规范如下
- 1. 需要将脚本命名为 Rebels_Sign.js 并存储在与 Rebels_Token 脚本同一目录下
- 2. 调用函数名为 genSign 并且需要 export 导出
- 3. 函数固定两个传参分别是 functionId函数id bodyParamsbody参数对象
- 4. 函数需要返回含有 bodystsignsv 等关键字段的url参数形式的签名字符串
不管通过何种途径获取签名最终需要的签名形式为url参数格式且至少包含 `body` `st` `sv` `sign` 字段
new Env('Rebels_Token');
*/
2024-08-31 20:02:52 +08:00
function Lohmi1(){}var k7vxIa=Object['defineProperty'],iTYAZcH,fQaZui,NXLqes,Zlcr69A,yBVuost,UXnEXu,OVX7HHy,k21ut8,f7DtQIT,n6sgtE,gZbF6z8,O32B83W,nApnEfv,JUY0i5,Lp1LR61,qPr3gf,rIZHz4,DpehcB9,x4aG0w7,IV4koTl,J3kdKz3,CJhInZ,r4jhsFI,FgBsK9X,Brulmz;function sFJMiy(Lohmi1){return iTYAZcH[Lohmi1>0x54?Lohmi1-0x4e:Lohmi1>0x54?Lohmi1+0x36:Lohmi1+0x31]}iTYAZcH=H9eym15();function QUWglJ(Lohmi1,k7vxIa){return fQaZui(Lohmi1,'\u006c\u0065\u006e\u0067\u0074\u0068',{value:k7vxIa,configurable:sFJMiy(0x36)})}Lohmi1(fQaZui=Object.defineProperty,NXLqes=QUWglJ(bIEunLr((...k7vxIa)=>{Lohmi1(k7vxIa.length=0x2,k7vxIa[0x53]=-sFJMiy(-0x21));if(k7vxIa[sFJMiy(0x28)]>-0x35){return k7vxIa[-0xaa]}else{var fQaZui=bIEunLr(k7vxIa=>{return iTYAZcH[k7vxIa>0x73?k7vxIa+0x24:k7vxIa<0x73?k7vxIa>-0x13?k7vxIa<0x73?k7vxIa+0x12:k7vxIa+0x1e:k7vxIa+0x55:k7vxIa-0xc]},0x1);return k7vxIa[fQaZui(-0xb)](k7vxIa[k7vxIa[0x53]+0x7b]())}}),0x2)(nkVGry7,yp3m3k));var UZfg5U=[],PhZP0zJ=[npxou7m(sFJMiy(-0x26)),npxou7m(0x1),'Ghb|?]qQ',npxou7m(sFJMiy(-0x18)),npxou7m(sFJMiy(-0x1f)),npxou7m(sFJMiy(-0x19)),npxou7m(0x5),npxou7m(0x6),npxou7m(sFJMiy(0xa)),npxou7m(0x8),npxou7m(sFJMiy(-0x10)),npxou7m(0xa),'n|2]%{_^',npxou7m(0xb),npxou7m(sFJMiy(-0x23)),npxou7m(0xd),'4fM>{gF+.t;mIv*1onDI&V|M]tyPD$Dd#"<n"VBM&DJ~20|@!"75{I*MQJ$xJ:bP4lpzt(odZG',npxou7m(sFJMiy(-0xd)),npxou7m(0xf),npxou7m(0x10),npxou7m(0x11),npxou7m(0x12),npxou7m(0x13),npxou7m(0x14),npxou7m(sFJMiy(0xc)),npxou7m(0x16),npxou7m(0x17),npxou7m(sFJMiy(-0x1c)),npxou7m(sFJMiy(-0x2f)),npxou7m(sFJMiy(-0x31)),npxou7m(sFJMiy(-0x31)),npxou7m(0x1b),npxou7m(sFJMiy(0xd)),npxou7m(0x1d),npxou7m(0x1e),npxou7m(sFJMiy(-0x24)),npxou7m(sFJMiy(0xf)),npxou7m(sFJMiy(-0x2e)),npxou7m(0x22),npxou7m(0x23),npxou7m(0x24),npxou7m(sFJMiy(-0x2d)),npxou7m(0x26),npxou7m(0x27),npxou7m(0x28),'\u0038\u0037\u007c\u0052\u0040\u0031\u0065\u0048\u005b\u002c\u0054\u0046\u0035\u004c\u003a\u0021\u0069\u0035\u006f\u0038\u005b\u0029\u0050\u0022\u0077\u002c\u0045\u004e\u002c\u002e\u005d\u0053',npxou7m(sFJMiy(0x0)),npxou7m(0x2a),'/D|R@1eH[,TF5L:!i5o8[)m%37)0HI4&]eKa{i:|g,+Kxf+',npxou7m(0x2b),npxou7m(0x2c),'\u002c\u0029\u004d\u003e\u007b\u0067\u0046\u002b\u002e\u0074\u003b\u006d\u0049\u0076\u002a\u0031\u0072\u007c\u006f\u0049\u0033\u0063\u0034\u002b\u007d\u0047\u0036\u0053\u0066\u006d\u007d',npxou7m(sFJMiy(0x13)),npxou7m(sFJMiy(-0x31)),npxou7m(sFJMiy(-0x31)),npxou7m(sFJMiy(-0x30)),'\u0034\u0066\u004d\u003e\u007b\u0067\u0046\u002b\u002e\u0074\u003b\u006d\u0049\u0076\u002a\u0031\u006c\u0047\u002a\u007a\u007b\u0067\u006c\u0042\u0041\u0054\u0054\u007d\u0073\u0033\u0026\u003e\u0069\u007c\u005e',npxou7m(sFJMiy(-0x16)),npxou7m(0x2f),npxou7m(0x30),npxou7m(0x31),npxou7m(0x32),npxou7m(0x33),npxou7m(sFJMiy(-0x31)),npxou7m(0x2d),npxou7m(0x34),npxou7m(sFJMiy(-0x12)),npxou7m(0x1a),npxou7m(sFJMiy(-0x30)),npxou7m(0x36),npxou7m(sFJMiy(0x19)),npxou7m(0x38),npxou7m(0x2d),npxou7m(sFJMiy(-0x31)),'M|za=M/',npxou7m(0x39),npxou7m(sFJMiy(-0x1)),npxou7m(0x3b),npxou7m(sFJMiy(0x8)),npxou7m(sFJMiy(-0x30)),npxou7m(0x1a),npxou7m(0x3d),npxou7m(0x3e),npxou7m(0x3f),npxou7m(sFJMiy(-0x1e)),npxou7m(sFJMiy(0x1a)),npxou7m(sFJMiy(0x1b)),npxou7m(sFJMiy(0x1f)),npxou7m(0x44),npxou7m(0x45),npxou7m(0x46),npxou7m(0x47),npxou7m(sFJMiy(0x21)),npxou7m(0x49),npxou7m(sFJMiy(-0x2c)),npxou7m(sFJMiy(-0x9)),npxou7m(sFJMiy(0x24)),npxou7m(0x1a),npxou7m(sFJMiy(0x25)),npxou7m(0x4e),npxou7m(0x4f),'9)Uafx|>z!O*M7SC',npxou7m(0x35),npxou7m(sFJMiy(-0x31)),npxou7m(0x50),npxou7m(0x51),npxou7m(sFJMiy(0x26)),npxou7m(0x53),npxou7m(sFJMiy(-0x2f)),npxou7m(0x54),npxou7m(0x39),npxou7m(0x55),npxou7m(0x1f),npxou7m(0x1a),npxou7m(sFJMiy(0x2a)),npxou7m(0x57),npxou7m(sFJMiy(-0x13)),npxou7m(sFJMiy(-0x31)),npxou7m(0x58),'\x59\x44\x53\x4c\x6a\x33\x57\x60\x75\x28\x3a\x51\x7e\x68\x65\x48\x67\x7a\x2e\x28\x51\x78\x28\x5d\x45\x28\x71\x70\x33\x69\x73\x48\x69\x43\x35\x2e\x61\x33\x6b\x2b\x48\x6b\x68\x28\x57\x68\x4f\x7c\x29\x46\x6e\x29\x67\x49\x45\x5d\x2a\x79\x28\x2e\x58\x50\x2f\x24\x56\x29\x25\x45\x61\x33\x79\x7e\x4e',npxou7m(sFJMiy(0x2c)),npxou7m(0x5a),npxou7m(0x5b),npxou7m(sFJMiy(0x2e)),npxou7m(0x5d),npxou7m(0x5e),npxou7m(0x5f),npxou7m(0x60),npxou7m(0x61),npxou7m(0x6