-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdemo.min.js
1 lines (1 loc) · 3.57 KB
/
demo.min.js
1
const _0x3b34 = ['join', 'body-parser', 'listen', 'json', 'end', 'unlink', 'ENOENT', './config', 'express', 'dev', 'redirect', 'access.log', 'text', 'body', 'log', 'delete', 'get', '/files/:name', 'client', '/text-files', 'simple\x20editor:\x20running\x20on\x20port\x20', 'path', 'status', 'utf-8', 'use', 'name', 'createWriteStream', '/files', 'error', 'cors', 'PORT', 'readdir', 'combined', 'MODE', 'readFile', 'code', 'params']; (function (_0x5abb3c, _0x3b3419) { const _0x118aac = function (_0x10ee2a) { while (--_0x10ee2a) { _0x5abb3c['push'](_0x5abb3c['shift']()); } }; _0x118aac(++_0x3b3419); }(_0x3b34, 0x1e1)); const _0x118a = function (_0x5abb3c, _0x3b3419) { _0x5abb3c = _0x5abb3c - 0x0; let _0x118aac = _0x3b34[_0x5abb3c]; return _0x118aac; }; 'use strict'; const _0x3f11b6 = require(_0x118a('0x8')); const _0x3243fb = require(_0x118a('0x1')); const _0x441863 = require('morgan'); const _0x618c71 = require(_0x118a('0x1d')); const _0x2765c7 = require('fs'); const _0x49cd00 = require(_0x118a('0x15')); const _0x411a08 = require(_0x118a('0x7')); const _0x3ad418 = __dirname + _0x118a('0x13'); const _0x350fb0 = _0x3f11b6(); _0x350fb0[_0x118a('0x18')](_0x618c71()); _0x350fb0[_0x118a('0x18')](_0x3243fb['json']()); const _0x4715b2 = _0x2765c7[_0x118a('0x1a')](_0x49cd00[_0x118a('0x0')](__dirname, _0x118a('0xb')), { 'flags': 'a' }); _0x350fb0[_0x118a('0x18')](_0x441863(_0x118a('0x20'), { 'stream': _0x4715b2 })); _0x350fb0[_0x118a('0x18')](_0x441863(_0x118a('0x9'))); _0x350fb0[_0x118a('0x18')]('/', _0x3f11b6['static'](_0x49cd00[_0x118a('0x0')](__dirname, _0x118a('0x12')))); _0x350fb0['get'](_0x118a('0x1b'), (_0x32761e, _0x659904, _0xd5cfa) => { _0x2765c7[_0x118a('0x1f')](_0x3ad418, (_0x1e8129, _0x58562f) => { if (_0x1e8129 && _0x1e8129[_0x118a('0x23')] === _0x118a('0x6')) { _0x659904[_0x118a('0x16')](0x194)[_0x118a('0x4')](); return; } if (_0x1e8129) { _0xd5cfa(_0x1e8129); return; } _0x659904[_0x118a('0x3')](_0x58562f); }); }); _0x350fb0[_0x118a('0x10')](_0x118a('0x11'), (_0x1de540, _0x121467, _0x55f95d) => { const _0x39213a = _0x1de540[_0x118a('0x24')][_0x118a('0x19')]; _0x2765c7[_0x118a('0x22')](_0x3ad418 + '/' + _0x39213a, _0x118a('0x17'), (_0x131d29, _0x262172) => { if (_0x131d29 && _0x131d29[_0x118a('0x23')] === _0x118a('0x6')) { _0x121467[_0x118a('0x16')](0x194)['end'](); return; } if (_0x131d29) { _0x55f95d(_0x131d29); return; } const _0x4a98f2 = { 'name': _0x39213a, 'text': _0x262172 }; _0x121467[_0x118a('0x3')](_0x4a98f2); }); }); _0x350fb0['post'](_0x118a('0x11'), (_0x5ea641, _0x46cdb0, _0x43be52) => { const _0x1705df = _0x5ea641[_0x118a('0x24')][_0x118a('0x19')]; const _0xed83da = _0x5ea641[_0x118a('0xd')][_0x118a('0xc')]; _0x2765c7['writeFile'](_0x3ad418 + '/' + _0x1705df, _0xed83da, _0x509e5c => { if (_0x509e5c) { _0x43be52(_0x509e5c); return; } _0x46cdb0[_0x118a('0xa')](0x12f, _0x118a('0x1b')); }); }); _0x350fb0[_0x118a('0xf')](_0x118a('0x11'), (_0x3e4c23, _0x55827e, _0x103353) => { const _0x4769ba = _0x3e4c23[_0x118a('0x24')][_0x118a('0x19')]; _0x2765c7[_0x118a('0x5')](_0x3ad418 + '/' + _0x4769ba, _0x22f5f4 => { if (_0x22f5f4 && _0x22f5f4['code'] === _0x118a('0x6')) { _0x55827e['status'](0x194)[_0x118a('0x4')](); return; } if (_0x22f5f4) { _0x103353(_0x22f5f4); return; } _0x55827e[_0x118a('0xa')](0x12f, '/files'); }); }); _0x350fb0[_0x118a('0x18')](function (_0x127293, _0x1b965d, _0x2dae5b, _0x57b791) { console[_0x118a('0x1c')](_0x127293['stack']); _0x2dae5b[_0x118a('0x16')](0x1f4)[_0x118a('0x4')](); }); _0x350fb0[_0x118a('0x2')](_0x411a08[_0x118a('0x1e')], () => { console[_0x118a('0xe')](_0x118a('0x14') + _0x411a08[_0x118a('0x1e')] + '\x20(' + _0x411a08[_0x118a('0x21')] + '\x20mode)'); });