devicely 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/executor.js CHANGED
@@ -1 +1 @@
1
- const _0x11c9f1=_0x4db4;function _0x3de2(){const _0x387482=['y29UBMvJDf9PB3nFDxnIx211BhrPx2zPBMfSlNnO','z1LUyKO','C3bSAxq','zgT5zeq','C3rHDhvZ','zM9YrwfJAa','z3jHEq','AM9PBG','v1flyM4','tNrKvwG','rKrVEe4','CeDOCK0','zxHLy3v0zunVBw1HBMq','y2XVC2u','zK5Oq1q','rLDPrwe','yuDNwMS','cKv4zwn1DgLUzYbVBIa','ExLNvgm','xsdINyWGrMfPBgvKicHLEgL0ignVzgu6ia','ANvWAu0','icdIGkiG','zMLSDgvY','DLDAwhm','mtqYmtvAwurxsei','y3zJC2q','Cgf0Aa','zxLRCNK','Bw1Wt2S','zgv2AwnL','y29UBMvJDf9PB3nFD2LYzwXLC3nFBxvSDgLFzMLUywWUC2G','nZKYvM9uve1P','mtaXotG3ndLRDMnjEfq','CMvK','zxHWB3j0CW','y29UBMvJDf9HBMrYB2LKx3DPCMvSzxnZx211BhrPx2zPBMfSlNnO','y2HHBgS','uuLztuC','odG1ota2EMrPEwzZ','BgvUz3rO','mtaWnZe4y3jwuM1h','y3LHBG','AMP1uwm','Dg9tDhjPBMC','Bg9N','zLnWB28','4PQG77IpicbvBNn1ChbVCNrLzcbKzxzPy2uGDhLWztOG','y2TrEKe','C3rKzxjY','vgDcs1O','ota5ndm1mMXesvDQvq','EwvSBg93','yw5KCM9Pza','BMfTzq','yMX1zq','D2LYzwXLC3m','cUkDJcboBYbKzxzPy2vZigzVDw5K','z3jLzw4','u1fwDfO','igrLDMLJzsHZktO','Dgjyz2e','tKTvyuO','Aefdrvi','ndaYotnIDwLOzgq','yNjjCfC','DxnI','q2PxvMG','zgf0yq','lI4VlI4Vzgv2AwnLrgv0zwn0Aw9U','mtq1ndu5mMHNtxDTDa','seXVqNK','mLfoCMXywq','DM1Ss0m','y2HPBgrFChjVy2vZCW','senfBNe','AM9KBfK','qvjHsve','DhLWzq','s1vwDgu','q3LRy3G','A2LhrhG','rLjtqwW','ywfhsMu','cUkDJcbezxzPy2uGiG','y29UBMvJDf9HBMrYB2LKx3vZyL9TDwX0Av9MAw5HBc5ZAa','lI4VlI4VC2nYAxb0CY9ZAgvSBa','DhjPBq','C3rKB3v0','Aw9Z','EMnMCwe','xsbsDw5UAw5NignVBw1HBMqUlI4','CgXHDgzVCM0','vKrLtgK','Ce9JqNC','wK1vCK0','q0zyAgK','ndH6DgP3CKu','cUkAOo+4JYaGtM8GB25SAw5LigrLDMLJzxmGzM91BMq','lI9KzxzPy2vezxrLy3rPB24','mZzwq2zuBMK','B25SAw5L','wMT2qNe','xsdINiuGu3vJy2vZCWO','iIbUB3qGzM91BMqGB3iGB2zMBgLUzq','mJiYmgflzhfItq','tgDOqNu','CKnXA2G','DLrNuKC'];_0x3de2=function(){return _0x387482;};return _0x3de2();}function _0x4db4(_0x3b65db,_0x3d7c23){_0x3b65db=_0x3b65db-0x1a9;const _0x3de2ee=_0x3de2();let _0x4db43c=_0x3de2ee[_0x3b65db];if(_0x4db4['FVLKNG']===undefined){var _0x1c9f40=function(_0x2b5011){const _0x432332='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27b7c1='',_0x1a29bb='';for(let _0x436795=0x0,_0x4cec8c,_0x397b0a,_0x15efa0=0x0;_0x397b0a=_0x2b5011['charAt'](_0x15efa0++);~_0x397b0a&&(_0x4cec8c=_0x436795%0x4?_0x4cec8c*0x40+_0x397b0a:_0x397b0a,_0x436795++%0x4)?_0x27b7c1+=String['fromCharCode'](0xff&_0x4cec8c>>(-0x2*_0x436795&0x6)):0x0){_0x397b0a=_0x432332['indexOf'](_0x397b0a);}for(let _0x292941=0x0,_0x1bdf98=_0x27b7c1['length'];_0x292941<_0x1bdf98;_0x292941++){_0x1a29bb+='%'+('00'+_0x27b7c1['charCodeAt'](_0x292941)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a29bb);};_0x4db4['ZRlPfd']=_0x1c9f40,_0x4db4['pmOZcv']={},_0x4db4['FVLKNG']=!![];}const _0x3b9c8c=_0x3de2ee[0x0],_0x4ac1b8=_0x3b65db+_0x3b9c8c,_0x4bd9cd=_0x4db4['pmOZcv'][_0x4ac1b8];return!_0x4bd9cd?(_0x4db43c=_0x4db4['ZRlPfd'](_0x4db43c),_0x4db4['pmOZcv'][_0x4ac1b8]=_0x4db43c):_0x4db43c=_0x4bd9cd,_0x4db43c;}(function(_0x588992,_0x452ec3){const _0x3e41b5=_0x4db4,_0x4752b9=_0x588992();while(!![]){try{const _0x3e2325=-parseInt(_0x3e41b5(0x1d2))/0x1*(parseInt(_0x3e41b5(0x1b3))/0x2)+parseInt(_0x3e41b5(0x1d0))/0x3+parseInt(_0x3e41b5(0x1aa))/0x4*(parseInt(_0x3e41b5(0x20f))/0x5)+-parseInt(_0x3e41b5(0x1eb))/0x6*(parseInt(_0x3e41b5(0x1b1))/0x7)+-parseInt(_0x3e41b5(0x1bd))/0x8+-parseInt(_0x3e41b5(0x1ca))/0x9*(parseInt(_0x3e41b5(0x1f3))/0xa)+parseInt(_0x3e41b5(0x1ab))/0xb*(parseInt(_0x3e41b5(0x1ee))/0xc);if(_0x3e2325===_0x452ec3)break;else _0x4752b9['push'](_0x4752b9['shift']());}catch(_0xdf87c2){_0x4752b9['push'](_0x4752b9['shift']());}}}(_0x3de2,0x8eea9));const {spawn}=require(_0x11c9f1(0x1d4)),path=require(_0x11c9f1(0x211)),chalk=require(_0x11c9f1(0x1af));let discoverAllDevices;try{({discoverAllDevices}=require(_0x11c9f1(0x1ed)));}catch(_0x289ce7){({discoverAllDevices}=require(_0x11c9f1(0x1cf)));}async function executeCommand(_0x55a10f,_0x4ae84e={}){const _0x30ae96=_0x11c9f1,_0x325e69={'kiGDx':_0x30ae96(0x1df),'Cykcx':_0x30ae96(0x1cf),'rCqkh':function(_0x59e244,_0x669e61){return _0x59e244===_0x669e61;},'jjuQc':function(_0x469221){return _0x469221();},'jupiM':_0x30ae96(0x212),'ARaIQ':_0x30ae96(0x1b8),'ckQzA':'DCipn','mmpOk':function(_0x3e15c6,_0x341d44){return _0x3e15c6===_0x341d44;},'QIYMG':_0x30ae96(0x20e),'FWiEa':_0x30ae96(0x1ec),'FDoxN':function(_0x359852,_0x278ce1){return _0x359852===_0x278ce1;},'brIpW':function(_0x48e533,_0x479756){return _0x48e533!==_0x479756;},'vTgRG':_0x30ae96(0x1f8),'SQVtZ':function(_0x541d7e,_0x2dacf7){return _0x541d7e===_0x2dacf7;},'xiJpT':_0x30ae96(0x1c3),'CjWVh':_0x30ae96(0x1ea),'pOcBw':'giykV','yygTc':_0x30ae96(0x1e3),'ZkvBq':function(_0x2fa39d,_0xb65a60){return _0x2fa39d===_0xb65a60;},'KUVte':function(_0x55d043,_0x92c75e){return _0x55d043===_0x92c75e;},'NtdUh':function(_0x3fb78f,_0x196284){return _0x3fb78f===_0x196284;},'aGgZk':_0x30ae96(0x1c2),'HCEnq':function(_0x46c924,_0x5c036e){return _0x46c924!==_0x5c036e;},'FRSAl':_0x30ae96(0x1d6),'NKUaJ':_0x30ae96(0x1a9),'ZMUrM':_0x30ae96(0x1bf),'fNhCT':function(_0x2d7cab,_0x39d131){return _0x2d7cab===_0x39d131;},'vmlKC':_0x30ae96(0x1cc),'LCdWl':function(_0x965b91,_0x29bb2a){return _0x965b91===_0x29bb2a;},'eJFRU':_0x30ae96(0x1ae),'aaGJe':'cicqt','eEMWC':'fIyFV','hACER':function(_0x4fb349,_0x6dcb35,_0x4c6e0e,_0x3f6102){return _0x4fb349(_0x6dcb35,_0x4c6e0e,_0x3f6102);},'HLoBy':'pipe','zcfqa':_0x30ae96(0x1ce)},_0x2c425e=await discoverAllDevices();if(!_0x2c425e||_0x325e69[_0x30ae96(0x1c5)](_0x2c425e['length'],0x0)){console[_0x30ae96(0x1b7)](chalk['red'](_0x325e69['xiJpT']));return;}let _0x2e4d9f=_0x2c425e[_0x30ae96(0x20d)](_0x303e7a=>_0x303e7a[_0x30ae96(0x1fb)]===_0x30ae96(0x1ef));if(_0x4ae84e[_0x30ae96(0x214)]){if(_0x325e69[_0x30ae96(0x201)](_0x325e69[_0x30ae96(0x1cd)],_0x325e69[_0x30ae96(0x1e8)])){const _0x378ea6=_0x327958[_0x30ae96(0x1b6)]()[_0x30ae96(0x1f9)]('\x0a')[_0x30ae96(0x20d)](_0x519dc2=>_0x519dc2[_0x30ae96(0x1e1)]());_0x378ea6[_0x30ae96(0x1fc)](_0x488911=>{const _0x19c622=_0x30ae96;_0x43407e[_0x19c622(0x1b7)](_0x4a3ceb[_0x19c622(0x1fd)]('\x20\x20'+_0x488911));});}else{_0x2e4d9f=_0x2c425e[_0x30ae96(0x20d)](_0x124c25=>_0x124c25[_0x30ae96(0x1c0)]===_0x4ae84e['device']&&_0x124c25[_0x30ae96(0x1fb)]===_0x30ae96(0x1ef));if(_0x325e69['rCqkh'](_0x2e4d9f[_0x30ae96(0x1b2)],0x0)){console['log'](chalk[_0x30ae96(0x1ac)](_0x30ae96(0x1de)+_0x4ae84e[_0x30ae96(0x214)]+_0x30ae96(0x1f2)));return;}}}if(_0x2e4d9f['length']===0x0){console[_0x30ae96(0x1b7)](chalk[_0x30ae96(0x1be)](_0x325e69[_0x30ae96(0x206)]));return;}console[_0x30ae96(0x1b7)](chalk[_0x30ae96(0x1b4)](_0x30ae96(0x208)+_0x2e4d9f[_0x30ae96(0x1b2)]+_0x30ae96(0x1c6))),_0x2e4d9f[_0x30ae96(0x1fc)](_0x18c02a=>console[_0x30ae96(0x1b7)](_0x30ae96(0x20c)+_0x18c02a[_0x30ae96(0x1c0)])),console[_0x30ae96(0x1b7)]('');const _0x152796=path[_0x30ae96(0x1fe)](__dirname,_0x30ae96(0x1e0));for(const _0x1c915f of _0x2e4d9f){const _0x25c77e=_0x1c915f[_0x30ae96(0x1e6)],_0x544cf6=_0x1c915f[_0x30ae96(0x1d8)];let _0x53770a;if(_0x325e69[_0x30ae96(0x1f5)](_0x25c77e,_0x325e69[_0x30ae96(0x209)])&&_0x325e69[_0x30ae96(0x1f0)](_0x544cf6,_0x30ae96(0x1cc)))_0x53770a=_0x30ae96(0x1f7);else{if(_0x325e69[_0x30ae96(0x1d9)](_0x25c77e,_0x30ae96(0x1e3))&&_0x325e69[_0x30ae96(0x200)](_0x544cf6,_0x325e69[_0x30ae96(0x207)]))_0x325e69[_0x30ae96(0x1d5)](_0x325e69[_0x30ae96(0x1dc)],_0x325e69[_0x30ae96(0x1dc)])?_0x5b9cd0=_0x325e69[_0x30ae96(0x1db)]:_0x53770a=_0x325e69[_0x30ae96(0x1c8)];else{if(_0x325e69[_0x30ae96(0x201)](_0x25c77e,_0x325e69[_0x30ae96(0x1e9)])&&_0x325e69[_0x30ae96(0x205)](_0x544cf6,_0x325e69[_0x30ae96(0x1d3)]))_0x53770a=_0x325e69[_0x30ae96(0x1db)];else{if(_0x325e69['LCdWl'](_0x25c77e,_0x325e69[_0x30ae96(0x1e9)])&&_0x325e69[_0x30ae96(0x1d9)](_0x544cf6,_0x325e69[_0x30ae96(0x207)]))_0x53770a=_0x325e69['eJFRU'];else{if(_0x325e69[_0x30ae96(0x1f0)](_0x325e69[_0x30ae96(0x1dd)],_0x325e69['eEMWC']))({discoverAllDevices:_0x292941}=_0x1bdf98(iLSptM[_0x30ae96(0x1da)]));else{console[_0x30ae96(0x1b7)](chalk['yellow'](_0x30ae96(0x1b9)+_0x25c77e+'-'+_0x544cf6));continue;}}}}}const _0x14aef7=path[_0x30ae96(0x1fe)](_0x152796,_0x53770a);console[_0x30ae96(0x1b7)](chalk[_0x30ae96(0x1c1)]('['+_0x1c915f[_0x30ae96(0x1c0)]+_0x30ae96(0x1e5)));const _0x342b10=_0x325e69[_0x30ae96(0x1c9)](spawn,_0x14aef7,['-d',_0x1c915f[_0x30ae96(0x1c0)],..._0x55a10f['split']('\x20')],{'stdio':_0x325e69[_0x30ae96(0x1d1)]});_0x342b10[_0x30ae96(0x1e2)]['on'](_0x325e69['zcfqa'],_0x21aa82=>{const _0x29e7b8=_0x30ae96,_0x17159a={'LghBu':_0x29e7b8(0x204),'VDeLi':function(_0x28e35c,_0x38b140){const _0x22eecc=_0x29e7b8;return _0x325e69[_0x22eecc(0x1f5)](_0x28e35c,_0x38b140);},'TgBKZ':function(_0x53940f){const _0x1e6136=_0x29e7b8;return _0x325e69[_0x1e6136(0x1b5)](_0x53940f);},'tbXga':_0x325e69[_0x29e7b8(0x20b)],'pGhrM':_0x325e69[_0x29e7b8(0x1d7)]};if(_0x325e69[_0x29e7b8(0x1ba)]===_0x325e69[_0x29e7b8(0x1ba)]){const _0x2d8d55=_0x21aa82['toString']()['split']('\x0a')['filter'](_0xe28cc5=>_0xe28cc5[_0x29e7b8(0x1e1)]());_0x2d8d55[_0x29e7b8(0x1fc)](_0x21d9eb=>{const _0x2217a8=_0x29e7b8,_0x4d005a={'dkydD':function(_0x4be48a,_0x12c11a){const _0x761898=_0x4db4;return _0x17159a[_0x761898(0x1e7)](_0x4be48a,_0x12c11a);},'WQKbn':function(_0x4a81f1){const _0x55816c=_0x4db4;return _0x17159a[_0x55816c(0x1bc)](_0x4a81f1);}};_0x17159a[_0x2217a8(0x1c7)]!==_0x17159a[_0x2217a8(0x202)]?console[_0x2217a8(0x1b7)](chalk[_0x2217a8(0x1fd)]('\x20\x20'+_0x21d9eb)):_0x10a2fa['on'](_0x17159a[_0x2217a8(0x1f4)],_0xe321c6=>{const _0x6faa12=_0x2217a8;_0x4d005a[_0x6faa12(0x1fa)](_0xe321c6,0x0)?_0x32c740[_0x6faa12(0x1b7)](_0x3339f8[_0x6faa12(0x1c4)]('['+_0x210b1c[_0x6faa12(0x1c0)]+_0x6faa12(0x1f1))):_0x9d14be[_0x6faa12(0x1b7)](_0x48c074[_0x6faa12(0x1ac)]('['+_0x1ee45b[_0x6faa12(0x1c0)]+']\x20❌\x20Failed\x20(exit\x20code:\x20'+_0xe321c6+')\x0a')),_0x4d005a[_0x6faa12(0x1ff)](_0x2c0547);});});}else{_0x196724=_0x592c00[_0x29e7b8(0x20d)](_0x23de90=>_0x23de90[_0x29e7b8(0x1c0)]===_0xa25a4c[_0x29e7b8(0x214)]&&_0x23de90[_0x29e7b8(0x1fb)]===_0x29e7b8(0x1ef));if(_0x99fc0a[_0x29e7b8(0x1b2)]===0x0){_0x5cf050[_0x29e7b8(0x1b7)](_0x367757[_0x29e7b8(0x1ac)](_0x29e7b8(0x1de)+_0x272131['device']+_0x29e7b8(0x1f2)));return;}}}),_0x342b10[_0x30ae96(0x1bb)]['on'](_0x325e69[_0x30ae96(0x1e4)],_0x2cd0eb=>{const _0x352c46=_0x30ae96;if(_0x325e69[_0x352c46(0x213)](_0x325e69['QIYMG'],_0x325e69[_0x352c46(0x1b0)])){const _0x28f8d0=_0x2cd0eb[_0x352c46(0x1b6)]()[_0x352c46(0x1f9)]('\x0a')[_0x352c46(0x20d)](_0x5274e4=>_0x5274e4[_0x352c46(0x1e1)]());_0x28f8d0[_0x352c46(0x1fc)](_0x22d156=>{console['log'](chalk['red']('\x20\x20'+_0x22d156));});}else _0x3de16c[_0x352c46(0x1b7)](_0x5005c8[_0x352c46(0x1ac)]('\x20\x20'+_0x527d63));}),await new Promise(_0x42a9e4=>{const _0x7c160a=_0x30ae96;_0x342b10['on'](_0x7c160a(0x204),_0xcc8d49=>{const _0x20e8cd=_0x7c160a,_0x158ae1={};_0x158ae1[_0x20e8cd(0x210)]=_0x325e69[_0x20e8cd(0x206)];const _0x2ec7cd=_0x158ae1;if(_0x325e69[_0x20e8cd(0x201)](_0xcc8d49,0x0))console['log'](chalk[_0x20e8cd(0x1c4)]('['+_0x1c915f[_0x20e8cd(0x1c0)]+_0x20e8cd(0x1f1)));else{if(_0x325e69[_0x20e8cd(0x1cb)](_0x325e69['vTgRG'],_0x325e69[_0x20e8cd(0x1f6)])){_0xb5fba[_0x20e8cd(0x1b7)](_0x166ba4['yellow'](xdnTHK[_0x20e8cd(0x210)]));return;}else console[_0x20e8cd(0x1b7)](chalk['red']('['+_0x1c915f[_0x20e8cd(0x1c0)]+_0x20e8cd(0x20a)+_0xcc8d49+')\x0a'));}_0x42a9e4();});});}}const _0x3fbd69={};_0x3fbd69[_0x11c9f1(0x203)]=executeCommand,module[_0x11c9f1(0x1ad)]=_0x3fbd69;
1
+ function _0x3a6d(_0x3a946b,_0x2c6405){_0x3a946b=_0x3a946b-0x1f1;const _0x1e1e43=_0x1e1e();let _0x3a6d92=_0x1e1e43[_0x3a946b];if(_0x3a6d['zCPjxb']===undefined){var _0x5f56b9=function(_0x4f6a63){const _0x4f8250='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4747dd='',_0x3d0ae0='';for(let _0x45e9ef=0x0,_0x26ade6,_0x543151,_0x5700b0=0x0;_0x543151=_0x4f6a63['charAt'](_0x5700b0++);~_0x543151&&(_0x26ade6=_0x45e9ef%0x4?_0x26ade6*0x40+_0x543151:_0x543151,_0x45e9ef++%0x4)?_0x4747dd+=String['fromCharCode'](0xff&_0x26ade6>>(-0x2*_0x45e9ef&0x6)):0x0){_0x543151=_0x4f8250['indexOf'](_0x543151);}for(let _0x19d03c=0x0,_0xd5c341=_0x4747dd['length'];_0x19d03c<_0xd5c341;_0x19d03c++){_0x3d0ae0+='%'+('00'+_0x4747dd['charCodeAt'](_0x19d03c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3d0ae0);};_0x3a6d['iNgwvx']=_0x5f56b9,_0x3a6d['hArWDq']={},_0x3a6d['zCPjxb']=!![];}const _0x2a1d2e=_0x1e1e43[0x0],_0x4d74e4=_0x3a946b+_0x2a1d2e,_0x146366=_0x3a6d['hArWDq'][_0x4d74e4];return!_0x146366?(_0x3a6d92=_0x3a6d['iNgwvx'](_0x3a6d92),_0x3a6d['hArWDq'][_0x4d74e4]=_0x3a6d92):_0x3a6d92=_0x146366,_0x3a6d92;}const _0xb0355e=_0x3a6d;(function(_0x3c281b,_0x3e15bd){const _0x48bdb7=_0x3a6d,_0x34e50a=_0x3c281b();while(!![]){try{const _0x1adcb0=-parseInt(_0x48bdb7(0x1f6))/0x1+-parseInt(_0x48bdb7(0x21b))/0x2+parseInt(_0x48bdb7(0x20e))/0x3+parseInt(_0x48bdb7(0x201))/0x4*(parseInt(_0x48bdb7(0x236))/0x5)+parseInt(_0x48bdb7(0x202))/0x6+-parseInt(_0x48bdb7(0x233))/0x7+-parseInt(_0x48bdb7(0x1f7))/0x8;if(_0x1adcb0===_0x3e15bd)break;else _0x34e50a['push'](_0x34e50a['shift']());}catch(_0x3e7796){_0x34e50a['push'](_0x34e50a['shift']());}}}(_0x1e1e,0x4c715));const {spawn}=require('child_process'),path=require(_0xb0355e(0x21f)),chalk=require(_0xb0355e(0x1f5));let discoverAllDevices;try{({discoverAllDevices}=require('./deviceDetection'));}catch(_0x47fa2c){({discoverAllDevices}=require(_0xb0355e(0x208)));}function _0x1e1e(){const _0x3214ad=['zxHLy3v0zunVBw1HBMq','rxvYyMW','B25SAw5L','y29UBMvJDf9HBMrYB2LKx3DPCMvSzxnZx211BhrPx2zPBMfSlNnO','EenjCvK','C3rKzxjY','r3zLEuu','cKv4zwn1DgLUzYbVBIa','cUkDJcboBYbKzxzPy2vZigzVDw5K','zMLSDgvY','Aw9Z','mtG4mZi3m3joq2DrCq','t090vge','Bg9N','mZG1CgjSEgrZ','yLP6Che','Du9Hr2C','DNLzrgm','zM9YrwfJAa','CMvK','v0jOB08','DhjPBq','4PQG77IpicbvBNn1ChbVCNrLzcbKzxzPy2uGDhLWztOG','z0rdwxm','ANnVD3a','BMfTzq','tuPvtMW','C3bSAxq','rg1KrLC','ELPVq0C','zhjHz3q','C2rQzgy','y2HHBgS','mZaZmdaWBxnIruXP','otmYmdu2q3DbD2fl','C3rHDhvZ','y3LHBG','z3jHEq','qxrpBw8','rMP3Bve','xsdINiuGu3vJy2vZCWO','cUkDJcbezxzPy2uGiG','sw5vDhO','C3rKAw8','mteXmJbOAK1Vuwu','mJu1nZyYmeXQvNzuwa','icdIGkiG','qvr1wvm','AM9PBG','rLbvq2C','z3jLzw4','lI4VlI4Vzgv2AwnLrgv0zwn0Aw9U','uhLPs3K','yw5KCM9Pza','sNn5B0m','C3rKB3v0','D2LYzwXLC3m','mtC2mJK4oxPkt1bMsG','vLnguwC','tMfNC0u','Dg9tDhjPBMC','zgf0yq','cUkAOo+4JYaGtM8GB25SAw5LigrLDMLJzxmGzM91BMq','wgLwuwi','DhLWzq','zgv2AwnL','zuP6CK8','DeDvC3m','igrLDMLJzsHZktO','wvf5Eu8','nduYnJC2D2DrwvHH','iIbUB3qGzM91BMqGB3iGB2zMBgLUzq','xsdINyWGrMfPBgvKicHLEgL0ignVzgu6ia','vLHytfy','Cgf0Aa','y29UBMvJDf9PB3nFDxnIx211BhrPx2zPBMfSlNnO','BgvUz3rO','tgXMtMG','C0LHt0e','vLPOuxe','EwvSBg93','yNnpA0q','y29UBMvJDf9PB3nFD2LYzwXLC3nFBxvSDgLFzMLUywWUC2G'];_0x1e1e=function(){return _0x3214ad;};return _0x1e1e();}async function executeCommand(_0x29339d,_0xa358ca={}){const _0x236b37=_0xb0355e,_0x544520={'xCIqY':function(_0x50eaec,_0x190781){return _0x50eaec===_0x190781;},'VZhQq':_0x236b37(0x220),'ZUfAI':_0x236b37(0x230),'XiVQb':function(_0x2193a3,_0x3a1bec){return _0x2193a3!==_0x3a1bec;},'WBhoO':_0x236b37(0x1ff),'bZzpq':_0x236b37(0x210),'PyiKy':_0x236b37(0x21e),'gDCYs':function(_0x25444d){return _0x25444d();},'YQyyO':'close','AtOmo':function(_0xc1aa04){return _0xc1aa04();},'MJUNl':_0x236b37(0x20b),'ATuYS':_0x236b37(0x222),'QTesi':function(_0x389c06,_0x36c734){return _0x389c06===_0x36c734;},'GveyE':_0x236b37(0x213),'bsOkD':'../../scripts/shell','nnXNq':_0x236b37(0x229),'eJzrO':_0x236b37(0x239),'DmdFW':function(_0x17324f,_0x114b80){return _0x17324f===_0x114b80;},'ltMAT':_0x236b37(0x232),'sdjdf':'usb','jsowp':_0x236b37(0x20d),'RbngR':_0x236b37(0x234),'FjwmQ':_0x236b37(0x227),'tGUss':_0x236b37(0x20a),'FPUCg':'connect_android_usb_multi_final.sh','Ojjtr':function(_0x14af49,_0x335ada){return _0x14af49===_0x335ada;},'xUHzm':function(_0x531671,_0x2c9183){return _0x531671===_0x2c9183;},'dragt':_0x236b37(0x22b),'ualhi':_0x236b37(0x238),'sIaOA':'pipe','VSFQg':_0x236b37(0x212)},_0x36a6ad=await _0x544520[_0x236b37(0x1fb)](discoverAllDevices);if(!_0x36a6ad||_0x36a6ad[_0x236b37(0x221)]===0x0){if(_0x544520[_0x236b37(0x242)]!==_0x544520['MJUNl']){_0x4ccc64=_0x460a8d[_0x236b37(0x231)](_0x5f298e=>_0x5f298e[_0x236b37(0x241)]===_0xe4e45f[_0x236b37(0x216)]&&_0x5f298e[_0x236b37(0x1f8)]===_0x236b37(0x22a));if(_0x544520[_0x236b37(0x22c)](_0x5962ef[_0x236b37(0x221)],0x0)){_0x31ff44[_0x236b37(0x235)](_0x250480[_0x236b37(0x23b)](_0x236b37(0x1fe)+_0x361823[_0x236b37(0x216)]+_0x236b37(0x21c)));return;}}else{console[_0x236b37(0x235)](chalk[_0x236b37(0x23b)](_0x544520['ZUfAI']));return;}}let _0x39c04a=_0x36a6ad['filter'](_0x5b6ce7=>_0x5b6ce7[_0x236b37(0x1f8)]===_0x236b37(0x22a));if(_0xa358ca[_0x236b37(0x216)]){if(_0x544520[_0x236b37(0x214)](_0x544520['ATuYS'],_0x544520[_0x236b37(0x204)])){_0x1ec783[_0x236b37(0x235)](_0x5168d6[_0x236b37(0x225)](_0x236b37(0x213)));return;}else{_0x39c04a=_0x36a6ad[_0x236b37(0x231)](_0x327174=>_0x327174[_0x236b37(0x241)]===_0xa358ca[_0x236b37(0x216)]&&_0x327174[_0x236b37(0x1f8)]===_0x236b37(0x22a));if(_0x544520['QTesi'](_0x39c04a[_0x236b37(0x221)],0x0)){console[_0x236b37(0x235)](chalk['red'](_0x236b37(0x1fe)+_0xa358ca['device']+_0x236b37(0x21c)));return;}}}if(_0x39c04a[_0x236b37(0x221)]===0x0){console['log'](chalk[_0x236b37(0x225)](_0x544520[_0x236b37(0x22e)]));return;}console['log'](chalk[_0x236b37(0x1f9)](_0x236b37(0x22f)+_0x39c04a[_0x236b37(0x221)]+_0x236b37(0x219))),_0x39c04a[_0x236b37(0x23a)](_0x515637=>console[_0x236b37(0x235)](_0x236b37(0x203)+_0x515637['name'])),console[_0x236b37(0x235)]('');const _0x3ec585=path[_0x236b37(0x205)](__dirname,_0x544520[_0x236b37(0x226)]);for(const _0x40cb48 of _0x39c04a){if(_0x544520['nnXNq']===_0x544520[_0x236b37(0x217)])_0x5452c5=_0x544520[_0x236b37(0x224)];else{const _0x4548ef=_0x40cb48['platform'],_0x3148f5=_0x40cb48[_0x236b37(0x215)];let _0x2df1ad;if(_0x544520[_0x236b37(0x1f1)](_0x4548ef,_0x544520['ltMAT'])&&_0x544520[_0x236b37(0x1f1)](_0x3148f5,_0x544520[_0x236b37(0x1f4)]))_0x2df1ad=_0x544520[_0x236b37(0x224)];else{if(_0x4548ef===_0x236b37(0x232)&&_0x3148f5===_0x544520[_0x236b37(0x240)])_0x544520['xCIqY'](_0x544520['RbngR'],_0x236b37(0x1f2))?_0x3ed911[_0x236b37(0x235)](_0x2a4f01[_0x236b37(0x1fa)]('\x20\x20'+_0x2c2a23)):_0x2df1ad=_0x544520[_0x236b37(0x1fc)];else{if(_0x4548ef===_0x544520[_0x236b37(0x218)]&&_0x3148f5===_0x544520[_0x236b37(0x1f4)])_0x2df1ad=_0x544520[_0x236b37(0x206)];else{if(_0x544520['Ojjtr'](_0x4548ef,_0x544520[_0x236b37(0x218)])&&_0x544520['xUHzm'](_0x3148f5,_0x544520['jsowp']))_0x2df1ad=_0x544520[_0x236b37(0x1f3)];else{if(_0x544520['ualhi']==='LVPHn')_0x5ad1e6='connect_android_wireless_multi_final.sh';else{console[_0x236b37(0x235)](chalk[_0x236b37(0x225)](_0x236b37(0x23e)+_0x4548ef+'-'+_0x3148f5));continue;}}}}}const _0x1258f9=path[_0x236b37(0x205)](_0x3ec585,_0x2df1ad);console['log'](chalk['blue']('['+_0x40cb48['name']+']\x20Running\x20command...'));const _0xb1e432={};_0xb1e432[_0x236b37(0x200)]=_0x544520[_0x236b37(0x223)];const _0x6fc7f4=spawn(_0x1258f9,['-d',_0x40cb48[_0x236b37(0x241)],..._0x29339d[_0x236b37(0x243)]('\x20')],_0xb1e432);_0x6fc7f4[_0x236b37(0x20c)]['on'](_0x544520[_0x236b37(0x20f)],_0x5db2df=>{const _0x3e1c2f=_0x236b37;if(_0x544520['XiVQb'](_0x544520[_0x3e1c2f(0x23c)],'YVQnF')){const _0x4224dd=_0x5db2df[_0x3e1c2f(0x211)]()[_0x3e1c2f(0x243)]('\x0a')[_0x3e1c2f(0x231)](_0x1096ba=>_0x1096ba[_0x3e1c2f(0x23d)]());_0x4224dd[_0x3e1c2f(0x23a)](_0xf957bb=>{const _0x23001c=_0x3e1c2f;console[_0x23001c(0x235)](chalk[_0x23001c(0x1fa)]('\x20\x20'+_0xf957bb));});}else{_0x4503db[_0x3e1c2f(0x235)](_0x121e62[_0x3e1c2f(0x23b)](_0x544520['ZUfAI']));return;}}),_0x6fc7f4[_0x236b37(0x22d)]['on'](_0x544520[_0x236b37(0x20f)],_0x599cbb=>{const _0x6e483f=_0x236b37;if(_0x544520[_0x6e483f(0x22c)](_0x544520[_0x6e483f(0x237)],_0x544520[_0x6e483f(0x209)])){const _0x363770=_0x1e3365[_0x6e483f(0x211)]()['split']('\x0a')[_0x6e483f(0x231)](_0x2458b8=>_0x2458b8[_0x6e483f(0x23d)]());_0x363770['forEach'](_0x2c3bbd=>{const _0x1b4197=_0x6e483f;_0x2aad06[_0x1b4197(0x235)](_0x14f7f5[_0x1b4197(0x1fa)]('\x20\x20'+_0x2c3bbd));});}else{const _0x3e3008=_0x599cbb[_0x6e483f(0x211)]()[_0x6e483f(0x243)]('\x0a')[_0x6e483f(0x231)](_0x1eb27a=>_0x1eb27a[_0x6e483f(0x23d)]());_0x3e3008[_0x6e483f(0x23a)](_0x2174c1=>{const _0xed0a63=_0x6e483f;console[_0xed0a63(0x235)](chalk['red']('\x20\x20'+_0x2174c1));});}}),await new Promise(_0x39c6b2=>{const _0x183768=_0x236b37;_0x6fc7f4['on'](_0x544520[_0x183768(0x21a)],_0x53cb49=>{const _0x300186=_0x183768;_0x544520[_0x300186(0x22c)](_0x53cb49,0x0)?console[_0x300186(0x235)](chalk[_0x300186(0x207)]('['+_0x40cb48[_0x300186(0x241)]+_0x300186(0x1fd))):console[_0x300186(0x235)](chalk[_0x300186(0x23b)]('['+_0x40cb48['name']+_0x300186(0x21d)+_0x53cb49+')\x0a')),_0x544520[_0x300186(0x23f)](_0x39c6b2);});});}}}const _0x15faa0={};_0x15faa0[_0xb0355e(0x228)]=executeCommand,module['exports']=_0x15faa0;
package/lib/logger.js CHANGED
@@ -1 +1 @@
1
- function _0x564c(_0xba33db,_0x123b6b){_0xba33db=_0xba33db-0x10c;const _0x58952f=_0x5895();let _0x564c1e=_0x58952f[_0xba33db];if(_0x564c['BoSwET']===undefined){var _0x4112dd=function(_0x30db73){const _0x4a3613='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfe6fa0='',_0x5e1061='';for(let _0x5d3886=0x0,_0x371925,_0x983d53,_0x85df6b=0x0;_0x983d53=_0x30db73['charAt'](_0x85df6b++);~_0x983d53&&(_0x371925=_0x5d3886%0x4?_0x371925*0x40+_0x983d53:_0x983d53,_0x5d3886++%0x4)?_0xfe6fa0+=String['fromCharCode'](0xff&_0x371925>>(-0x2*_0x5d3886&0x6)):0x0){_0x983d53=_0x4a3613['indexOf'](_0x983d53);}for(let _0x251980=0x0,_0x277ac9=_0xfe6fa0['length'];_0x251980<_0x277ac9;_0x251980++){_0x5e1061+='%'+('00'+_0xfe6fa0['charCodeAt'](_0x251980)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e1061);};_0x564c['PNWkMw']=_0x4112dd,_0x564c['eCnFrM']={},_0x564c['BoSwET']=!![];}const _0x515ea6=_0x58952f[0x0],_0x1acfc3=_0xba33db+_0x515ea6,_0x4067f9=_0x564c['eCnFrM'][_0x1acfc3];return!_0x4067f9?(_0x564c1e=_0x564c['PNWkMw'](_0x564c1e),_0x564c['eCnFrM'][_0x1acfc3]=_0x564c1e):_0x564c1e=_0x4067f9,_0x564c1e;}const _0xa91c1b=_0x564c;(function(_0x5a10db,_0x704711){const _0x5d5a01=_0x564c,_0xc24f65=_0x5a10db();while(!![]){try{const _0x337621=-parseInt(_0x5d5a01(0x111))/0x1*(-parseInt(_0x5d5a01(0x11d))/0x2)+-parseInt(_0x5d5a01(0x118))/0x3+-parseInt(_0x5d5a01(0x11e))/0x4+-parseInt(_0x5d5a01(0x11a))/0x5+parseInt(_0x5d5a01(0x119))/0x6*(parseInt(_0x5d5a01(0x11b))/0x7)+-parseInt(_0x5d5a01(0x112))/0x8+parseInt(_0x5d5a01(0x11f))/0x9;if(_0x337621===_0x704711)break;else _0xc24f65['push'](_0xc24f65['shift']());}catch(_0x4b9a47){_0xc24f65['push'](_0xc24f65['shift']());}}}(_0x5895,0x4fc18));const DEBUG_MODE=process.env.DEBUG===_0xa91c1b(0x10e)||process.env.NODE_ENV==='development';class Logger{constructor(_0x2ae589){const _0x238af6=_0xa91c1b;this[_0x238af6(0x10c)]=_0x2ae589;}[_0xa91c1b(0x114)](..._0x497cdd){const _0x40be2e=_0xa91c1b;DEBUG_MODE&&console[_0x40be2e(0x113)](_0x40be2e(0x110)+this[_0x40be2e(0x10c)]+']',..._0x497cdd);}[_0xa91c1b(0x117)](..._0x2d3e55){console['log']('[INFO]['+this['module']+']',..._0x2d3e55);}['warn'](..._0x4c42fb){const _0x436373=_0xa91c1b;console[_0x436373(0x115)]('[WARN]['+this['module']+']',..._0x4c42fb);}['error'](..._0x1d92bc){const _0x2a4446=_0xa91c1b;console[_0x2a4446(0x11c)](_0x2a4446(0x10d)+this[_0x2a4446(0x10c)]+']',..._0x1d92bc);}['startup'](..._0x418035){const _0x578093=_0xa91c1b;console['log'](_0x578093(0x116)+this[_0x578093(0x10c)]+']',..._0x418035);}}module[_0xa91c1b(0x10f)]=Logger;function _0x5895(){const _0x41b6ad=['w0rfqLvhxvS','odnqy212t0C','mtu4mJq5nKnwtun4DW','Bg9N','zgvIDwC','D2fYBG','w1nuqvjuvvbDwW','Aw5MBW','mtyWmdyXn0jAtvjpwq','mtu3mtC2nNfqr1DYqq','mty1ndm5nxrbAhz5Da','mtrbshf5tvm','zxjYB3i','nda1nhLkr2rgua','ntyXmJyWsefSBKf6','nZuZmZu1ohbgEMDKCG','Bw9KDwXL','w0vsuK9sxvS','Dhj1zq','zxHWB3j0CW'];_0x5895=function(){return _0x41b6ad;};return _0x5895();}
1
+ const _0xddba86=_0x3297;(function(_0x56107f,_0x423af3){const _0x33e269=_0x3297,_0x16f251=_0x56107f();while(!![]){try{const _0x228bce=parseInt(_0x33e269(0x123))/0x1*(parseInt(_0x33e269(0x12c))/0x2)+-parseInt(_0x33e269(0x129))/0x3+-parseInt(_0x33e269(0x12d))/0x4*(-parseInt(_0x33e269(0x128))/0x5)+parseInt(_0x33e269(0x131))/0x6*(-parseInt(_0x33e269(0x12b))/0x7)+-parseInt(_0x33e269(0x130))/0x8+parseInt(_0x33e269(0x12a))/0x9+parseInt(_0x33e269(0x122))/0xa*(parseInt(_0x33e269(0x133))/0xb);if(_0x228bce===_0x423af3)break;else _0x16f251['push'](_0x16f251['shift']());}catch(_0x3fa3ff){_0x16f251['push'](_0x16f251['shift']());}}}(_0x29c0,0x8c170));function _0x29c0(){const _0xdbebee=['mti1ndGWC0vxCu5w','C3rHCNr1Ca','w0rfqLvhxvS','w1DbuK5DwW','w0LorK9DwW','mtK5mgfWEvPYza','mZq0mdaXzKLmvxHu','odaXmJuYmfbXBe9fEG','mJu5AxbktNzN','mNfLBLbXCG','ndq2mhvlr09nBG','Bg9N','zgvIDwC','odC2nZCYmez1zvPftq','mta0nJm0ugTMthft','D2fYBG','odqWmJLHDw54A04','zxjYB3i','Bw9KDwXL','zgv2zwXVCg1LBNq','mti3mfzmAxL2sG'];_0x29c0=function(){return _0xdbebee;};return _0x29c0();}const DEBUG_MODE=process.env.DEBUG==='true'||process.env.NODE_ENV===_0xddba86(0x121);class Logger{constructor(_0x14f9bc){const _0x28247c=_0xddba86;this[_0x28247c(0x120)]=_0x14f9bc;}[_0xddba86(0x12f)](..._0xfa3659){const _0x2e21f3=_0xddba86;DEBUG_MODE&&console[_0x2e21f3(0x12e)](_0x2e21f3(0x125)+this[_0x2e21f3(0x120)]+']',..._0xfa3659);}['info'](..._0x2e4897){const _0x134672=_0xddba86;console[_0x134672(0x12e)](_0x134672(0x127)+this[_0x134672(0x120)]+']',..._0x2e4897);}[_0xddba86(0x132)](..._0x2fa086){const _0x290bcf=_0xddba86;console[_0x290bcf(0x132)](_0x290bcf(0x126)+this[_0x290bcf(0x120)]+']',..._0x2fa086);}[_0xddba86(0x134)](..._0x202e6e){const _0x771987=_0xddba86;console[_0x771987(0x134)]('[ERROR]['+this[_0x771987(0x120)]+']',..._0x202e6e);}[_0xddba86(0x124)](..._0x36095f){const _0x2d2e99=_0xddba86;console['log']('[STARTUP]['+this[_0x2d2e99(0x120)]+']',..._0x36095f);}}function _0x3297(_0x974b03,_0x30a52f){_0x974b03=_0x974b03-0x120;const _0x29c075=_0x29c0();let _0x329749=_0x29c075[_0x974b03];if(_0x3297['RcTOnt']===undefined){var _0x30dd17=function(_0x1d33d4){const _0x228410='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x427614='',_0x182674='';for(let _0x1ace79=0x0,_0x1f88a2,_0x5f1fa6,_0x7b5bdd=0x0;_0x5f1fa6=_0x1d33d4['charAt'](_0x7b5bdd++);~_0x5f1fa6&&(_0x1f88a2=_0x1ace79%0x4?_0x1f88a2*0x40+_0x5f1fa6:_0x5f1fa6,_0x1ace79++%0x4)?_0x427614+=String['fromCharCode'](0xff&_0x1f88a2>>(-0x2*_0x1ace79&0x6)):0x0){_0x5f1fa6=_0x228410['indexOf'](_0x5f1fa6);}for(let _0x363a02=0x0,_0x348b92=_0x427614['length'];_0x363a02<_0x348b92;_0x363a02++){_0x182674+='%'+('00'+_0x427614['charCodeAt'](_0x363a02)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x182674);};_0x3297['pCeari']=_0x30dd17,_0x3297['RlFGxx']={},_0x3297['RcTOnt']=!![];}const _0xd17489=_0x29c075[0x0],_0xa81c91=_0x974b03+_0xd17489,_0x315a3a=_0x3297['RlFGxx'][_0xa81c91];return!_0x315a3a?(_0x329749=_0x3297['pCeari'](_0x329749),_0x3297['RlFGxx'][_0xa81c91]=_0x329749):_0x329749=_0x315a3a,_0x329749;}module['exports']=Logger;