faker3/utils/Rebels_jdCommon.js

6 lines
96 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
专用依赖库必须存在否则报错
new Env('Rebels_jdCommon');
*/
2024-07-09 12:37:34 +08:00
function _0x1120(_0x21dd76,_0x32ac11){const _0x1bfb8f=_0x1bfb();return _0x1120=function(_0x112036,_0x29f11e){_0x112036=_0x112036-0xfc;let _0xe7453b=_0x1bfb8f[_0x112036];if(_0x1120['OwQReF']===undefined){var _0x355009=function(_0x68abc5){const _0xbccc14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b3c45='',_0x36c920='';for(let _0x1c6d1f=0x0,_0x15b300,_0x462030,_0x1070e1=0x0;_0x462030=_0x68abc5['charAt'](_0x1070e1++);~_0x462030&&(_0x15b300=_0x1c6d1f%0x4?_0x15b300*0x40+_0x462030:_0x462030,_0x1c6d1f++%0x4)?_0x4b3c45+=String['fromCharCode'](0xff&_0x15b300>>(-0x2*_0x1c6d1f&0x6)):0x0){_0x462030=_0xbccc14['indexOf'](_0x462030);}for(let _0x5e266d=0x0,_0x404634=_0x4b3c45['length'];_0x5e266d<_0x404634;_0x5e266d++){_0x36c920+='%'+('00'+_0x4b3c45['charCodeAt'](_0x5e266d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x36c920);};const _0x38e591=function(_0x3fae20,_0x155717){let _0x353eb6=[],_0x4c8e17=0x0,_0x5d2fa8,_0x50a272='';_0x3fae20=_0x355009(_0x3fae20);let _0x14632d;for(_0x14632d=0x0;_0x14632d<0x100;_0x14632d++){_0x353eb6[_0x14632d]=_0x14632d;}for(_0x14632d=0x0;_0x14632d<0x100;_0x14632d++){_0x4c8e17=(_0x4c8e17+_0x353eb6[_0x14632d]+_0x155717['charCodeAt'](_0x14632d%_0x155717['length']))%0x100,_0x5d2fa8=_0x353eb6[_0x14632d],_0x353eb6[_0x14632d]=_0x353eb6[_0x4c8e17],_0x353eb6[_0x4c8e17]=_0x5d2fa8;}_0x14632d=0x0,_0x4c8e17=0x0;for(let _0xcb15d4=0x0;_0xcb15d4<_0x3fae20['length'];_0xcb15d4++){_0x14632d=(_0x14632d+0x1)%0x100,_0x4c8e17=(_0x4c8e17+_0x353eb6[_0x14632d])%0x100,_0x5d2fa8=_0x353eb6[_0x14632d],_0x353eb6[_0x14632d]=_0x353eb6[_0x4c8e17],_0x353eb6[_0x4c8e17]=_0x5d2fa8,_0x50a272+=String['fromCharCode'](_0x3fae20['charCodeAt'](_0xcb15d4)^_0x353eb6[(_0x353eb6[_0x14632d]+_0x353eb6[_0x4c8e17])%0x100]);}return _0x50a272;};_0x1120['TGZynM']=_0x38e591,_0x21dd76=arguments,_0x1120['OwQReF']=!![];}const _0x5ce625=_0x1bfb8f[0x0],_0x444621=_0x112036+_0x5ce625,_0x11e045=_0x21dd76[_0x444621];return!_0x11e045?(_0x1120['aXlSZU']===undefined&&(_0x1120['aXlSZU']=!![]),_0xe7453b=_0x1120['TGZynM'](_0xe7453b,_0x29f11e),_0x21dd76[_0x444621]=_0xe7453b):_0xe7453b=_0x11e045,_0xe7453b;},_0x1120(_0x21dd76,_0x32ac11);}const _0xbcdb29=_0x1120;(function(_0x50e218,_0x15bb80){const _0x3f8e25=_0x1120,_0x72edd4=_0x50e218();while(!![]){try{const _0x551057=-parseInt(_0x3f8e25(0x296,'yhYB'))/0x1*(-parseInt(_0x3f8e25(0x3bb,'PG)1'))/0x2)+parseInt(_0x3f8e25(0x471,']siK'))/0x3*(parseInt(_0x3f8e25(0x2c1,'oJ@]'))/0x4)+-parseInt(_0x3f8e25(0x1b8,'^@Wx'))/0x5*(parseInt(_0x3f8e25(0x262,'PG)1'))/0x6)+parseInt(_0x3f8e25(0x1ed,'b&Xu'))/0x7+-parseInt(_0x3f8e25(0x523,'e]i4'))/0x8+parseInt(_0x3f8e25(0x1f5,'fH3g'))/0x9+-parseInt(_0x3f8e25(0x441,'T1q7'))/0xa;if(_0x551057===_0x15bb80)break;else _0x72edd4['push'](_0x72edd4['shift']());}catch(_0x45843c){_0x72edd4['push'](_0x72edd4['shift']());}}}(_0x1bfb,0x3c411));const fs=require('fs'),path=require(_0xbcdb29(0x18e,'lQJ%')),https=require(_0xbcdb29(0x4fe,'e]i4')),axios=require(_0xbcdb29(0x20b,'fH3g'))[_0xbcdb29(0x444,'$ZqG')],CryptoJS=require('crypto-js'),querystring=require(_0xbcdb29(0x162,'nq]7'));class Common{constructor(){const _0x8d4dd4=_0xbcdb29;this['_Cookie']='',this[_0x8d4dd4(0x238,'EJn]')]='',this[_0x8d4dd4(0x49d,']d45')]=new Map(),this['_defaultUserAgent']=_0x8d4dd4(0x3d4,'0O$x'),this['_appSignConfig']=null,this[_0x8d4dd4(0x1d3,'ZPwn')]=![],this[_0x8d4dd4(0x183,'ZPwn')]='',this['_requestDebugMode']=![],this['_requestAxiosProxyConfig']=null,this[_0x8d4dd4(0x3a5,'r2)L')]=null,this['_requestDynamicProxyShowAddress']=![],this[_0x8d4dd4(0x193,'r2)L')]=_0x8d4dd4(0x16b,'[XL0'),this[_0x8d4dd4(0x349,'4sO#')]=null,this[_0x8d4dd4(0x10d,'T1q7')]={0x12d:'永久移动\x20[301\x20·\x20Moved\x20Permanently]',0x12e:'临时移动\x20[302\x20·\x20Found]',0x130:'资源未修改\x20[304\x20·\x20Not\x20Modified]',0x133:'临时重定向\x20[307\x20·\x20Temporary\x20Redirect]',0x134:_0x8d4dd4(0x1f8,'4sO#'),0x190:'请求错误\x20[400\x20·\x20Bad\x20Request]',0x191:_0x8d4dd4(0x22f,'yhYB'),0x193:_0x8d4dd4(0x292,'00c9'),0x194:_0x8d4dd4(0x473,'oJ@]'),0x195:_0x8d4dd4(0x4ae,'yhYB'),0x196:_0x8d4dd4(0x3c5,'P