« Back to History
test_exec.php
|
20260921_175631.php
Initial Domain Snapshot
Copy Code
<?php echo "<pre>"; echo "Checking PHP configuration...\n\n"; // Show PHP version and disabled functions echo "PHP Version: " . phpversion() . "\n\n"; echo "Disabled functions: \n"; print_r(explode(',', ini_get('disable_functions'))); echo "\n\nNow testing exec()...\n"; if (function_exists('exec')) { echo "✅ exec() function exists.\n"; $output = shell_exec('whoami 2>&1'); echo "Shell test output: " . $output . "\n"; } else { echo "❌ exec() function does not exist in this PHP environment.\n"; } echo "</pre>"; ?>