This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exec.js
1 lines (1 loc) · 5.53 KB
/
exec.js
1
const _0x343a=['Please\x20Enter\x20your\x20ClientID:\x20','config.json','details','Please\x20Enter\x20`largeImageKey`:\x20','\x20Discord-RPC\x20','blue','yellow','state','\x20Got\x20state\x20as\x20`','\x20Got\x20smallImageKey\x20as\x20`','toLowerCase','[APP]:','Please\x20Enter\x20`details`:\x20','largeImageKey','log','child_process','red','Script\x20Loaded!','error','\x20Got\x20details\x20as\x20`','Do\x20you\x20want\x20to\x20have\x20TimeStamp?\x20[Y/N]:\x20','smallImageKey','Please\x20Enter\x20`smallImageText`:\x20','Please\x20Enter\x20`state`:\x20','\x20Got\x20Client\x20ID\x20as\x20`','\x20Got\x20largeImageText\x20as\x20`','keyword','stdout','writeFileSync','timestamp','stdin','readFile','largeImageText','question','Please\x20Enter\x20`largeImageText`:\x20','Please\x20Enter\x20`smallImageKey`:\x20','bgBlue','smallImageText','close','RPC','green','orange','purple','\x20Got\x20Timestamp\x20Enabled','executed','createInterface','\x20Got\x20largeImageKey\x20as\x20`','clientId','\x20Created\x20By\x20','chalk','./config.json','./index.js','exit'];(function(_0x3a61ce,_0x445644){const _0x343a2f=function(_0x5ddb06){while(--_0x5ddb06){_0x3a61ce['push'](_0x3a61ce['shift']());}};_0x343a2f(++_0x445644);}(_0x343a,0x13f));const _0x5ddb=function(_0x3a61ce,_0x445644){_0x3a61ce=_0x3a61ce-0xf8;let _0x343a2f=_0x343a[_0x3a61ce];return _0x343a2f;};const _0x4062bc=_0x5ddb,readline=require('readline');var childProcess=require(_0x4062bc(0x106));const chalk=require(_0x4062bc(0x128)),{gray}=require(_0x4062bc(0x128)),fs=require('fs'),cfg=require(_0x4062bc(0x129));function runScript(_0x3f6643,_0x3af378){const _0x593557=_0x4062bc;var _0x2fdef1=![],_0x4dbb8b=childProcess['fork'](_0x3f6643);_0x4dbb8b['on'](_0x593557(0x109),function(_0x5b7690){if(_0x2fdef1)return;_0x2fdef1=!![],_0x3af378(_0x5b7690);}),_0x4dbb8b['on'](_0x593557(0x12b),function(_0x2b256f){if(_0x2fdef1)return;_0x2fdef1=!![];var _0x3d6a0e=_0x2b256f===0x0?null:new Error('exit\x20code\x20'+_0x2b256f);_0x3af378(_0x3d6a0e);});}console['log'](chalk[_0x4062bc(0x11f)]('-')+chalk[_0x4062bc(0xfd)]('-')+chalk['keyword']('orange')('-')+chalk[_0x4062bc(0x107)]('-')+chalk[_0x4062bc(0x111)](_0x4062bc(0x121))('-')+chalk[_0x4062bc(0xfc)](_0x4062bc(0xfb))+chalk[_0x4062bc(0x11f)]('-')+chalk[_0x4062bc(0xfd)]('-')+chalk['keyword']('orange')('-')+chalk[_0x4062bc(0x107)]('-')+chalk[_0x4062bc(0x111)]('purple')('-')),console[_0x4062bc(0x105)](chalk[_0x4062bc(0x11f)]('-')+chalk[_0x4062bc(0xfd)]('-')+chalk['keyword'](_0x4062bc(0x120))('-')+chalk[_0x4062bc(0x107)]('-')+chalk[_0x4062bc(0x111)](_0x4062bc(0x121))('-')+chalk[_0x4062bc(0xfc)](_0x4062bc(0x127))+chalk[_0x4062bc(0x11f)]('-')+chalk[_0x4062bc(0xfd)]('-')+chalk[_0x4062bc(0x111)](_0x4062bc(0x120))('-')+chalk[_0x4062bc(0x107)]('-')+chalk[_0x4062bc(0x111)](_0x4062bc(0x121))('-')),console[_0x4062bc(0x105)](chalk[_0x4062bc(0x11b)]('Github\x20Repo:')+chalk[_0x4062bc(0xfc)]('\x20http://github.com/EhsanFox/Discord-RPC')),console['log'](chalk[_0x4062bc(0x11f)]('-')+chalk[_0x4062bc(0xfd)]('-')+chalk['keyword'](_0x4062bc(0x120))('-')+chalk[_0x4062bc(0x107)]('-')+chalk[_0x4062bc(0x111)](_0x4062bc(0x121))('-'));const rl=readline[_0x4062bc(0x124)]({'input':process[_0x4062bc(0x115)],'output':process[_0x4062bc(0x112)]});if(cfg[_0x4062bc(0x123)])return runScript('./index.js',function(_0x389cab){const _0x46ab9d=_0x4062bc;if(_0x389cab)throw _0x389cab;console[_0x46ab9d(0x105)](_0x46ab9d(0x108));});else rl['question'](_0x4062bc(0x12c),_0x3f4558=>{const _0x5e9ebe=_0x4062bc;console[_0x5e9ebe(0x105)](gray(_0x5e9ebe(0x102))+_0x5e9ebe(0x10f)+_0x3f4558+'`'),rl[_0x5e9ebe(0x118)](_0x5e9ebe(0x103),_0x1b8044=>{const _0x55f5ae=_0x5e9ebe;console['log'](gray(_0x55f5ae(0x102))+_0x55f5ae(0x10a)+_0x1b8044+'`'),rl[_0x55f5ae(0x118)](_0x55f5ae(0x10e),_0x2ac412=>{const _0x57fb72=_0x55f5ae;console[_0x57fb72(0x105)](gray('[APP]:')+_0x57fb72(0xff)+_0x2ac412+'`'),rl[_0x57fb72(0x118)](_0x57fb72(0xfa),_0x3f6752=>{const _0x31264f=_0x57fb72;console['log'](gray(_0x31264f(0x102))+_0x31264f(0x125)+_0x3f6752+'`'),rl['question'](_0x31264f(0x119),_0x3f98f5=>{const _0x5310cd=_0x31264f;console[_0x5310cd(0x105)](gray(_0x5310cd(0x102))+_0x5310cd(0x110)+_0x3f98f5+'`'),rl[_0x5310cd(0x118)](_0x5310cd(0x11a),_0x3daf64=>{const _0x307f76=_0x5310cd;console[_0x307f76(0x105)](gray(_0x307f76(0x102))+_0x307f76(0x100)+_0x3daf64+'`'),rl[_0x307f76(0x118)](_0x307f76(0x10d),_0x1fa4bf=>{const _0x1c3da6=_0x307f76;console[_0x1c3da6(0x105)](gray('[APP]:')+'\x20Got\x20smallImageText\x20as\x20`'+_0x1fa4bf+'`'),rl[_0x1c3da6(0x118)](_0x1c3da6(0x10b),_0x223b31=>{const _0x1829b1=_0x1c3da6;let _0x73c7f2;_0x223b31[_0x1829b1(0x101)]()=='y'?(console[_0x1829b1(0x105)](gray('[APP]:')+_0x1829b1(0x122)),_0x73c7f2=!![]):(console[_0x1829b1(0x105)](gray('[APP]:')+'\x20Considered\x20that\x20as\x20a\x20No!'),_0x73c7f2=![]),fs[_0x1829b1(0x116)](_0x1829b1(0xf8),(_0x508631,_0x4f1f98)=>{const _0x3d4892=_0x1829b1;if(_0x508631)throw _0x508631;let _0x2c311d=JSON['parse'](_0x4f1f98);_0x2c311d[_0x3d4892(0x126)]=_0x3f4558,_0x2c311d[_0x3d4892(0x11e)][_0x3d4892(0xf9)]=_0x1b8044,_0x2c311d[_0x3d4892(0x11e)][_0x3d4892(0xfe)]=_0x2ac412,_0x2c311d['RPC'][_0x3d4892(0x104)]=_0x3f6752,_0x2c311d[_0x3d4892(0x11e)][_0x3d4892(0x117)]=_0x3f98f5,_0x2c311d['RPC'][_0x3d4892(0x10c)]=_0x3daf64,_0x2c311d[_0x3d4892(0x11e)][_0x3d4892(0x11c)]=_0x1fa4bf,_0x2c311d[_0x3d4892(0x11e)][_0x3d4892(0x114)]=_0x73c7f2,_0x2c311d[_0x3d4892(0x123)]=!![];let _0x46889d=JSON['stringify'](_0x2c311d);fs[_0x3d4892(0x113)](_0x3d4892(0xf8),_0x46889d);}),runScript(_0x1829b1(0x12a),function(_0x2b0c1f){const _0x3e9a01=_0x1829b1;if(_0x2b0c1f)throw _0x2b0c1f;console[_0x3e9a01(0x105)]('Script\x20Loaded!');}),rl[_0x1829b1(0x11d)]();});});});});});});});});