nyx/tests/dynamic_fixtures/php/cli_script/benign.php
2026-06-05 10:16:30 -05:00

11 lines
262 B
PHP

<?php
// Phase 15 — CLI script with $argv, benign.
// Validates $argv[1] then runs a fixed echo.
$payload = $argv[1] ?? '';
if (!preg_match('/^[A-Za-z0-9]{1,32}$/', $payload)) {
echo "invalid\n";
exit(0);
}
$out = shell_exec("echo hello");
echo $out;