-
Notifications
You must be signed in to change notification settings - Fork 44
/
h5.js
executable file
·6 lines (5 loc) · 10.5 KB
/
h5.js
1
2
3
4
5
6
/*
Copyright 2022 (c) ===32===
Powered By Helloworld
*/
var _0xodc='jsjiami.com.v6',_0xodc_=['_0xodc'],_0x2521=[_0xodc,'wrbCrMKtfQ/CgG5g','w4M/LsOpw4c=','wo7DrMKFwrkFcsObwr8=','w6Q2ccOPw7w=','w5vDvMKRw4jDqcO2woc=','woNfwoBeeg==','DUYPHDY=','BsKPw6LDjgfCjMKfLFRGbsKjEcKOGFfDux5uSEljwoZ6QMKTwo5fwqvCpBXCmVnCujVZwrrDv1c0wpbCvcK4ScOmaMKrF8Kywq9Jw7jDnMKGw6XDtndAw457aDs=','wpnCvMOAw51TesOLwrw+BsOp','wrbDkMKZRcONX8OVX8KMMTTDgSjDjTNHwqTDn0R3QEMrfcOLX8KvPcOOQhTDlsKAZcOzVjvCtMKWd8KjVMK+a1DCtcKZwoXDvxAMwpfCisOYETFFHWM+wopsF8KCwrIyXDogb2rCp3ZHw6cWw6wHbGjCuMOw','wpLDkMOQAmM=','w6k+QMOKKXvCkjJQw53Cm8KNwpPDvw==','wojCqsKwejTCjW4/GD3Cq8KIwrnDrcKqBUElw5N9wqM+fgXDu8O7w6bCrMOcwpLDmjJfwpZWwq4Fwq1gw7LDjMOuw4dKKkkqwpnDtAHCh3Elwo7DjMKMKg/DlCcAwoXCvsOPwqbDrcKhwrXCjMKEwqpJw7wMwr/DkBQzw7RXM0s=','wonCnsOyZcKM','w4hNfVt+a1TCkMKsTFzDjVNrexrChlRRw7bDtMKiQ8O1wqHDixTCpMOoXsOAw4rDmcOLw4ZzIEVrwoTCnRlOw6YFamvClsKgwpHCvVNfw7trQsODGMOaesOndMOMFcOOwrnCisKbH3BSWmhAworCr8OJwobCncOfw4HDlsKQPwjDm8KveMKqT0tWw4fDtsKZwoHDu8Ouwp8AwpvCh8Kzw5BJNMKqw7kZwovCjC3Cg8Olwow1fMK4wr/Dr8O9wp1uBUQyRGLCrMOQXMOWcifCpsOwHmdvGsO1asO+w4ckw4nCqcKjLsOvRsK6O8O6w6TDhcKldVFQwqfDt3DCncKqWsOEIcKEO8OVwpc9S2BawpXCrsOTa8O2L3XDikfCimjDvXvCmMKLwpRhGjfCgyDCviHDgUFmTzXDuyLDp8KPJ8KQAwdCfcKiSjV+w7jDhgLDjiHCuMOtw6LDl8OUwrUSwooAw6TCvsOxw6nDhTXCkcOdwovDhsKKJXDDlMKww7TChgPCtcOXwqQZK8OZwqPDkMKKF8Ktw77CmsK2GFbDrEHDlmvDo8KCQnNAw4zCs8K1wrbCnX7DjXHCllTDmA==','V8OwwqAGaw==','esKmw4vChFE=','T29odcOz','w4BLDMO6w5Y=','wqRZUFBT','jHxCNgwsjiaKxEYReQmFi.cBbom.v6=='];if(function(_0x28bbdb,_0x495e8e,_0xb751f4){function _0x56bfd2(_0x34a257,_0x308e9a,_0x114c7f,_0x5dc2ab,_0x36513e,_0x29dc1d){_0x308e9a=_0x308e9a>>0x8,_0x36513e='po';var _0x1bb5b5='shift',_0x25080a='push',_0x29dc1d='';if(_0x308e9a<_0x34a257){while(--_0x34a257){_0x5dc2ab=_0x28bbdb[_0x1bb5b5]();if(_0x308e9a===_0x34a257&&_0x29dc1d===''&&_0x29dc1d['length']===0x1){_0x308e9a=_0x5dc2ab,_0x114c7f=_0x28bbdb[_0x36513e+'p']();}else if(_0x308e9a&&_0x114c7f['replace'](/[HxCNgwKxEYReQFBb=]/g,'')===_0x308e9a){_0x28bbdb[_0x25080a](_0x5dc2ab);}}_0x28bbdb[_0x25080a](_0x28bbdb[_0x1bb5b5]());}return 0xdf759;};function _0x39292a(){var _0x154415={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x59c222,_0xb5c613,_0x1c2122,_0x1e0492){_0x1e0492=_0x1e0492||{};var _0x4231d0=_0xb5c613+'='+_0x1c2122;var _0x39b3b4=0x0;for(var _0x39b3b4=0x0,_0x49c193=_0x59c222['length'];_0x39b3b4<_0x49c193;_0x39b3b4++){var _0x467d7c=_0x59c222[_0x39b3b4];_0x4231d0+=';\x20'+_0x467d7c;var _0x1110c2=_0x59c222[_0x467d7c];_0x59c222['push'](_0x1110c2);_0x49c193=_0x59c222['length'];if(_0x1110c2!==!![]){_0x4231d0+='='+_0x1110c2;}}_0x1e0492['cookie']=_0x4231d0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x41e7d0,_0x2d2dc8){_0x41e7d0=_0x41e7d0||function(_0x4e237f){return _0x4e237f;};var _0x2a069e=_0x41e7d0(new RegExp('(?:^|;\x20)'+_0x2d2dc8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var _0x56e756=typeof _0xodc=='undefined'?'undefined':_0xodc,_0x5493d5=_0x56e756['split'](''),_0x89cd49=_0x5493d5['length'],_0x2f9d80=_0x89cd49-0xe,_0x33083e;while(_0x33083e=_0x5493d5['pop']()){_0x89cd49&&(_0x2f9d80+=_0x33083e['charCodeAt']());}var _0x32558b=function(_0x19588b,_0x26ed52,_0x2f0097){_0x19588b(++_0x26ed52,_0x2f0097);};_0x2f9d80^-_0x89cd49===-0x524&&(_0x33083e=_0x2f9d80)&&_0x32558b(_0x56bfd2,_0x495e8e,_0xb751f4);return _0x33083e>>0x2===0x14b&&_0x2a069e?decodeURIComponent(_0x2a069e[0x1]):undefined;}};function _0x14329(){var _0x262622=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x262622['test'](_0x154415['removeCookie']['toString']());};_0x154415['updateCookie']=_0x14329;var _0x9b13b3='';var _0x53ce82=_0x154415['updateCookie']();if(!_0x53ce82){_0x154415['setCookie'](['*'],'counter',0x1);}else if(_0x53ce82){_0x9b13b3=_0x154415['getCookie'](null,'counter');}else{_0x154415['removeCookie']();}};_0x39292a();}(_0x2521,0x1bd,0x1bd00),_0x2521){_0xodc_=_0x2521['length']^0x1bd;};function _0x1eee(_0xefbc2f,_0x43dc32){_0xefbc2f=~~'0x'['concat'](_0xefbc2f['slice'](0x1));var _0x393191=_0x2521[_0xefbc2f];if(_0x1eee['mSbxEW']===undefined){(function(){var _0xed13d8=function(){var _0x36ca07;try{_0x36ca07=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(_0x58e5a2){_0x36ca07=window;}return _0x36ca07;};var _0x417d50=_0xed13d8();var _0x1687ef='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x417d50['atob']||(_0x417d50['atob']=function(_0x3b83ec){var _0x2becc5=String(_0x3b83ec)['replace'](/=+$/,'');for(var _0x20d2fa=0x0,_0x370074,_0xb11ce1,_0x489ca4=0x0,_0x342603='';_0xb11ce1=_0x2becc5['charAt'](_0x489ca4++);~_0xb11ce1&&(_0x370074=_0x20d2fa%0x4?_0x370074*0x40+_0xb11ce1:_0xb11ce1,_0x20d2fa++%0x4)?_0x342603+=String['fromCharCode'](0xff&_0x370074>>(-0x2*_0x20d2fa&0x6)):0x0){_0xb11ce1=_0x1687ef['indexOf'](_0xb11ce1);}return _0x342603;});}());function _0x12bf55(_0x16e0b9,_0x43dc32){var _0xc15e72=[],_0x46f395=0x0,_0x9d45d9,_0x17eac8='',_0x1e7dd9='';_0x16e0b9=atob(_0x16e0b9);for(var _0x24e95f=0x0,_0x21bb7e=_0x16e0b9['length'];_0x24e95f<_0x21bb7e;_0x24e95f++){_0x1e7dd9+='%'+('00'+_0x16e0b9['charCodeAt'](_0x24e95f)['toString'](0x10))['slice'](-0x2);}_0x16e0b9=decodeURIComponent(_0x1e7dd9);for(var _0x5c9be9=0x0;_0x5c9be9<0x100;_0x5c9be9++){_0xc15e72[_0x5c9be9]=_0x5c9be9;}for(_0x5c9be9=0x0;_0x5c9be9<0x100;_0x5c9be9++){_0x46f395=(_0x46f395+_0xc15e72[_0x5c9be9]+_0x43dc32['charCodeAt'](_0x5c9be9%_0x43dc32['length']))%0x100;_0x9d45d9=_0xc15e72[_0x5c9be9];_0xc15e72[_0x5c9be9]=_0xc15e72[_0x46f395];_0xc15e72[_0x46f395]=_0x9d45d9;}_0x5c9be9=0x0;_0x46f395=0x0;for(var _0x1e3718=0x0;_0x1e3718<_0x16e0b9['length'];_0x1e3718++){_0x5c9be9=(_0x5c9be9+0x1)%0x100;_0x46f395=(_0x46f395+_0xc15e72[_0x5c9be9])%0x100;_0x9d45d9=_0xc15e72[_0x5c9be9];_0xc15e72[_0x5c9be9]=_0xc15e72[_0x46f395];_0xc15e72[_0x46f395]=_0x9d45d9;_0x17eac8+=String['fromCharCode'](_0x16e0b9['charCodeAt'](_0x1e3718)^_0xc15e72[(_0xc15e72[_0x5c9be9]+_0xc15e72[_0x46f395])%0x100]);}return _0x17eac8;}_0x1eee['bKNkMK']=_0x12bf55;_0x1eee['CZjBDP']={};_0x1eee['mSbxEW']=!![];}var _0x377fc3=_0x1eee['CZjBDP'][_0xefbc2f];if(_0x377fc3===undefined){if(_0x1eee['BnFDaT']===undefined){var _0x277d6d=function(_0xb44fce){this['tvLGop']=_0xb44fce;this['xohOfK']=[0x1,0x0,0x0];this['ZGWNOU']=function(){return'newState';};this['JNAqti']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['rxfRwu']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x277d6d['prototype']['LFaIaB']=function(){var _0x115a0a=new RegExp(this['JNAqti']+this['rxfRwu']);var _0x5aeec3=_0x115a0a['test'](this['ZGWNOU']['toString']())?--this['xohOfK'][0x1]:--this['xohOfK'][0x0];return this['jRDjSt'](_0x5aeec3);};_0x277d6d['prototype']['jRDjSt']=function(_0x1bb973){if(!Boolean(~_0x1bb973)){return _0x1bb973;}return this['BnyExL'](this['tvLGop']);};_0x277d6d['prototype']['BnyExL']=function(_0x34dba3){for(var _0x25d6cb=0x0,_0x1404fb=this['xohOfK']['length'];_0x25d6cb<_0x1404fb;_0x25d6cb++){this['xohOfK']['push'](Math['round'](Math['random']()));_0x1404fb=this['xohOfK']['length'];}return _0x34dba3(this['xohOfK'][0x0]);};new _0x277d6d(_0x1eee)['LFaIaB']();_0x1eee['BnFDaT']=!![];}_0x393191=_0x1eee['bKNkMK'](_0x393191,_0x43dc32);_0x1eee['CZjBDP'][_0xefbc2f]=_0x393191;}else{_0x393191=_0x377fc3;}return _0x393191;};var _0x43064b=function(_0x438477){var _0x2a9865=!![];return function(_0x4fd243,_0x4f39d5){var _0x326b94='';var _0x5cc54d=_0x2a9865?function(){if(_0x326b94===''&&_0x4f39d5){var _0x4cc9ae=_0x4f39d5['apply'](_0x4fd243,arguments);_0x4f39d5=null;return _0x4cc9ae;}}:function(_0x438477){};_0x2a9865=![];var _0x438477='';return _0x5cc54d;};}();var _0x47e4a5=_0x43064b(this,function(){var _0x3dbe3f=function(){return'\x64\x65\x76';},_0x9387a=function(){return'\x77\x69\x6e\x64\x6f\x77';};var _0x4b7d89=function(){var _0x127e68=new RegExp('\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d');return!_0x127e68['\x74\x65\x73\x74'](_0x3dbe3f['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x267d21=function(){var _0x1a9363=new RegExp('\x28\x5c\x5c\x5b\x78\x7c\x75\x5d\x28\x5c\x77\x29\x7b\x32\x2c\x34\x7d\x29\x2b');return _0x1a9363['\x74\x65\x73\x74'](_0x9387a['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x4529e5=function(_0x216f6e){var _0x2d76c1=~-0x1>>0x1+0xff%0x0;if(_0x216f6e['\x69\x6e\x64\x65\x78\x4f\x66']('\x69'===_0x2d76c1)){_0x2c80c9(_0x216f6e);}};var _0x2c80c9=function(_0xa66ea3){var _0x1a4c0a=~-0x4>>0x1+0xff%0x0;if(_0xa66ea3['\x69\x6e\x64\x65\x78\x4f\x66']((!![]+'')[0x3])!==_0x1a4c0a){_0x4529e5(_0xa66ea3);}};if(!_0x4b7d89()){if(!_0x267d21()){_0x4529e5('\x69\x6e\x64\u0435\x78\x4f\x66');}else{_0x4529e5('\x69\x6e\x64\x65\x78\x4f\x66');}}else{_0x4529e5('\x69\x6e\x64\u0435\x78\x4f\x66');}});_0x47e4a5();const jsdom=require('jsdom');let domWindow=null;async function sleep(t){var qSCgjf={'Rnmkt':function(callee,param1){return callee(param1);},'YNPKR':function(callee,param1,param2){return callee(param1,param2);}};return new Promise((resolve,reject)=>{qSCgjf[_0x1eee('0','d^Ud')](setTimeout,()=>{qSCgjf[_0x1eee('1','3gw%')](resolve,t);},t);});}async function loadH5Sdk(){var mXKQtf={'VPNXq':_0x1eee('2','QZvx'),'oGZQE':_0x1eee('3','Dr2@'),'BwsWl':function(callee,param1){return callee(param1);}};const {JSDOM}=jsdom;let resourceLoader=new jsdom['ResourceLoader']({'userAgent':_0x1eee('4','kTXc'),'referrer':mXKQtf[_0x1eee('5','lk]*')]});let virtualConsole=new jsdom[(_0x1eee('6','q%mL'))]();let options={'url':mXKQtf['VPNXq'],'referrer':'https://msitepp-fm.jd.com/rest/priceprophone/priceProPhoneMenu','userAgent':_0x1eee('7','11&4'),'runScripts':mXKQtf[_0x1eee('8','(0Ol')],'resources':resourceLoader,'includeNodeLocations':!![],'storageQuota':0x989680,'pretendToBeVisual':!![],'virtualConsole':virtualConsole};const dom=new JSDOM(_0x1eee('9','1j3e'),options);await mXKQtf[_0x1eee('a','1meR')](sleep,0x1f4);domWindow=dom['window'];}async function getH5st(businessId,req){var SdNZrD={'PvBoT':function(callee,param1){return callee(param1);},'uvPcL':function(x,y){return x===y;},'kPHTp':'function','okWQU':function(callee){return callee();}};let timer=null;if(!domWindow){await SdNZrD[_0x1eee('b','c7$d')](loadH5Sdk);}return new Promise(async resolve=>{if(SdNZrD[_0x1eee('c','Oddu')](typeof domWindow['signWaap'],SdNZrD[_0x1eee('d','LWWK')])){const h5st=await domWindow['signWaap'](businessId,req);SdNZrD[_0x1eee('e','1j3e')](resolve,h5st);}else{timer=setInterval(async()=>{if(typeof domWindow[_0x1eee('f','11&4')]==='function'){SdNZrD[_0x1eee('10','DR6H')](clearInterval,timer);timer=null;const h5st=await domWindow[_0x1eee('11','GRYh')](businessId,req);SdNZrD[_0x1eee('12','@Rft')](resolve,h5st);}},0x64);}});}module[_0x1eee('13','9w(Q')]=getH5st;;_0xodc='jsjiami.com.v6';