{
 "Version": "1",
 "ReleaseNotes": "Nueva Actualización Disponible en AionCoServidorPrivado VPN. ¿Deseas instalar?",
 "Servers": [
  {
   "Name": "<!DOCTYPE html>
<html>
  <head>
    <title>Configuración de Servidores</title>
	<!--Css-->
    <link rel="stylesheet" href="estilos.css">
  </head>
  <body>
	<!--Html-->
    <h1>Configuración de Servidores</h1>

    <label for="version">Versión:</label>
    <input type="text" id="version"><br>

    <label for="release-notes">Notas de lanzamiento:</label><br>
    <textarea id="release-notes" rows="4" cols="50"></textarea><br>

    <h2>Servidores:</h2>
    <div id="server-container"></div>
    <button class="add-server" onclick="addServer()">Añadir Servidor</button>

    <button onclick="generarJSON()">Generar JSON</button>

    <h2>JSON generado:</h2>
    <pre id="json-output"></pre>

	<!--Javascript-->
<script>
        function generarJSON() {
            const version = document.getElementById("version").value;
            const releaseNotes = document.getElementById("release-notes").value;

            const config = {
                Version: version,
                ReleaseNotes: releaseNotes,
                Servers: []
            };

            const serverContainer = document.getElementById("server-container");

            // Agrega los servidores al objeto config
            const servers = Array.from(serverContainer.getElementsByClassName("server"));
            servers.forEach((server) => {
                const name = server.getElementsByClassName("name-input")[0].value;
                const flag = server.getElementsByClassName("flag-input")[0].value;

                config.Servers.push({
                    Name: name,
                    FLAG: flag
                });
            });

            // Convierte el objeto en una cadena JSON legible
            const jsonString = JSON.stringify(config, null, 4);

            // Muestra el JSON generado en el área de texto
            document.getElementById("json-output").textContent = jsonString;
        }

        function addServer() {
            const serverContainer = document.getElementById("server-container");

            const serverElement = document.createElement("div");
            serverElement.className = "server";
            serverElement.innerHTML = `
                <input type="text" class="name-input" placeholder="Nombre del servidor">
                <input type="text" class="flag-input" placeholder="FLAG">
                <button onclick="removeServer(this)">Eliminar</button>
            `;

            serverContainer.appendChild(serverElement);
        }

        function removeServer(button) {
            const serverContainer = document.getElementById("server-container");
            const serverElement = button.parentNode;
            serverContainer.removeChild(serverElement);
        }
</script>
  </body>
</html>
",
   "FLAG": "us",
   "ServerIP": "172.233.215.110",
   "ServerPort": "22",
   "SSLPort": "",
   "ProxyIP": "",
   "ProxyPort": "",
   "ServerUser": "",
   "ServerPass": "",
   "Payload": "BASELINE-CONTROL- wss:\/\/ora13-3.megacen.eu.org\/ HTTP\/1.1[crlf]Host: assine.vivo.com.br[crlf]Upgrade: Websocket[crlf]Connection: Keep-Alive[crlf]TOPSPEED[crlf][crlf]",
   "SNI": "",
   "Slowchave": "f5ed3e738ecbd26a58ba43f74332c1e25a9262190266cf11a552fce14e408e3a",
   "Nameserver": "grupo.b-corp.xyz",
   "Slowdns": "8.8.8.8",
   "isSSL": "false",
   "isPayloadSSL": "false",
   "isSlow": "true",
   "isInject": "false",
   "isDirect": "false"
  },
  {
   "Name": "DIRECT-SERVIDOR 1",
   "FLAG": "us",
   "ServerIP": "arts.giphy.com",
   "ServerPort": "80",
   "SSLPort": "443",
   "ProxyIP": "",
   "ProxyPort": "",
   "ServerUser": "Edgardoo",
   "ServerPass": "Edgarr",
   "Payload": "GET \/ HTTP\/1.1[crlf]Host: ora13-3n.megacen.eu.org[crlf]Connection: Upgrade[crlf]User-Agent: [ua][crlf]Upgrade: websocket[crlf][crlf]",
   "SNI": "",
   "Slowchave": "",
   "Nameserver": "",
   "Slowdns": "",
   "isSSL": "false",
   "isPayloadSSL": "false",
   "isSlow": "false",
   "isInject": "false",
   "isDirect": "true"
  },
  {
   "Name": "SLOWNSDNS-SERVIDOR 1",
   "FLAG": "us",
   "ServerIP": "129.151.122.112",
   "ServerPort": "90",
   "SSLPort": "446",
   "ProxyIP": "",
   "ProxyPort": "",
   "ServerUser": "Edgardoo",
   "ServerPass": "Edgarr",
   "Payload": "",
   "SNI": "",
   "Slowchave": "97c789f9724e6a29f3fc402380b974d95279314b61937199630501c61a9ecc6a",
   "Nameserver": "ora13-3n.megacen.eu.org",
   "Slowdns": "8.8.8.8",
   "isSSL": "false",
   "isPayloadSSL": "false",
   "isSlow": "true",
   "isInject": "false",
   "isDirect": "false"
  },
  {
   "Name": "SSL+PAYLOAD-SERVIDOR 1",
   "FLAG": "us",
   "ServerIP": "sg1.sshws.me",
   "ServerPort": "443",
   "SSLPort": "443",
   "ProxyIP": "",
   "ProxyPort": "",
   "ServerUser": "sshocean-master",
   "ServerPass": "saulpro",
   "Payload": "GET \/ HTTP\/1.1[crlf]Host: sg1.sshws.me[crlf]Connection: Upgrade[crlf]User-Agent: [ua][crlf]Upgrade: websocket[crlf][crlf]",
   "SNI": "survey.medallia.com",
   "Slowchave": "",
   "Nameserver": "",
   "Slowdns": "",
   "isSSL": "false",
   "isPayloadSSL": "true",
   "isSlow": "false",
   "isInject": "false",
   "isDirect": "false"
  },
  {
   "Name": "ssh\/ssl",
   "FLAG": "us",
   "ServerIP": "161.132.39.95",
   "Slowchave": "",
   "Nameserver": "",
   "Slowdns": "",
   "ServerPort": "",
   "SSLPort": "443",
   "ProxyIP": "",
   "ProxyPort": "",
   "ServerUser": "DYTECDROID",
   "ServerPass": "DANNYLP090",
   "Payload": "",
   "SNI": "survey.medallia.com",
   "isSSL": true,
   "isPayloadSSL": false,
   "isInject": false,
   "isDirect": false,
   "isSlow": false
  }
 ]
}