krsyer-server-monitor-pro 1.0.31 → 1.0.33
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.
- package/bin/cli.js +84 -0
- package/lib/controllers/cloudflareController.js +1 -0
- package/lib/controllers/dockerController.js +1 -0
- package/lib/controllers/networkController.js +1 -0
- package/lib/controllers/serverController.js +1 -0
- package/lib/ecosystem.config.js +1 -0
- package/lib/middleware/saasAuth.js +1 -0
- package/lib/public/login.html +99 -0
- package/lib/public/payment.html +152 -0
- package/lib/public/script.js +1180 -0
- package/lib/public/style.css +1045 -0
- package/lib/routes/cloudflareRoutes.js +1 -0
- package/lib/routes/dockerRoutes.js +1 -0
- package/lib/routes/networkRoutes.js +1 -0
- package/lib/routes/serverRoutes.js +1 -0
- package/lib/server.js +1 -0
- package/lib/services/cashfreeService.js +1 -0
- package/lib/views/activate.html +109 -0
- package/lib/views/index.html +552 -0
- package/package.json +7 -7
- package/monitor.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x5a1834=a0_0x2e8e;function a0_0x2e8e(_0x5e16e2,_0x4ad474){_0x5e16e2=_0x5e16e2-0x17f;const _0x689bfd=a0_0x689b();let _0x2e8e92=_0x689bfd[_0x5e16e2];return _0x2e8e92;}(function(_0x12123f,_0x524ee9){const _0x5e4b8a=a0_0x2e8e,_0x4bd8c5=_0x12123f();while(!![]){try{const _0x4a4645=parseInt(_0x5e4b8a(0x18c))/0x1*(parseInt(_0x5e4b8a(0x186))/0x2)+-parseInt(_0x5e4b8a(0x191))/0x3*(-parseInt(_0x5e4b8a(0x182))/0x4)+parseInt(_0x5e4b8a(0x18e))/0x5*(-parseInt(_0x5e4b8a(0x181))/0x6)+-parseInt(_0x5e4b8a(0x197))/0x7*(parseInt(_0x5e4b8a(0x185))/0x8)+-parseInt(_0x5e4b8a(0x194))/0x9+parseInt(_0x5e4b8a(0x190))/0xa+-parseInt(_0x5e4b8a(0x184))/0xb;if(_0x4a4645===_0x524ee9)break;else _0x4bd8c5['push'](_0x4bd8c5['shift']());}catch(_0x6c0f3a){_0x4bd8c5['push'](_0x4bd8c5['shift']());}}}(a0_0x689b,0x4795c));function a0_0x689b(){const _0x124bad=['exports','4672490QVDIDg','3nzhnfW','get','listTunnels','5207166ECaQiL','/config','getConfig','178493vQZpLt','/status','express','44514eTxqMC','2246236YafOvj','/tunnels','5010137DJuqOR','8qIBbyr','156286UFRSSf','Router','addRoute','post','/delete','getStatus','5aXCsoZ','/add','45SZeQmi'];a0_0x689b=function(){return _0x124bad;};return a0_0x689b();}const express=require(a0_0x5a1834(0x180)),router=express[a0_0x5a1834(0x187)](),cloudflareController=require('../controllers/cloudflareController');router[a0_0x5a1834(0x189)](a0_0x5a1834(0x18d),cloudflareController[a0_0x5a1834(0x188)]),router[a0_0x5a1834(0x189)](a0_0x5a1834(0x18a),cloudflareController['deleteRoute']),router[a0_0x5a1834(0x192)](a0_0x5a1834(0x195),cloudflareController[a0_0x5a1834(0x196)]),router[a0_0x5a1834(0x192)]('/files',cloudflareController['listFiles']),router[a0_0x5a1834(0x192)](a0_0x5a1834(0x183),cloudflareController[a0_0x5a1834(0x193)]),router['get'](a0_0x5a1834(0x17f),cloudflareController[a0_0x5a1834(0x18b)]),module[a0_0x5a1834(0x18f)]=router;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x45e14c=a0_0x3d72;(function(_0x1a82f8,_0x3970a0){const _0x2d1744=a0_0x3d72,_0x4b52bd=_0x1a82f8();while(!![]){try{const _0x2a6653=-parseInt(_0x2d1744(0x199))/0x1+parseInt(_0x2d1744(0x19c))/0x2*(parseInt(_0x2d1744(0x196))/0x3)+parseInt(_0x2d1744(0x19b))/0x4+parseInt(_0x2d1744(0x18e))/0x5*(parseInt(_0x2d1744(0x1a1))/0x6)+parseInt(_0x2d1744(0x18b))/0x7+parseInt(_0x2d1744(0x18a))/0x8+-parseInt(_0x2d1744(0x198))/0x9;if(_0x2a6653===_0x3970a0)break;else _0x4b52bd['push'](_0x4b52bd['shift']());}catch(_0x217a82){_0x4b52bd['push'](_0x4b52bd['shift']());}}}(a0_0x1040,0xc644d));function a0_0x1040(){const _0x4148a4=['4660376WndnMk','256136wqiNJg','getImages','/:id','/images','/restart/:id','422022XErKyC','startContainer','/image/:id','createContainer','exports','5148360osibLT','414155rSpukf','/run','/start/:id','5IYxzOy','/containers','express','post','removeImage','get','removeContainer','delete','9yFFemw','getContainers','12597669VKVHgs','110495CtlBYt','../controllers/dockerController'];a0_0x1040=function(){return _0x4148a4;};return a0_0x1040();}function a0_0x3d72(_0x3c0197,_0x1c9e20){_0x3c0197=_0x3c0197-0x189;const _0x104048=a0_0x1040();let _0x3d7238=_0x104048[_0x3c0197];return _0x3d7238;}const express=require(a0_0x45e14c(0x190)),router=express['Router'](),dockerController=require(a0_0x45e14c(0x19a));router[a0_0x45e14c(0x193)](a0_0x45e14c(0x18f),dockerController[a0_0x45e14c(0x197)]),router['get'](a0_0x45e14c(0x19f),dockerController[a0_0x45e14c(0x19d)]),router['post'](a0_0x45e14c(0x18d),dockerController[a0_0x45e14c(0x1a2)]),router[a0_0x45e14c(0x191)]('/stop/:id',dockerController['stopContainer']),router[a0_0x45e14c(0x191)](a0_0x45e14c(0x1a0),dockerController['restartContainer']),router[a0_0x45e14c(0x195)](a0_0x45e14c(0x19e),dockerController[a0_0x45e14c(0x194)]),router['delete'](a0_0x45e14c(0x1a3),dockerController[a0_0x45e14c(0x192)]),router[a0_0x45e14c(0x191)](a0_0x45e14c(0x18c),dockerController[a0_0x45e14c(0x1a4)]),module[a0_0x45e14c(0x189)]=router;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x70a7f0=a0_0x2aa5;(function(_0x346291,_0xe7b29d){const _0x5bd437=a0_0x2aa5,_0x131e69=_0x346291();while(!![]){try{const _0x218056=-parseInt(_0x5bd437(0xe6))/0x1+-parseInt(_0x5bd437(0xe2))/0x2+-parseInt(_0x5bd437(0xe7))/0x3+parseInt(_0x5bd437(0xe4))/0x4*(-parseInt(_0x5bd437(0xe8))/0x5)+parseInt(_0x5bd437(0xdf))/0x6+-parseInt(_0x5bd437(0xe0))/0x7+parseInt(_0x5bd437(0xe1))/0x8;if(_0x218056===_0xe7b29d)break;else _0x131e69['push'](_0x131e69['shift']());}catch(_0x1a765f){_0x131e69['push'](_0x131e69['shift']());}}}(a0_0x7752,0x93079));const express=require(a0_0x70a7f0(0xe5)),router=express['Router'](),networkController=require(a0_0x70a7f0(0xea));function a0_0x2aa5(_0x5749d4,_0x414fb0){_0x5749d4=_0x5749d4-0xdf;const _0x77525d=a0_0x7752();let _0x2aa510=_0x77525d[_0x5749d4];return _0x2aa510;}function a0_0x7752(){const _0x8d01e7=['25715048cBeJzX','1904340qReLCZ','exports','211912AuKPaw','express','978158sPyboR','1566927kzaPso','65aTigbk','/scan','../controllers/networkController','4715496UcOSxJ','1796991ocYKwL'];a0_0x7752=function(){return _0x8d01e7;};return a0_0x7752();}router['get'](a0_0x70a7f0(0xe9),networkController['scanNetwork']),module[a0_0x70a7f0(0xe3)]=router;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x41c1cb=a0_0x5783;(function(_0x1427ef,_0x25d5fb){const _0x5cc295=a0_0x5783,_0x212a59=_0x1427ef();while(!![]){try{const _0x19223a=parseInt(_0x5cc295(0xed))/0x1*(parseInt(_0x5cc295(0xd9))/0x2)+parseInt(_0x5cc295(0xe5))/0x3*(-parseInt(_0x5cc295(0xe7))/0x4)+-parseInt(_0x5cc295(0xe3))/0x5+-parseInt(_0x5cc295(0xd6))/0x6+-parseInt(_0x5cc295(0xeb))/0x7*(-parseInt(_0x5cc295(0xde))/0x8)+parseInt(_0x5cc295(0xdc))/0x9+-parseInt(_0x5cc295(0xe6))/0xa*(parseInt(_0x5cc295(0xd8))/0xb);if(_0x19223a===_0x25d5fb)break;else _0x212a59['push'](_0x212a59['shift']());}catch(_0x3ef12c){_0x212a59['push'](_0x212a59['shift']());}}}(a0_0x1a02,0xeb2e6));const express=require(a0_0x41c1cb(0xe2)),router=express['Router'](),serverController=require(a0_0x41c1cb(0xd3));function a0_0x5783(_0x5b71a9,_0x1dd153){_0x5b71a9=_0x5b71a9-0xd2;const _0x1a02f3=a0_0x1a02();let _0x5783ec=_0x1a02f3[_0x5b71a9];return _0x5783ec;}router[a0_0x41c1cb(0xd4)](a0_0x41c1cb(0xea),serverController[a0_0x41c1cb(0xd7)]),router['get']('/health',serverController[a0_0x41c1cb(0xec)]),router[a0_0x41c1cb(0xd4)](a0_0x41c1cb(0xe0),serverController[a0_0x41c1cb(0xda)]),router[a0_0x41c1cb(0xdb)](a0_0x41c1cb(0xd5),serverController['restartApp']),router['post'](a0_0x41c1cb(0xe4),serverController[a0_0x41c1cb(0xdd)]),router[a0_0x41c1cb(0xdb)](a0_0x41c1cb(0xd2),serverController[a0_0x41c1cb(0xe8)]),router[a0_0x41c1cb(0xdb)]('/process/kill/:pid',serverController[a0_0x41c1cb(0xe9)]),router['post'](a0_0x41c1cb(0xdf),serverController[a0_0x41c1cb(0xe1)]),module['exports']=router;function a0_0x1a02(){const _0x136b97=['7lguSfT','getHealthStatus','1341775yJqGxa','/service/stop/:name','../controllers/serverController','get','/restart/:id','4958382MLkmzV','getServerInfo','11SUNntL','2CYXonH','getApplications','post','16101495iEhrzN','restartService','1358904ftCcgQ','/service/start/:name','/applications','startService','express','2671170AORIPt','/service/restart/:name','237924oJvfCW','4216040cqQXZb','28LVcvNv','stopService','killProcess','/info'];a0_0x1a02=function(){return _0x136b97;};return a0_0x1a02();}
|
package/lib/server.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x537dc2=a0_0x12bd;(function(_0x5cf96d,_0x135177){const _0x562a18=a0_0x12bd,_0x412b6f=_0x5cf96d();while(!![]){try{const _0x4fdb7b=-parseInt(_0x562a18(0x166))/0x1+-parseInt(_0x562a18(0x167))/0x2*(-parseInt(_0x562a18(0x16d))/0x3)+parseInt(_0x562a18(0x140))/0x4*(parseInt(_0x562a18(0x18b))/0x5)+parseInt(_0x562a18(0x18a))/0x6*(parseInt(_0x562a18(0x150))/0x7)+-parseInt(_0x562a18(0x165))/0x8*(-parseInt(_0x562a18(0x162))/0x9)+parseInt(_0x562a18(0x13a))/0xa+-parseInt(_0x562a18(0x13b))/0xb;if(_0x4fdb7b===_0x135177)break;else _0x412b6f['push'](_0x412b6f['shift']());}catch(_0x29b1db){_0x412b6f['push'](_0x412b6f['shift']());}}}(a0_0x1b7d,0xd487d),require(a0_0x537dc2(0x16b))['config']());const express=require(a0_0x537dc2(0x160)),cors=require(a0_0x537dc2(0x17e)),serverRoutes=require('./routes/serverRoutes'),networkRoutes=require(a0_0x537dc2(0x163)),dockerRoutes=require(a0_0x537dc2(0x18e)),cloudflareRoutes=require(a0_0x537dc2(0x171)),path=require(a0_0x537dc2(0x19a)),http=require(a0_0x537dc2(0x19f)),{Server}=require(a0_0x537dc2(0x19b)),pty=require(a0_0x537dc2(0x1a6)),os=require('os'),app=express(),server=http[a0_0x537dc2(0x148)](app),io=new Server(server),session=require(a0_0x537dc2(0x159)),FileStore=require(a0_0x537dc2(0x14b))(session),PORT=process['env'][a0_0x537dc2(0x132)]||0xbc6,DEFAULT_USER='admin@monitor.com',DEFAULT_PASS='AdminPass123!',getCredentials=()=>{const _0x3487bf=a0_0x537dc2,_0x583a5a=require('fs'),_0x17aa15=path[_0x3487bf(0x12b)](process['cwd'](),_0x3487bf(0x19c));let _0x42b5c2=process[_0x3487bf(0x188)][_0x3487bf(0x15a)]||DEFAULT_USER,_0x19bcfd=process[_0x3487bf(0x188)]['ADMIN_PASS']||DEFAULT_PASS;if(_0x583a5a['existsSync'](_0x17aa15))try{const _0x4bb288=JSON[_0x3487bf(0x15f)](_0x583a5a[_0x3487bf(0x17f)](_0x17aa15));if(_0x4bb288[_0x3487bf(0x138)])_0x42b5c2=_0x4bb288[_0x3487bf(0x138)];if(_0x4bb288[_0x3487bf(0x156)])_0x19bcfd=_0x4bb288[_0x3487bf(0x156)];}catch(_0x17d15a){}return{'user':_0x42b5c2,'pass':_0x19bcfd};},sessionMiddleware=session({'store':new FileStore({'path':'./sessions','ttl':0x15180,'retries':0x5,'factor':0x1,'minTimeout':0x32,'maxTimeout':0x64}),'secret':a0_0x537dc2(0x14c),'resave':![],'saveUninitialized':![],'cookie':{'secure':![],'maxAge':0x5265c00}});app[a0_0x537dc2(0x143)](sessionMiddleware),app[a0_0x537dc2(0x143)](cors()),app[a0_0x537dc2(0x143)](express[a0_0x537dc2(0x199)]()),app[a0_0x537dc2(0x143)](express[a0_0x537dc2(0x1ad)]({'extended':!![]}));let assets=null;try{assets=require(a0_0x537dc2(0x137));}catch(a0_0x3b80d1){}assets?app['use']((_0x346e71,_0x344356,_0xbd5c53)=>{const _0x527971=a0_0x537dc2,_0x21102e=_0x527971(0x1ab)+(_0x346e71[_0x527971(0x19a)]==='/'?'/index.html':_0x346e71[_0x527971(0x19a)]);if(assets[_0x21102e]){const _0x401aa7=path['extname'](_0x21102e),_0x5a32df={'.html':_0x527971(0x151),'.js':'text/javascript','.css':'text/css','.json':'application/json','.png':_0x527971(0x133),'.jpg':_0x527971(0x128),'.gif':'image/gif','.svg':_0x527971(0x16a)};return _0x344356['setHeader'](_0x527971(0x14e),_0x5a32df[_0x401aa7]||_0x527971(0x129)),_0x344356[_0x527971(0x16f)](assets[_0x21102e]);}_0xbd5c53();}):app[a0_0x537dc2(0x143)](express[a0_0x537dc2(0x174)](path[a0_0x537dc2(0x12b)](__dirname,a0_0x537dc2(0x1ab)),{'index':![]}));function a0_0x12bd(_0x4cef6c,_0x3ead0d){_0x4cef6c=_0x4cef6c-0x125;const _0x1b7db0=a0_0x1b7d();let _0x12bd17=_0x1b7db0[_0x4cef6c];return _0x12bd17;}function a0_0x1b7d(){const _0x7d9bf5=['views','createServer','session','Invalid\x20credentials','session-file-store','server-monitor-secret-key-123','terminal:resize','Content-Type','/login','776657MBKDGt','text/html','Logged\x20in','/api','get','success','adminPass','/usr/bin','Password\x20updated\x20successfully','express-session','ADMIN_USER','connection','/bin','LICENSE_VALIDATION_URL','valid','parse','express','redirect','671526wIhiIo','./routes/networkRoutes','kill','40XtLCGq','544290mHgqPG','54542tPidqn','bash','body','image/svg+xml','dotenv','pass','159neyHYx','axios','send','status','./routes/cloudflareRoutes','startsWith','PATH','static','disconnect','https://mulasoft.in/pricing','/api/cloudflare','/activate?error=Key\x20Missing','authenticated','index.html','spawn','pid','PRO-','cors','readFileSync','username','Current\x20password\x20incorrect','USERPROFILE','write','?key=','/api/network','DEMO-123','NODE_ENV','env','request','72ATsZqG','171555UrrfAp','powershell.exe','data','./routes/dockerRoutes','exports','Unauthorized','/snap/bin','/logout',',\x20User:\x20','/api/server','writeFileSync','win32','HOME','/activate?error=Invalid\x20Key','json','path','socket.io','monitor-config.json','https://mulasoft.in/api/validate','views/activate.html','http','existsSync','log','resize','cwd','listen','save','node-pty','destroy','setHeader','public/login.html','./middleware/saasAuth','public','xterm-color','urlencoded','login.html','views/index.html','/usr/local/bin','development','/sbin','emit','image/jpg','text/plain','arch','join','post','user','sendFile','/activate','Process:\x20PID\x20','error','PORT','image/png','originalUrl','Server\x20is\x20running\x20on\x20port\x20','userInfo','./assets','adminUser','Save\x20failed','12484970xnkRTG','49047900DLjQOO','Password\x20must\x20be\x20at\x20least\x206\x20characters','platform','terminal:data','/payment','172NOVrIf','Platform:\x20','activate.html','use','/usr/sbin','trim','length'];a0_0x1b7d=function(){return _0x7d9bf5;};return a0_0x1b7d();}const wrap=_0x39400a=>(_0x6244b4,_0x4455d4)=>_0x39400a(_0x6244b4['request'],{},_0x4455d4);io['use'](wrap(sessionMiddleware)),io['use']((_0x298483,_0x38634a)=>{const _0x2716e6=a0_0x537dc2,_0x176182=_0x298483[_0x2716e6(0x189)][_0x2716e6(0x149)];_0x176182&&_0x176182[_0x2716e6(0x179)]?_0x38634a():_0x38634a(new Error(_0x2716e6(0x190)));}),io['on'](a0_0x537dc2(0x15b),_0x57dc84=>{const _0x2d0c9d=a0_0x537dc2;console[_0x2d0c9d(0x1a1)]('Client\x20connected\x20to\x20terminal:',_0x57dc84['id']);const _0xaded1a=os[_0x2d0c9d(0x13d)]()==='win32'?_0x2d0c9d(0x18c):_0x2d0c9d(0x168),_0x399ae6=Object['assign']({},process[_0x2d0c9d(0x188)]);if(os['platform']()!==_0x2d0c9d(0x196)){const _0x3874d4=_0x399ae6['PATH']||'',_0x4bba3b=[_0x2d0c9d(0x1b0),_0x2d0c9d(0x157),_0x2d0c9d(0x15c),_0x2d0c9d(0x144),_0x2d0c9d(0x126),_0x2d0c9d(0x191)];_0x4bba3b['forEach'](_0x4980fb=>{const _0x347e6a=_0x2d0c9d;!_0x3874d4['includes'](_0x4980fb)&&(_0x399ae6[_0x347e6a(0x173)]=(_0x399ae6[_0x347e6a(0x173)]?_0x399ae6[_0x347e6a(0x173)]+':':'')+_0x4980fb);});}const _0x265dcd=pty[_0x2d0c9d(0x17b)](_0xaded1a,[],{'name':_0x2d0c9d(0x1ac),'cols':0x50,'rows':0x1e,'cwd':process['env'][_0x2d0c9d(0x197)]||process['env'][_0x2d0c9d(0x182)],'env':_0x399ae6});_0x265dcd['onData'](_0x2adec2=>{const _0x32e1e2=_0x2d0c9d;_0x57dc84[_0x32e1e2(0x127)](_0x32e1e2(0x13e),_0x2adec2);}),_0x57dc84['on']('terminal:write',_0x5d5db8=>{const _0x524ac0=_0x2d0c9d;_0x265dcd[_0x524ac0(0x183)](_0x5d5db8);}),_0x57dc84['on'](_0x2d0c9d(0x14d),_0x17a6a9=>{const _0x252ce0=_0x2d0c9d;_0x265dcd[_0x252ce0(0x1a2)](_0x17a6a9['cols'],_0x17a6a9['rows']);}),_0x57dc84['on'](_0x2d0c9d(0x175),()=>{const _0x3896ca=_0x2d0c9d;console[_0x3896ca(0x1a1)]('Client\x20disconnected\x20from\x20terminal:',_0x57dc84['id']),_0x265dcd[_0x3896ca(0x164)]();});});const isAuthenticated=(_0x4c6890,_0x595281,_0x374c55)=>{const _0x4effda=a0_0x537dc2;if(_0x4c6890[_0x4effda(0x149)][_0x4effda(0x179)])return _0x374c55();if(_0x4c6890[_0x4effda(0x134)]['startsWith'](_0x4effda(0x153)))return _0x595281[_0x4effda(0x170)](0x191)[_0x4effda(0x199)]({'status':_0x4effda(0x131),'message':'Unauthorized'});_0x595281[_0x4effda(0x161)](_0x4effda(0x14f));};app['post'](a0_0x537dc2(0x14f),(_0x326447,_0x4c7e43)=>{const _0x3220cd=a0_0x537dc2,{username:_0xbbb75a,password:_0x482f13}=_0x326447[_0x3220cd(0x169)],_0x5a1181=getCredentials();if(_0xbbb75a===_0x5a1181['user']&&_0x482f13===_0x5a1181[_0x3220cd(0x16c)]){_0x326447[_0x3220cd(0x149)][_0x3220cd(0x179)]=!![],_0x326447[_0x3220cd(0x149)][_0x3220cd(0x12d)]=_0xbbb75a,_0x326447[_0x3220cd(0x149)][_0x3220cd(0x1a5)](_0x596945=>{const _0xdaa07b=_0x3220cd;if(_0x596945)console[_0xdaa07b(0x131)](_0x596945);_0x4c7e43[_0xdaa07b(0x170)](0xc8)[_0xdaa07b(0x199)]({'status':_0xdaa07b(0x155),'message':_0xdaa07b(0x152)});});return;}_0x4c7e43[_0x3220cd(0x170)](0x191)['json']({'status':_0x3220cd(0x131),'message':_0x3220cd(0x14a)});}),app[a0_0x537dc2(0x12c)]('/api/change-password',isAuthenticated,(_0x265ab3,_0x240716)=>{const _0x1748a5=a0_0x537dc2,{currentPassword:_0x2daf2d,newPassword:_0x5b0e12}=_0x265ab3[_0x1748a5(0x169)],_0x553ec7=getCredentials();if(_0x2daf2d!==_0x553ec7[_0x1748a5(0x16c)])return _0x240716['status'](0x190)[_0x1748a5(0x199)]({'status':_0x1748a5(0x131),'message':_0x1748a5(0x181)});if(!_0x5b0e12||_0x5b0e12[_0x1748a5(0x146)]<0x6)return _0x240716[_0x1748a5(0x170)](0x190)[_0x1748a5(0x199)]({'status':'error','message':_0x1748a5(0x13c)});try{const _0x10453a=require('fs'),_0x3e8e3d=path[_0x1748a5(0x12b)](process[_0x1748a5(0x1a3)](),'monitor-config.json');let _0x589076={};if(_0x10453a[_0x1748a5(0x1a0)](_0x3e8e3d))try{_0x589076=JSON['parse'](_0x10453a[_0x1748a5(0x17f)](_0x3e8e3d));}catch(_0x55a90f){}_0x589076[_0x1748a5(0x138)]=_0x553ec7[_0x1748a5(0x12d)],_0x589076['adminPass']=_0x5b0e12,_0x10453a[_0x1748a5(0x195)](_0x3e8e3d,JSON['stringify'](_0x589076,null,0x2)),_0x240716['json']({'status':_0x1748a5(0x155),'message':_0x1748a5(0x158)});}catch(_0x2fb202){_0x240716[_0x1748a5(0x170)](0x1f4)[_0x1748a5(0x199)]({'status':_0x1748a5(0x131),'message':_0x1748a5(0x139)});}}),app['get']('/login',(_0x1c7faa,_0x279b1a)=>{const _0x49e2f0=a0_0x537dc2;if(_0x1c7faa['session'][_0x49e2f0(0x179)])return _0x279b1a[_0x49e2f0(0x161)]('/');if(assets&&assets[_0x49e2f0(0x1a9)])return _0x279b1a[_0x49e2f0(0x1a8)](_0x49e2f0(0x14e),_0x49e2f0(0x151)),_0x279b1a[_0x49e2f0(0x16f)](assets[_0x49e2f0(0x1a9)]);_0x279b1a[_0x49e2f0(0x12e)](path[_0x49e2f0(0x12b)](__dirname,_0x49e2f0(0x1ab),_0x49e2f0(0x1ae)));}),app['post']('/logout',(_0x152ef1,_0x55ac16)=>{const _0x1352c0=a0_0x537dc2;_0x152ef1[_0x1352c0(0x149)][_0x1352c0(0x1a7)](),_0x55ac16[_0x1352c0(0x170)](0xc8)[_0x1352c0(0x199)]({'status':'success'});}),app[a0_0x537dc2(0x154)](a0_0x537dc2(0x192),(_0x3eeb25,_0xa522dd)=>{_0x3eeb25['session']['destroy'](()=>{const _0x36171a=a0_0x12bd;_0xa522dd[_0x36171a(0x161)](_0x36171a(0x14f));});});const saasAuth=require(a0_0x537dc2(0x1aa));app[a0_0x537dc2(0x154)]('/activate',(_0x379a62,_0x517f17)=>{const _0x46784b=a0_0x537dc2;if(assets&&assets['views/activate.html'])return _0x517f17[_0x46784b(0x1a8)](_0x46784b(0x14e),_0x46784b(0x151)),_0x517f17[_0x46784b(0x16f)](assets[_0x46784b(0x19e)]);_0x517f17[_0x46784b(0x12e)](path[_0x46784b(0x12b)](__dirname,_0x46784b(0x147),_0x46784b(0x142)));}),app['post'](a0_0x537dc2(0x12f),async(_0x159396,_0xad36a)=>{const _0xa84958=a0_0x537dc2;let {licenseKey:_0x4e948d}=_0x159396[_0xa84958(0x169)];if(!_0x4e948d)return _0xad36a[_0xa84958(0x161)](_0xa84958(0x178));_0x4e948d=_0x4e948d[_0xa84958(0x145)]();try{const _0x365476=process['env'][_0xa84958(0x15d)]||_0xa84958(0x19d),_0x1d411e=require(_0xa84958(0x16e));let _0x2ea264=![];if(_0x4e948d===_0xa84958(0x186))_0x2ea264=!![];else{if(_0x4e948d[_0xa84958(0x172)](_0xa84958(0x17d)))try{const _0x2412d3=await _0x1d411e['get'](_0x365476+_0xa84958(0x184)+_0x4e948d,{'timeout':0xbb8});if(_0x2412d3['data']&&_0x2412d3[_0xa84958(0x18d)][_0xa84958(0x15e)])_0x2ea264=!![];}catch(_0x2cb80c){_0x2ea264=!![];}}if(_0x2ea264){const _0x1d7e9f=require('fs'),_0x292580=path[_0xa84958(0x12b)](process['cwd'](),_0xa84958(0x19c));let _0xf2b7aa={};if(_0x1d7e9f[_0xa84958(0x1a0)](_0x292580))try{_0xf2b7aa=JSON[_0xa84958(0x15f)](_0x1d7e9f[_0xa84958(0x17f)](_0x292580));}catch(_0x2c24d0){}_0xf2b7aa['licenseKey']=_0x4e948d,_0x1d7e9f[_0xa84958(0x195)](_0x292580,JSON['stringify'](_0xf2b7aa,null,0x2)),_0xad36a[_0xa84958(0x161)]('/');}else _0xad36a[_0xa84958(0x161)](_0xa84958(0x198));}catch(_0x4a5163){console[_0xa84958(0x131)](_0x4a5163),_0xad36a[_0xa84958(0x161)]('/activate?error=Error');}}),app[a0_0x537dc2(0x154)](a0_0x537dc2(0x13f),(_0x165026,_0x5042ab)=>{const _0x314f2a=a0_0x537dc2,_0x10c9b9=process[_0x314f2a(0x188)]['PAYMENT_PORTAL_URL']||_0x314f2a(0x176);_0x5042ab[_0x314f2a(0x161)](_0x10c9b9);}),app[a0_0x537dc2(0x143)](a0_0x537dc2(0x194),isAuthenticated,saasAuth,serverRoutes),app[a0_0x537dc2(0x143)](a0_0x537dc2(0x185),isAuthenticated,saasAuth,networkRoutes),app[a0_0x537dc2(0x143)]('/api/docker',isAuthenticated,saasAuth,dockerRoutes),app['use'](a0_0x537dc2(0x177),isAuthenticated,saasAuth,cloudflareRoutes),app[a0_0x537dc2(0x154)]('/',isAuthenticated,saasAuth,(_0x52fc5e,_0x3980ff)=>{const _0xd19ef7=a0_0x537dc2;if(assets&&assets[_0xd19ef7(0x1af)])return _0x3980ff[_0xd19ef7(0x1a8)](_0xd19ef7(0x14e),_0xd19ef7(0x151)),_0x3980ff['send'](assets['views/index.html']);_0x3980ff[_0xd19ef7(0x12e)](path[_0xd19ef7(0x12b)](__dirname,_0xd19ef7(0x147),_0xd19ef7(0x17a)));}),server[a0_0x537dc2(0x1a4)](PORT,()=>{const _0x5858ab=a0_0x537dc2;console[_0x5858ab(0x1a1)](_0x5858ab(0x135)+PORT),console[_0x5858ab(0x1a1)]('Environment:\x20'+(process[_0x5858ab(0x188)][_0x5858ab(0x187)]||_0x5858ab(0x125))),console[_0x5858ab(0x1a1)](_0x5858ab(0x141)+os[_0x5858ab(0x13d)]()+'\x20('+os[_0x5858ab(0x12a)]()+')');try{console['log'](_0x5858ab(0x130)+process[_0x5858ab(0x17c)]+_0x5858ab(0x193)+os[_0x5858ab(0x136)]()[_0x5858ab(0x180)]);}catch(_0x5b2fe6){}}),module[a0_0x537dc2(0x18f)]=app;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a0_0x5d60(_0xcb8fb9,_0x1a4caf){_0xcb8fb9=_0xcb8fb9-0xbe;const _0x22ad77=a0_0x22ad();let _0x5d6083=_0x22ad77[_0xcb8fb9];return _0x5d6083;}const a0_0x4d1ffd=a0_0x5d60;(function(_0x8facf6,_0x41352e){const _0x295613=a0_0x5d60,_0x2bc950=_0x8facf6();while(!![]){try{const _0x3cce35=-parseInt(_0x295613(0xc6))/0x1+parseInt(_0x295613(0xde))/0x2*(parseInt(_0x295613(0xc0))/0x3)+parseInt(_0x295613(0xc5))/0x4+-parseInt(_0x295613(0xcf))/0x5+-parseInt(_0x295613(0xd0))/0x6+parseInt(_0x295613(0xd3))/0x7*(-parseInt(_0x295613(0xd1))/0x8)+-parseInt(_0x295613(0xc2))/0x9*(-parseInt(_0x295613(0xc4))/0xa);if(_0x3cce35===_0x41352e)break;else _0x2bc950['push'](_0x2bc950['shift']());}catch(_0x3717ba){_0x2bc950['push'](_0x2bc950['shift']());}}}(a0_0x22ad,0xe378d));function a0_0x22ad(){const _0x1effd6=['2565806kuqyBH','response','data','CRITICAL:\x20Cashfree\x20Credentials\x20missing\x20in\x20.env','3CypYoN','XClientId','63Zyjato','exports','858620LUNWrA','7180088cZotMB','815262dseaNu','Cashfree\x20not\x20initialized','cashfree-pg','error','log','env','INR','production','CASHFREE_SECRET_KEY','4087515pSuiEW','1037766OhdvLs','1255344QmrKWU','stringify','42rsxjke','SANDBOX','Cashfree\x20Create\x20Order\x20Error:','APP_URL','XEnvironment','CASHFREE_APP_ID','Cashfree\x20Instance\x20Initialized\x20in\x20','message','\x20mode','XClientSecret','Cashfree\x20Verify\x20Payment\x20Error:'];a0_0x22ad=function(){return _0x1effd6;};return a0_0x22ad();}const {Cashfree,CFEnvironment}=require(a0_0x4d1ffd(0xc8));let cashfreeInstance=null;const getCashfreeInstance=()=>{const _0x213d0a=a0_0x4d1ffd;if(!cashfreeInstance){if(!process[_0x213d0a(0xcb)][_0x213d0a(0xd8)]||!process[_0x213d0a(0xcb)]['CASHFREE_SECRET_KEY'])return console[_0x213d0a(0xc9)](_0x213d0a(0xbf)),null;const _0x31fc23=new Cashfree();_0x31fc23[_0x213d0a(0xc1)]=process[_0x213d0a(0xcb)][_0x213d0a(0xd8)],_0x31fc23[_0x213d0a(0xdc)]=process[_0x213d0a(0xcb)][_0x213d0a(0xce)],_0x31fc23[_0x213d0a(0xd7)]=process[_0x213d0a(0xcb)]['NODE_ENV']===_0x213d0a(0xcd)?CFEnvironment['PRODUCTION']:CFEnvironment[_0x213d0a(0xd4)],cashfreeInstance=_0x31fc23,console[_0x213d0a(0xca)](_0x213d0a(0xd9)+(process['env']['NODE_ENV']===_0x213d0a(0xcd)?'PRODUCTION':_0x213d0a(0xd4))+_0x213d0a(0xdb));}return cashfreeInstance;},createPaymentSession=async(_0x102696,_0x58a6fa,_0x41a4f4,_0x5e7385)=>{const _0x5a6c70=a0_0x4d1ffd;try{const _0x2e9355=getCashfreeInstance();if(!_0x2e9355)throw new Error(_0x5a6c70(0xc7));const _0x53f909={'order_amount':_0x102696,'order_currency':_0x5a6c70(0xcc),'customer_details':{'customer_id':_0x58a6fa,'customer_phone':_0x41a4f4,'customer_email':_0x5e7385},'order_meta':{'return_url':process['env'][_0x5a6c70(0xd6)]+'/payment/verify?order_id={order_id}'}},_0x37cd34=await _0x2e9355['PGCreateOrder'](_0x53f909);return _0x37cd34[_0x5a6c70(0xbe)];}catch(_0x283a02){const _0xe2930b=_0x283a02[_0x5a6c70(0xdf)]?JSON['stringify'](_0x283a02['response'][_0x5a6c70(0xbe)]):_0x283a02[_0x5a6c70(0xda)];console[_0x5a6c70(0xc9)](_0x5a6c70(0xd5),_0xe2930b);throw new Error(_0xe2930b);}},verifyPayment=async _0x1034de=>{const _0x3e023c=a0_0x4d1ffd;try{const _0x48b622=getCashfreeInstance();if(!_0x48b622)throw new Error(_0x3e023c(0xc7));const _0x53acc4=await _0x48b622['PGOrderFetchPayments'](_0x1034de);return _0x53acc4[_0x3e023c(0xbe)];}catch(_0x339a05){const _0x2e066f=_0x339a05[_0x3e023c(0xdf)]?JSON[_0x3e023c(0xd2)](_0x339a05['response'][_0x3e023c(0xbe)]):_0x339a05['message'];console[_0x3e023c(0xc9)](_0x3e023c(0xdd),_0x2e066f);throw new Error(_0x2e066f);}};module[a0_0x4d1ffd(0xc3)]={'createPaymentSession':createPaymentSession,'verifyPayment':verifyPayment};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>Activate Server Monitor</title>
|
|
8
|
+
<style>
|
|
9
|
+
body {
|
|
10
|
+
font-family: 'Inter', sans-serif;
|
|
11
|
+
background: #0f172a;
|
|
12
|
+
color: white;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
height: 100vh;
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.card {
|
|
21
|
+
background: #1e293b;
|
|
22
|
+
padding: 2rem;
|
|
23
|
+
border-radius: 16px;
|
|
24
|
+
border: 1px solid #334155;
|
|
25
|
+
width: 400px;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h1 {
|
|
30
|
+
color: #3b82f6;
|
|
31
|
+
margin-bottom: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
p {
|
|
35
|
+
color: #94a3b8;
|
|
36
|
+
margin-bottom: 2rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
input {
|
|
40
|
+
width: 100%;
|
|
41
|
+
padding: 12px;
|
|
42
|
+
margin-bottom: 1rem;
|
|
43
|
+
background: #0f172a;
|
|
44
|
+
border: 1px solid #334155;
|
|
45
|
+
color: white;
|
|
46
|
+
border-radius: 8px;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
button {
|
|
51
|
+
width: 100%;
|
|
52
|
+
padding: 12px;
|
|
53
|
+
background: #22c55e;
|
|
54
|
+
color: white;
|
|
55
|
+
border: none;
|
|
56
|
+
border-radius: 8px;
|
|
57
|
+
font-weight: bold;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
margin-top: 10px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
button:hover {
|
|
63
|
+
background: #16a34a;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.buy-link {
|
|
67
|
+
margin-top: 20px;
|
|
68
|
+
display: block;
|
|
69
|
+
color: #60a5fa;
|
|
70
|
+
text-decoration: none;
|
|
71
|
+
font-size: 0.9rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.error {
|
|
75
|
+
color: #ef4444;
|
|
76
|
+
margin-bottom: 1rem;
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
</style>
|
|
80
|
+
</head>
|
|
81
|
+
|
|
82
|
+
<body>
|
|
83
|
+
<div class="card">
|
|
84
|
+
<h1>Activate License</h1>
|
|
85
|
+
<p>Please enter your Pro License Key to unlock the dashboard.</p>
|
|
86
|
+
|
|
87
|
+
<div id="errorMsg" class="error"></div>
|
|
88
|
+
|
|
89
|
+
<form action="/activate" method="POST">
|
|
90
|
+
<input type="text" name="licenseKey" placeholder="PRO-XXXXXXXX-XXXXXXXX" required>
|
|
91
|
+
<button type="submit">Activate Now</button>
|
|
92
|
+
</form>
|
|
93
|
+
|
|
94
|
+
<a href="/payment" class="buy-link">Don't have a key? Buy License</a>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<script>
|
|
98
|
+
// Show error from URL
|
|
99
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
100
|
+
const error = urlParams.get('error');
|
|
101
|
+
if (error) {
|
|
102
|
+
const errDiv = document.getElementById('errorMsg');
|
|
103
|
+
errDiv.style.display = 'block';
|
|
104
|
+
errDiv.textContent = decodeURIComponent(error);
|
|
105
|
+
}
|
|
106
|
+
</script>
|
|
107
|
+
</body>
|
|
108
|
+
|
|
109
|
+
</html>
|