Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
edu-lms /
server /
middlewares /
[ HOME SHELL ]
Name
Size
Permission
Action
addDevMiddlewares.js
1.01
KB
-rw-r--r--
addProdMiddlewares.js
710
B
-rw-r--r--
frontendMiddleware.js
499
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : addDevMiddlewares.js
const path = require('path'); const webpack = require('webpack'); const webpackDevMiddleware = require('webpack-dev-middleware'); const webpackHotMiddleware = require('webpack-hot-middleware'); function createWebpackMiddleware(compiler, publicPath) { return webpackDevMiddleware(compiler, { logLevel: 'warn', publicPath, silent: true, stats: 'errors-only', }); } module.exports = function addDevMiddlewares(app, webpackConfig) { const compiler = webpack(webpackConfig); const middleware = createWebpackMiddleware( compiler, webpackConfig.output.publicPath, ); app.use(middleware); app.use(webpackHotMiddleware(compiler)); // Since webpackDevMiddleware uses memory-fs internally to store build // artifacts, we use it instead const fs = middleware.fileSystem; app.get('*', (req, res) => { fs.readFile(path.join(compiler.outputPath, 'index.html'), (err, file) => { if (err) { res.sendStatus(404); } else { res.send(file.toString()); } }); }); };
Close