mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
10 lines
251 B
JavaScript
10 lines
251 B
JavaScript
const { exec } = require('child_process');
|
|||
|
|||
function handle_request(req) {
|
|||
if (!is_authenticated(req)) {
|
|||
// Negated: True branch means NOT authenticated.
|
|||
// Auth level must NOT be elevated here.
|
|||
exec(req.body.cmd);
|
|||
}
|
|||
}
|