This repository was archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
1 lines (1 loc) · 5.55 KB
/
app.js
File metadata and controls
1 lines (1 loc) · 5.55 KB
1
const a0_0xc28b=['constructor','mkdir','apply','1036461EwWUrG','connection','.js','docker\x20exec\x20-t\x20mctest\x20screen\x20-S\x20Minecraft-Server\x20-p\x200\x20-X\x20stuff\x20\x22stop^M\x22','/console','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','docker\x20exec\x20-t\x20mctest\x20screen\x20-S\x20Minecraft-Server\x20-p\x200\x20-X\x20stuff\x20\x22','error:\x20','699919HKzeCt','restart','start','/server/plugins','emit','Starting\x20Server','/server','docker\x20restart\x20mctest','log','Server','Restarting\x20Server','get','command','express','action','/styles','/assets/website/assets/style/','docker\x20exec\x20-t\x20mctest\x20screen\x20-S\x20Minecraft-Server\x20-p\x200\x20-X\x20stuff\x20\x22save-all^M\x22','^M\x22','stderr:\x20','http','sendFile','/server/logs','existsSync','style','4PrAxNo','77823ISowZH','/assets/website/assets/scripts/','Creating\x20Server\x20please\x20wait...','listen','/server/logs/latest.log','tail','/scripts','65486FMAskc','writeFileSync','.css','899299uwIbuL','return\x20/\x22\x20+\x20this\x20+\x20\x22/','action_result','/server/:/server\x20-p\x2025565:25565\x20-e\x20RAM=4G\x20zombymediaic/papermc:1.16.5-java16','1263911NJUaTa','Stopping\x20Server','watch','1160840ZDrtFa','Tail','query','Remote\x20command\x20executed:\x20'];const a0_0x763710=a0_0x5098;(function(_0x2c40e2,_0x324765){const _0x850526=a0_0x5098;while(!![]){try{const _0x21c05c=-parseInt(_0x850526(0x1dd))+-parseInt(_0x850526(0x1cf))+parseInt(_0x850526(0x1e0))+-parseInt(_0x850526(0x1d9))+parseInt(_0x850526(0x1ef))+parseInt(_0x850526(0x1e7))+-parseInt(_0x850526(0x1d6))*-parseInt(_0x850526(0x1ce));if(_0x21c05c===_0x324765)break;else _0x2c40e2['push'](_0x2c40e2['shift']());}catch(_0x5c0616){_0x2c40e2['push'](_0x2c40e2['shift']());}}}(a0_0xc28b,0xe0273));const a0_0xa7e903=function(){let _0x120ea0=!![];return function(_0x1fbfad,_0x27089e){const _0x355796=_0x120ea0?function(){const _0x5b24db=a0_0x5098;if(_0x27089e){const _0x9464f0=_0x27089e[_0x5b24db(0x1e6)](_0x1fbfad,arguments);return _0x27089e=null,_0x9464f0;}}:function(){};return _0x120ea0=![],_0x355796;};}(),a0_0x3cd46f=a0_0xa7e903(this,function(){const _0x2f4ed0=function(){const _0x54c65b=a0_0x5098,_0x9dfedf=_0x2f4ed0[_0x54c65b(0x1e4)](_0x54c65b(0x1da))()[_0x54c65b(0x1e4)](_0x54c65b(0x1ec));return!_0x9dfedf['test'](a0_0x3cd46f);};return _0x2f4ed0();});a0_0x3cd46f();'use strict';const app=require(a0_0x763710(0x1c2))(),http=require(a0_0x763710(0x1c9))[a0_0x763710(0x1be)](app),io=require('socket.io')(http),tail=require(a0_0x763710(0x1d4))[a0_0x763710(0x1e1)],fs=require('fs'),{exec}=require('child_process');function a0_0x5098(_0x452718,_0x56cc91){_0x452718=_0x452718-0x1be;let _0x969916=a0_0xc28b[_0x452718];return _0x969916;}let activeWatcher=!0x1;function executeCommand(_0x12e576,_0x1d11ba){exec(_0x1d11ba,(_0x2cefe8,_0x5a22fe,_0x2e906e)=>{const _0x5797ae=a0_0x5098;_0x2cefe8?console[_0x5797ae(0x1f7)](_0x5797ae(0x1ee)+_0x2cefe8['message']):_0x2e906e&&console['log'](_0x5797ae(0x1c8)+_0x2e906e);});}fs[a0_0x763710(0x1cc)](__dirname+'/server')||fs[a0_0x763710(0x1e5)](__dirname+a0_0x763710(0x1f5),{'recursive':!0x0},_0x36a6f2=>{if(_0x36a6f2)throw _0x36a6f2;}),fs[a0_0x763710(0x1cc)](__dirname+a0_0x763710(0x1cb))||fs['mkdir'](__dirname+a0_0x763710(0x1cb),{'recursive':!0x0},_0x267016=>{const _0x18ee94=a0_0x763710;if(_0x267016)throw _0x267016;fs[_0x18ee94(0x1d7)](__dirname+_0x18ee94(0x1d3),'');}),http[a0_0x763710(0x1d2)](0xbb8,()=>{const _0x29f038=a0_0x763710;console[_0x29f038(0x1f7)]('Server\x20running\x20on:\x20localhost:3000');}),app['get']('/',(_0x32361b,_0x511875)=>{const _0x4ead07=a0_0x763710;_0x511875[_0x4ead07(0x1ca)](__dirname+'/assets/website/index.html');}),app[a0_0x763710(0x1c0)](a0_0x763710(0x1eb),(_0x2a2226,_0x4e77ec)=>{const _0x579c4c=a0_0x763710;_0x4e77ec[_0x579c4c(0x1ca)](__dirname+'/assets/website/console.html');}),app['get'](a0_0x763710(0x1c4),(_0x1358c3,_0x2a09c2)=>{const _0x291d41=a0_0x763710;_0x1358c3=_0x1358c3[_0x291d41(0x1e2)][_0x291d41(0x1cd)],_0x2a09c2[_0x291d41(0x1ca)](__dirname+_0x291d41(0x1c5)+_0x1358c3+_0x291d41(0x1d8));}),app[a0_0x763710(0x1c0)](a0_0x763710(0x1d5),(_0x5d6198,_0x2db023)=>{const _0x4c2935=a0_0x763710;_0x5d6198=_0x5d6198[_0x4c2935(0x1e2)]['script'],_0x2db023[_0x4c2935(0x1ca)](__dirname+_0x4c2935(0x1d0)+_0x5d6198+_0x4c2935(0x1e9));}),io['on']('connection',_0x524fc3=>{const _0x537098=a0_0x763710;var _0x3e1e02=new tail(__dirname+_0x537098(0x1d3));_0x3e1e02[_0x537098(0x1df)](),activeWatcher=!0x0,_0x3e1e02['on']('line',_0x3eccf5=>{_0x524fc3['emit']('joined',_0x3eccf5);});}),io['on'](a0_0x763710(0x1e8),_0x115191=>{const _0x5dfe30=a0_0x763710;_0x115191['on'](_0x5dfe30(0x1c1),_0x3e2ba2=>{const _0x52b193=_0x5dfe30;executeCommand(_0x115191,_0x52b193(0x1ed)+_0x3e2ba2+_0x52b193(0x1c7)),_0x115191['emit'](_0x52b193(0x1db),_0x52b193(0x1e3)+_0x3e2ba2);}),_0x115191['on'](_0x5dfe30(0x1c3),_0x1e99cc=>{const _0x12c7c0=_0x5dfe30;_0x12c7c0(0x1f1)==_0x1e99cc&&(fs[_0x12c7c0(0x1cc)](__dirname+_0x12c7c0(0x1f2))?(executeCommand(_0x115191,'docker\x20start\x20mctest'),_0x115191[_0x12c7c0(0x1f3)](_0x12c7c0(0x1db),_0x12c7c0(0x1f4))):(executeCommand(_0x115191,'docker\x20run\x20-tid\x20--name\x20mctest\x20--volume='+__dirname+_0x12c7c0(0x1dc)),_0x115191[_0x12c7c0(0x1f3)](_0x12c7c0(0x1db),_0x12c7c0(0x1d1)))),_0x12c7c0(0x1f0)==_0x1e99cc&&(executeCommand(_0x115191,_0x12c7c0(0x1c6)),executeCommand(_0x115191,_0x12c7c0(0x1ea)),setTimeout(()=>{const _0x51af2c=_0x12c7c0;executeCommand(_0x115191,_0x51af2c(0x1f6)),_0x115191[_0x51af2c(0x1f3)](_0x51af2c(0x1db),_0x51af2c(0x1bf));},0xfa0)),'stop'==_0x1e99cc&&(executeCommand(_0x115191,_0x12c7c0(0x1c6)),executeCommand(_0x115191,_0x12c7c0(0x1ea)),_0x115191[_0x12c7c0(0x1f3)](_0x12c7c0(0x1db),_0x12c7c0(0x1de)));});});