-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
1 lines (1 loc) · 4.95 KB
/
index.js
File metadata and controls
1 lines (1 loc) · 4.95 KB
1
function _0x3ffd(){const _0x26789c=['listen','clear\x0ausuario=\x22','411154gyKrIc','createServer','\x20|\x20grep\x20sshd\x20|\x20wc\x20-l','45GGdlFC','split','145297JHhxKS','ps\x20-u\x20','\x20está\x20em\x20uso.','\x22\x0adatauser=$(chage\x20-l\x20$usuario\x20|\x20grep\x20-i\x20co\x20|\x20awk\x20-F\x20:\x20\x27{print\x20$2}\x27)\x0adatabr=\x22$(date\x20-d\x20\x22$datauser\x22\x20+\x22%Y%m%d\x22)\x22\x0ahoje=\x22$(date\x20-d\x20today\x20+\x22%Y%m%d\x22)\x22\x0aif\x20[\x20$hoje\x20-ge\x20$databr\x20];\x20then\x0adata=\x22-1\x22\x0aelse\x0adat=\x22$(date\x20-d\x22$datauser\x22\x20\x27+%Y-%m-%d\x27)\x22\x0adata=$(date\x20-d\x20\x22$dat\x22\x20+\x22%d/%m/%Y\x22)\x0afi\x0aecho\x20-e\x20\x22$data\x22','listen_port','./config.json','1587688fKYBSW','http','grep\x20\x22^','end','match','child_process','00/00/0000','A\x20porta\x20','\x20\x22\x20\x22/root/usuarios.db\x22\x20|\x20cut\x20-d\x27\x20\x27\x20-f2','trim','3120408QAGhrb','url','3188717xsooBK','44FgbMGT','1611351OruJgc','246960XMwiiO','replace','\x22\x0adatauser=$(chage\x20-l\x20$usuario\x20|grep\x20-i\x20co\x20|awk\x20-F\x20:\x20\x27{print\x20$2}\x27)\x0aif\x20[\x20$datauser\x20=\x20never\x20]\x202>\x20/dev/null\x0athen\x0adata=\x22-1\x22\x0aelse\x0adatabr=\x22$(date\x20-d\x20\x22$datauser\x22\x20+\x22%Y%m%d\x22)\x22\x0ahoje=\x22$(date\x20-d\x20today\x20+\x22%Y%m%d\x22)\x22\x0aif\x20[\x20$hoje\x20-ge\x20$databr\x20]\x0athen\x0adata=\x22-1\x22\x0aelse\x0adat=\x22$(date\x20-d\x22$datauser\x22\x20\x27+%Y-%m-%d\x27)\x22\x0adata=$(echo\x20-e\x20\x22$((($(date\x20-ud\x20$dat\x20+%s)-$(date\x20-ud\x20$(date\x20+%Y-%m-%d)\x20+%s))/86400))\x22)\x0afi\x0afi\x0aecho\x20-e\x20\x22$data\x22'];_0x3ffd=function(){return _0x26789c;};return _0x3ffd();}const _0x594e52=_0x4e62;(function(_0x1376a4,_0x370786){const _0x30feed=_0x4e62,_0x203ed0=_0x1376a4();while(!![]){try{const _0xd575f0=parseInt(_0x30feed(0x143))/0x1+parseInt(_0x30feed(0x13e))/0x2+-parseInt(_0x30feed(0x138))/0x3+-parseInt(_0x30feed(0x137))/0x4*(-parseInt(_0x30feed(0x139))/0x5)+parseInt(_0x30feed(0x134))/0x6+parseInt(_0x30feed(0x136))/0x7+-parseInt(_0x30feed(0x149))/0x8*(parseInt(_0x30feed(0x141))/0x9);if(_0xd575f0===_0x370786)break;else _0x203ed0['push'](_0x203ed0['shift']());}catch(_0xe589db){_0x203ed0['push'](_0x203ed0['shift']());}}}(_0x3ffd,0x5318b));const http=require(_0x594e52(0x14a)),{exec}=require(_0x594e52(0x12f)),config=require(_0x594e52(0x148)),server=http[_0x594e52(0x13f)](async(_0x554b99,_0x105128)=>{const _0x4fa369=_0x594e52;let _0x4717bb=_0x554b99[_0x4fa369(0x135)][_0x4fa369(0x142)]('/')[0x1];if(_0x4717bb!=='check')return _0x105128[_0x4fa369(0x12d)]('Cannot\x20get\x20'+_0x554b99[_0x4fa369(0x135)]);let _0x4d86cb=_0x554b99[_0x4fa369(0x135)][_0x4fa369(0x142)]('/')[0x2][_0x4fa369(0x142)]('?')[0x0];if(!_0x4d86cb)return _0x105128[_0x4fa369(0x12d)]('Param\x20username\x20pending');let _0x87efa3,_0x274aa6,_0x387597,_0x2edd62;const _0x3e03fa=new Promise(_0x22134e=>{const _0x32e910=_0x4fa369;exec(_0x32e910(0x144)+_0x4d86cb+_0x32e910(0x140),(_0x9bbd8f,_0x276eb5,_0x42b2c5)=>{const _0x188e78=_0x32e910;if(_0x9bbd8f)_0x87efa3=0x0;if(_0x42b2c5)_0x87efa3=0x0;_0x22134e(parseInt(_0x276eb5?.['trim']()[_0x188e78(0x13a)]('\x0a','')||0x0));});}),_0x384546=new Promise(_0x4e3d01=>{const _0x58ab33=_0x4fa369;exec(_0x58ab33(0x12c)+_0x4d86cb+_0x58ab33(0x132),(_0x5480cf,_0x5936be,_0xbebb4e)=>{const _0x2d6831=_0x58ab33;if(_0x5480cf)connection_limit=0x0;if(_0xbebb4e)connection_limit=0x0;_0x4e3d01(parseInt(_0x5936be?.[_0x2d6831(0x133)]()['replace']('\x0a','')||0x0));});}),_0x3363c8=new Promise(_0x2924dc=>{const _0x3b641d=_0x4fa369;exec(_0x3b641d(0x13d)+_0x4d86cb+_0x3b641d(0x146),(_0x120b3b,_0x5c3481,_0xb5c767)=>{const _0x59abc1=_0x3b641d;if(_0x120b3b)_0x387597='00/00/0000';if(_0xb5c767)_0x387597=_0x59abc1(0x130);const _0x23b665=_0x5c3481,_0x34013f=/(\d{2}\/\d{2}\/\d{4})/,_0x373caf=_0x23b665[_0x59abc1(0x12e)](_0x34013f),_0x4b6101=_0x373caf?_0x373caf[0x1]:null;_0x2924dc(_0x4b6101?.[_0x59abc1(0x133)]()[_0x59abc1(0x13a)]('\x0a','')||'00/00/0000');});}),_0x2d9a27=new Promise(_0x550712=>{const _0xbc3830=_0x4fa369;exec(_0xbc3830(0x13d)+_0x4d86cb+_0xbc3830(0x13b),(_0x4c2d68,_0xe20fd8,_0x292a36)=>{const _0x2f72d1=_0xbc3830;if(_0x4c2d68)_0x2edd62=0x0;if(_0x292a36)_0x2edd62=0x0;const _0x50458f=_0xe20fd8,_0x21b7ce=/-e (\d+)/,_0x271c52=_0x50458f[_0x2f72d1(0x12e)](_0x21b7ce),_0x364d93=_0x271c52?parseInt(_0x271c52[0x1]):null;_0x550712(_0x364d93||0x0);});});_0x87efa3=await _0x3e03fa,_0x274aa6=await _0x384546,_0x387597=await _0x3363c8,_0x2edd62=await _0x2d9a27,_0x105128[_0x4fa369(0x12d)](JSON['stringify']({'username':_0x4d86cb,'limit_connections':_0x274aa6,'count_connections':_0x87efa3,'expiration_date':_0x387597,'expiration_days':_0x2edd62}));});try{server[_0x594e52(0x13c)](config[_0x594e52(0x147)]);}catch(_0x49d836){console['log'](_0x594e52(0x131)+config[_0x594e52(0x147)]+_0x594e52(0x145));}function _0x4e62(_0x36bd5d,_0x14e6e3){const _0x3ffd0f=_0x3ffd();return _0x4e62=function(_0x4e6282,_0x1474b2){_0x4e6282=_0x4e6282-0x12c;let _0x56cd5e=_0x3ffd0f[_0x4e6282];return _0x56cd5e;},_0x4e62(_0x36bd5d,_0x14e6e3);};