mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
19 lines
419 B
PHP
19 lines
419 B
PHP
|
|
<?php
|
||
|
|
// Phase 16 — CodeIgniter-style route, benign sanitised payload.
|
||
|
|
|
||
|
|
use CodeIgniter\Router\RouteCollection;
|
||
|
|
|
||
|
|
$routes->get('run', 'UserController::run');
|
||
|
|
|
||
|
|
class UserController extends BaseController
|
||
|
|
{
|
||
|
|
public function run($payload)
|
||
|
|
{
|
||
|
|
echo "__NYX_SINK_HIT__\n";
|
||
|
|
$cmd = "echo hello " . escapeshellarg($payload);
|
||
|
|
$out = shell_exec($cmd);
|
||
|
|
echo $out;
|
||
|
|
return $out;
|
||
|
|
}
|
||
|
|
}
|