elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Los 10 CVE más críticos (peligrosos) de 2020


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web
| | |-+  PHP (Moderador: #!drvy)
| | | |-+  [PHP Class] Get Info By Doddy H
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [PHP Class] Get Info By Doddy H  (Leído 1,576 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[PHP Class] Get Info By Doddy H
« en: 7 Octubre 2011, 01:21 am »

Bueno , esto no es nada del otro mundo , solo una simple clase que te da informacion sobre el visitante

Código:
<?php 

/*

Simple Class GetInfo

By Doddy Hackman

*/


class getinfo {


public function ip() {
return htmlentities($_SERVER['SERVER_ADDR']);
}

public function navegador() {

$navegador = get_browser($_SERVER['HTTP_USER_AGENT'], true);
return array(htmlentities($navegador['browser']),htmlentities($navegador['version']));
}

public function so() {

$navegador = get_browser($_SERVER['HTTP_USER_AGENT'], true);
return htmlentities($navegador['platform']);

}
}

?>

Funciones

Código:
ip() // Te da la IP
navegador() // Te da el navegador
so() // te da el SO



En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[PHP Class] Loginow 0.2 By Doddy H
PHP
BigBear 0 1,541 Último mensaje 7 Octubre 2011, 01:21 am
por BigBear
[PHP] Simple Chat By Doddy H
PHP
BigBear 0 2,280 Último mensaje 7 Octubre 2011, 01:26 am
por BigBear
[Python] HellRat By Doddy H
Scripting
BigBear 0 1,490 Último mensaje 7 Octubre 2011, 01:37 am
por BigBear
[Python] Phising Gen By Doddy H
Scripting
BigBear 0 1,834 Último mensaje 7 Octubre 2011, 01:39 am
por BigBear
[Perl] Terr0r B0t By Doddy H
Scripting
BigBear 0 2,146 Último mensaje 7 Octubre 2011, 15:55 pm
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines