faker3/utils/Rebels_jdCommon.js

6 lines
89 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
专用依赖库必须存在否则报错
new Env('Rebels_jdCommon');
*/
2024-06-29 18:15:28 +08:00
const _0x4b204a=_0x76a4;(function(_0x2fc95d,_0xac41e3){const _0xf65f20=_0x76a4,_0x206720=_0x2fc95d();while(!![]){try{const _0x1e0b62=parseInt(_0xf65f20(0x33f,'WlL6'))/0x1*(-parseInt(_0xf65f20(0x30b,'%b5P'))/0x2)+-parseInt(_0xf65f20(0x1c6,'(I%8'))/0x3+-parseInt(_0xf65f20(0x483,'e1hV'))/0x4*(-parseInt(_0xf65f20(0x3e6,'wmfr'))/0x5)+-parseInt(_0xf65f20(0x133,'LLwl'))/0x6+-parseInt(_0xf65f20(0x376,'wmfr'))/0x7*(parseInt(_0xf65f20(0x15e,'(I%8'))/0x8)+-parseInt(_0xf65f20(0x4dc,'!jm9'))/0x9+parseInt(_0xf65f20(0x14e,'0J[t'))/0xa;if(_0x1e0b62===_0xac41e3)break;else _0x206720['push'](_0x206720['shift']());}catch(_0xca9cd5){_0x206720['push'](_0x206720['shift']());}}}(_0x3c6b,0x4d2bc));const fs=require('fs'),path=require('path'),https=require('https'),axios=require(_0x4b204a(0x4e0,'wmfr'))[_0x4b204a(0x4ec,'wmfr')],CryptoJS=require('crypto-js'),querystring=require(_0x4b204a(0x420,'v1nO'));function _0x76a4(_0x28333c,_0x2db202){const _0x3c6b1e=_0x3c6b();return _0x76a4=function(_0x76a45,_0x36ff32){_0x76a45=_0x76a45-0x132;let _0x2d6f19=_0x3c6b1e[_0x76a45];if(_0x76a4['YMWpvv']===undefined){var _0x59823e=function(_0x2b501f){const _0x524f54='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20ea53='',_0x1b21ed='';for(let _0x1f449c=0x0,_0x3483f7,_0xce0323,_0x164bf5=0x0;_0xce0323=_0x2b501f['charAt'](_0x164bf5++);~_0xce0323&&(_0x3483f7=_0x1f449c%0x4?_0x3483f7*0x40+_0xce0323:_0xce0323,_0x1f449c++%0x4)?_0x20ea53+=String['fromCharCode'](0xff&_0x3483f7>>(-0x2*_0x1f449c&0x6)):0x0){_0xce0323=_0x524f54['indexOf'](_0xce0323);}for(let _0x4abc5f=0x0,_0x2bbe07=_0x20ea53['length'];_0x4abc5f<_0x2bbe07;_0x4abc5f++){_0x1b21ed+='%'+('00'+_0x20ea53['charCodeAt'](_0x4abc5f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b21ed);};const _0x561756=function(_0x2a393b,_0x5f2d74){let _0x736ce8=[],_0x33940a=0x0,_0x3f076e,_0x3daa7f='';_0x2a393b=_0x59823e(_0x2a393b);let _0x1b9922;for(_0x1b9922=0x0;_0x1b9922<0x100;_0x1b9922++){_0x736ce8[_0x1b9922]=_0x1b9922;}for(_0x1b9922=0x0;_0x1b9922<0x100;_0x1b9922++){_0x33940a=(_0x33940a+_0x736ce8[_0x1b9922]+_0x5f2d74['charCodeAt'](_0x1b9922%_0x5f2d74['length']))%0x100,_0x3f076e=_0x736ce8[_0x1b9922],_0x736ce8[_0x1b9922]=_0x736ce8[_0x33940a],_0x736ce8[_0x33940a]=_0x3f076e;}_0x1b9922=0x0,_0x33940a=0x0;for(let _0x3936f6=0x0;_0x3936f6<_0x2a393b['length'];_0x3936f6++){_0x1b9922=(_0x1b9922+0x1)%0x100,_0x33940a=(_0x33940a+_0x736ce8[_0x1b9922])%0x100,_0x3f076e=_0x736ce8[_0x1b9922],_0x736ce8[_0x1b9922]=_0x736ce8[_0x33940a],_0x736ce8[_0x33940a]=_0x3f076e,_0x3daa7f+=String['fromCharCode'](_0x2a393b['charCodeAt'](_0x3936f6)^_0x736ce8[(_0x736ce8[_0x1b9922]+_0x736ce8[_0x33940a])%0x100]);}return _0x3daa7f;};_0x76a4['tAeSSE']=_0x561756,_0x28333c=arguments,_0x76a4['YMWpvv']=!![];}const _0x7bd60e=_0x3c6b1e[0x0],_0xbe95e=_0x76a45+_0x7bd60e,_0x1a92e9=_0x28333c[_0xbe95e];return!_0x1a92e9?(_0x76a4['texHUf']===undefined&&(_0x76a4['texHUf']=!![]),_0x2d6f19=_0x76a4['tAeSSE'](_0x2d6f19,_0x36ff32),_0x28333c[_0xbe95e]=_0x2d6f19):_0x2d6f19=_0x1a92e9,_0x2d6f19;},_0x76a4(_0x28333c,_0x2db202);}class Common{constructor(){const _0xc95ae1=_0x4b204a;this['_Cookie']='',this['_UserAgent']='',this[_0xc95ae1(0x3f3,'EU@g')]=new Map(),this[_0xc95ae1(0x137,'NPVR')]=_0xc95ae1(0x153,'$1fQ'),this[_0xc95ae1(0x18e,'v1nO')]=null,this['proxyPoolEnabled']=![],this[_0xc95ae1(0x2d1,'Z74)')]='',this[_0xc95ae1(0x1b9,'%b5P')]=![],this[_0xc95ae1(0x334,'NPVR')]=null,this['_requestDynamicProxyConfig']=null,this[_0xc95ae1(0x43e,'bQ5Q')]=![],this[_0xc95ae1(0x178,'EU@g')]=_0xc95ae1(0x246,'c2Kd'),this['_requestNoProxyList']=null,this[_0xc95ae1(0x463,'wmfr')]={0x190:_0xc95ae1(0x15f,'jMAg'),0x191:_0xc95ae1(0x3fc,'GAJo'),0x193:_0xc95ae1(0x36e,'jMAg'),0x1ed:_0xc95ae1(0x34d,'CIiU'),0x194:_0xc95ae1(0x399,'K[P6'),0x198:'请求超时\x20[408\x20Request\x20Timeout]',0x1ad:_0xc95ae1(0x24d,'@]J!'),0x1f4:_0xc95ae1(0x31d,'qFR@'),0x1f6:_0xc95ae1(0x43f,'0fxg'),0x1f7:'服务不可用\x20[503\x20Service\x20Unavailable]'},this['_requestErrorMessagesMap']={'ECONNABORTED':_0xc95ae1(0x40b,'M4A8'),'ECONNRESET':_0xc95ae1(0x366,'bQ5Q'),'ECONNREFUSED':_0xc95ae1(0x311,'M4A8'),'ET