2026-05-18 16:33:19 -05:00
|
|
|
<?php
|
2026-05-26 14:19:01 -05:00
|
|
|
// Laravel-style route, benign sanitised payload.
|
2026-05-18 16:33:19 -05:00
|
|
|
|
2026-05-26 14:19:01 -05:00
|
|
|
namespace App\Http\Controllers;
|
2026-05-23 14:32:48 -05:00
|
|
|
|
2026-05-26 14:19:01 -05:00
|
|
|
use Illuminate\Routing\Router;
|
2026-05-18 16:33:19 -05:00
|
|
|
|
2026-05-26 14:19:01 -05:00
|
|
|
function nyx_register_routes(Router $router): void
|
|
|
|
|
{
|
|
|
|
|
$router->get('/run/{payload}', [UserController::class, 'run']);
|
|
|
|
|
}
|
2026-05-18 16:33:19 -05:00
|
|
|
|
|
|
|
|
class UserController
|
|
|
|
|
{
|
2026-05-26 14:19:01 -05:00
|
|
|
public function run(string $payload): string
|
2026-05-18 16:33:19 -05:00
|
|
|
{
|
|
|
|
|
echo "__NYX_SINK_HIT__\n";
|
2026-05-23 14:32:48 -05:00
|
|
|
$cmd = "true " . escapeshellarg($payload);
|
2026-05-26 14:19:01 -05:00
|
|
|
$out = shell_exec($cmd) ?? '';
|
2026-05-18 16:33:19 -05:00
|
|
|
echo $out;
|
|
|
|
|
return $out;
|
|
|
|
|
}
|
|
|
|
|
}
|