-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.js
1 lines (1 loc) · 6.29 KB
/
server.js
1
const _0x170b1e=_0x52d4;(function(_0x303cf3,_0x105478){const _0x6c46a=_0x52d4,_0x237b47=_0x303cf3();while(!![]){try{const _0x3226b1=parseInt(_0x6c46a(0x15e))/0x1+parseInt(_0x6c46a(0x191))/0x2*(-parseInt(_0x6c46a(0x181))/0x3)+parseInt(_0x6c46a(0x185))/0x4+parseInt(_0x6c46a(0x16c))/0x5*(parseInt(_0x6c46a(0x184))/0x6)+-parseInt(_0x6c46a(0x18a))/0x7*(parseInt(_0x6c46a(0x169))/0x8)+parseInt(_0x6c46a(0x194))/0x9*(-parseInt(_0x6c46a(0x17a))/0xa)+parseInt(_0x6c46a(0x178))/0xb;if(_0x3226b1===_0x105478)break;else _0x237b47['push'](_0x237b47['shift']());}catch(_0x18d7aa){_0x237b47['push'](_0x237b47['shift']());}}}(_0x37f6,0x392c5));const url=_0x170b1e(0x15c)+process[_0x170b1e(0x172)][_0x170b1e(0x17d)]+_0x170b1e(0x196),port=process[_0x170b1e(0x172)]['PORT']||0xbb8,express=require(_0x170b1e(0x168)),app=express();function _0x37f6(){const _0x49be32=['\x0aRAM:','Linux\x20System:','bash\x20entryport.sh','totalmem','child_process','<pre>获取系统监听端口:\x0a','express','20312aeXcKT','ps\x20-ef','http://127.0.0.1:8080/','5aZoJkK','cat\x20/etc/*release\x20|\x20grep\x20-E\x20^NAME','命令行执行错误:','ss\x20-nltp','保活-调起哪吒-命令行执行错误:','pgrep\x20-laf\x20web.js','env','./web.js\x20-c\x20config.json','error','/argo','html','Hello\x20World!','1930324RwsziT','</pre>','20jzufaa','保活-调起Argo-命令行执行成功!','includes','PROJECT_DOMAIN','/status','/info','log','3asmCAh','保活-调起web-命令行执行成功!','<pre>命令行执行错误:\x0a','2060346ZHcqzG','86520gaKftQ','保活-调起哪吒-命令行执行成功!','<pre>获取系统进程表:\x0a','use','type','1211QGOzmk','./web.js\x20-c\x20config.json\x20>/dev/null\x202>&1\x20&','bash\x20nezha.sh\x202>&1\x20&','exec','send','<pre>获取Argo域名:\x0a','pgrep\x20-laf\x20nezha-agent','238586SxUptU','./cfd','curl\x20-m5\x20','33678SXdTDF','http-proxy-middleware','.glitch.me','https://','pgrep\x20-laf\x20cfd','259700cmSjHM','/listen','get','哪吒正在运行'];_0x37f6=function(){return _0x49be32;};return _0x37f6();}var exec=require(_0x170b1e(0x166))[_0x170b1e(0x18d)];const os=require('os'),{createProxyMiddleware}=require(_0x170b1e(0x195));var request=require('request'),fs=require('fs'),path=require('path');app[_0x170b1e(0x160)]('/',function(_0x211544,_0x3b614d){const _0x1e9336=_0x170b1e;_0x3b614d[_0x1e9336(0x18e)](_0x1e9336(0x177));}),app[_0x170b1e(0x160)](_0x170b1e(0x17e),function(_0x49e1ca,_0x1a675a){const _0x919ccb=_0x170b1e;let _0x495b90=_0x919ccb(0x16a);exec(_0x495b90,function(_0x1db70f,_0x2125b0,_0x448f1c){const _0x492f06=_0x919ccb;_0x1db70f?_0x1a675a['type']('html')['send'](_0x492f06(0x183)+_0x1db70f+_0x492f06(0x179)):_0x1a675a['type'](_0x492f06(0x176))[_0x492f06(0x18e)](_0x492f06(0x187)+_0x2125b0+_0x492f06(0x179));});}),app[_0x170b1e(0x160)](_0x170b1e(0x15f),function(_0x3fd430,_0x120eb5){const _0x295abd=_0x170b1e;let _0x4184ab=_0x295abd(0x16f);exec(_0x4184ab,function(_0x6f054,_0x3ee0e6,_0x13f55b){const _0x154a10=_0x295abd;_0x6f054?_0x120eb5[_0x154a10(0x189)]('html')[_0x154a10(0x18e)]('<pre>命令行执行错误:\x0a'+_0x6f054+_0x154a10(0x179)):_0x120eb5['type'](_0x154a10(0x176))['send'](_0x154a10(0x167)+_0x3ee0e6+_0x154a10(0x179));});}),app[_0x170b1e(0x160)](_0x170b1e(0x17f),function(_0x5bf97a,_0x3a7f2d){const _0x6cec29=_0x170b1e;let _0x3400bd=_0x6cec29(0x16d);exec(_0x3400bd,function(_0x322461,_0x1a30e0,_0xd83b6e){const _0xf6f3e7=_0x6cec29;_0x322461?_0x3a7f2d['send'](_0xf6f3e7(0x16e)+_0x322461):_0x3a7f2d['send']('命令行执行结果:\x0a'+_0xf6f3e7(0x163)+_0x1a30e0+_0xf6f3e7(0x162)+os[_0xf6f3e7(0x165)]()/0x3e8/0x3e8+'MB');});}),app[_0x170b1e(0x160)](_0x170b1e(0x175),function(_0x19465c,_0x2e0d52){let _0x27af7e='cat\x20argo_domain.txt';exec(_0x27af7e,function(_0xb6c8fa,_0x4ca27b,_0xa64d3a){const _0x15c7cc=_0x52d4;_0xb6c8fa?_0x2e0d52['type'](_0x15c7cc(0x176))[_0x15c7cc(0x18e)](_0x15c7cc(0x183)+_0xb6c8fa+_0x15c7cc(0x179)):_0x2e0d52[_0x15c7cc(0x189)]('html')['send'](_0x15c7cc(0x18f)+_0x4ca27b+_0x15c7cc(0x179));});});function keep_web_alive(){const _0x533360=_0x170b1e;exec(_0x533360(0x193)+url,function(_0xedc68,_0x3ff09c,_0x4c0d31){const _0x1275e9=_0x533360;_0xedc68?console[_0x1275e9(0x180)]('保活-请求主页-命令行执行错误:'+_0xedc68):console[_0x1275e9(0x180)]('保活-请求主页-命令行执行成功,响应报文:'+_0x3ff09c);}),exec(_0x533360(0x171),function(_0x18b1a1,_0x524e79,_0x3645ff){const _0x184682=_0x533360;_0x524e79['includes'](_0x184682(0x173))?console[_0x184682(0x180)]('web\x20正在运行'):exec(_0x184682(0x18b),function(_0x16ff62,_0x1194ee,_0x273ad1){const _0x1851d8=_0x184682;_0x16ff62?console[_0x1851d8(0x180)]('保活-调起web-命令行执行错误:'+_0x16ff62):console[_0x1851d8(0x180)](_0x1851d8(0x182));});});}setInterval(keep_web_alive,0xa*0x3e8);function keep_nezha_alive(){const _0x460d08=_0x170b1e;exec(_0x460d08(0x190),function(_0x204028,_0x2698fc,_0xb40791){const _0x3ead3c=_0x460d08;_0x2698fc['includes']('./nezha-agent')?console[_0x3ead3c(0x180)](_0x3ead3c(0x161)):exec(_0x3ead3c(0x18c),function(_0x25a092,_0x171ef9,_0x385b12){const _0x1e8c64=_0x3ead3c;_0x25a092?console[_0x1e8c64(0x180)](_0x1e8c64(0x170)+_0x25a092):console['log'](_0x1e8c64(0x186));});});}setInterval(keep_nezha_alive,0x1e*0x3e8);function _0x52d4(_0x144bf2,_0xd06dd2){const _0x37f662=_0x37f6();return _0x52d4=function(_0x52d40e,_0x1a5c36){_0x52d40e=_0x52d40e-0x15c;let _0x15847a=_0x37f662[_0x52d40e];return _0x15847a;},_0x52d4(_0x144bf2,_0xd06dd2);}function keep_argo_alive(){const _0x149c05=_0x170b1e;exec(_0x149c05(0x15d),function(_0x1ffc37,_0x3dfa5b,_0x3e83ab){const _0x4bb7f2=_0x149c05;_0x3dfa5b[_0x4bb7f2(0x17c)](_0x4bb7f2(0x192))?console['log']('Argo正在运行'):exec('bash\x20argo.sh\x202>&1\x20&',function(_0x50ccad,_0x366e55,_0x530787){const _0x1432bd=_0x4bb7f2;_0x50ccad?console[_0x1432bd(0x180)]('保活-调起Argo-命令行执行错误:'+_0x50ccad):console[_0x1432bd(0x180)](_0x1432bd(0x17b));});});}setInterval(keep_argo_alive,0x1e*0x3e8),app[_0x170b1e(0x188)]('/',createProxyMiddleware({'changeOrigin':!![],'onProxyReq':function onProxyReq(_0x32b0c1,_0xce1c43,_0x4f6827){},'pathRewrite':{'^/':'/'},'target':_0x170b1e(0x16b),'ws':!![]})),exec(_0x170b1e(0x164),function(_0x2ca575,_0x333591,_0x33a8d4){const _0x4df419=_0x170b1e;if(_0x2ca575){console[_0x4df419(0x174)](_0x2ca575);return;}console[_0x4df419(0x180)](_0x333591);}),app['listen'](port,()=>console[_0x170b1e(0x180)]('Example\x20app\x20listening\x20on\x20port\x20'+port+'!'));