[Tool] Is Online v3.0 (By 2Fac3R)

Iniciado por 2Fac3R, Julio 28, 2015, 06:25:24 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Julio 28, 2015, 06:25:24 PM Ultima modificación: Julio 28, 2015, 06:27:18 PM por 2Fac3R
Con la idea de seguir mejorando los códigos, les comparto otro que he modificado y mejorado.

Código: php

<!DOCTYPE html>
<title> Is online? v3.0 By 2Fac3R</title>
<style>
        body,html{
                background-color:black;
                color:green;
        }
        #ok{
                font-weight:bold;
        }
        #bad{
                font-weight:bold;
                color:red;
        }
</style>
<center>
        <pre>
.___         ________         .__  .__            _________
|   | ______ \_____  \   ____ |  | |__| ____   ___\_____   \
|   |/  ___/  /   |   \ /    \|  | |  |/    \_/ __ \ /   __/
|   |\___ \  /    |    \   |  \  |_|  |   |  \  ___/|   |   
|___/____  > \_______  /___|  /____/__|___|  /\___  >___|   
         \/          \/     \/             \/     \/<___>   
        </pre>

<form action="" method="POST">
        URL: <input type="text" name="page" value="http://">
        <input type="submit" name="send" value="Comprobar!">
</form> <br> <i>By 2Fac3R</i> <br> <br>


<?php
error_reporting(0);
/*
                ¿Is online? 3.0 By 2Fac3R
        Verificar si un servidor web esta online
                                                                                         */

function verificar($url)
{
$url = htmlentities($url);
        if(filter_var($url,FILTER_VALIDATE_URL) or filter_var($url,FILTER_VALIDATE_IP)){
                echo fopen($url,'r') ? "$url <div id='ok'>Online</div>" : "$url <div id='bad'>Offline</div>";
        }else{
                echo '<script>alert("URL/IP no valida!");window.location=""</script>';
        }
}


if(!empty($_POST['page'])){
     verificar($_POST['page']);
}
?>

<br><b>Gr33tz to:</b> <br> <br>
   
   xt3mp, arcangel_nigth, ANTRAX, 11Sep, Kr34t0r, GAMARRA, SkippyCreammy, v1c0_h4ck <br>
   w4rning, Snifer, arthusu, Kodeinfect, [Q]3rV[0], WilyXem, m3x1c0h4ck, etc, etc, etc ... <br> <br>
   <a href="http://www.underc0de.org"><b>Underc0de.Org</b></a>
   </center>


Espero le den utilidad.
Zalu2
Sólo el conocimiento te hace libre.

Excelente script, pero deberías mejorar algunas cosas como las font y los colores y también el nombre porque ''Is Online?'' = Es Online? debería ser: This Online? así se vería mejor ;)

Saludos.

No tienes permitido ver los links. Registrarse o Entrar a mi cuenta
Excelente script, pero deberías mejorar algunas cosas como las font y los colores y también el nombre porque ''Is Online?'' = Es Online? debería ser: This Online? así se vería mejor ;)

Saludos.

Realmente se traduciría como "está en linea?", también podría ser "Is this online?" pero me gusta más la otra forma. El tema del diseño no importa mucho, lo escencial en este caso es el código php.
Zalu2
Sólo el conocimiento te hace libre.