Filehost.ro - gazduire fisiere
HackPedia - Comunitatea Hackerilor Romani
Hacking, it security, programming, vulnerability, games, newsletter, it and c, programare, ethical hacking, exploits, information security, penetration testing, online security, web hacking,internet, antivirus, security, blocker, firewall
Nu sunteti logat.
Lista Forumurilor Pe Tematici
Nou pe simpatie:
Ank_beleaua pe Simpatie.ro
Femeie
25 ani
Bucuresti
cauta Barbat
35 - 51 ani
HackPedia - Comunitatea Hackerilor RomaniInregistrareLoginPoze
HackPedia - Comunitatea Hackerilor Romani / Web Design / [PHP] Spioneaza site-ul  
Autor
Mesaj Pagini: 1
#1
Fire7
Membru Freak
Postari: 113
In acest tutorial veti invata cum sa aflati unele date de la vizitatorii site-ului dumneavoastra:
Pentru inceput va voi prezenta niste variabile de tip standard:

HOSTNAME - modul in care server-ul face referinta la sine insusi
OSTYPE - sistemul de operare pe care-l foloseste server-ul
HTTP_USER_AGENT - Specifica browser-ul si platforma utilizata de vizitator
DOCUMENT_ROOT - Indica unde sunt afisate fisierele si directoarele in server
etc...




<html>
<head>
<title>Spy on yor site code by Alpha Thema </title>
</head>
<table border="5" bg color="white">
<tr>
<td><center>
<body>
<?php



$spy = fopen("spy.html" , "a";
$site = $HTTP_REFERER;
$ip = $REMOTE_ADDR;
$browser = $HTTP_USER_AGENT;
$time = date("H:i dS F";

echo "The site you came from: " . $_SERVER["HTTP_REFERER"] . "<br />";
echo "ALL IP ADRESSES, TIME, SITE AND YOUR BROWSERS ARE BEING CAPTURED!";

fwrite($spy,"<<<<<------------BEGIN------------>>>>><br />";
fwrite($spy,"Site you came from: $site <br />";
fwrite($spy,"IP Address: $ip <br />";
fwrite($spy,"Browser: $browser <br />";
fwrite($spy,"Time: $time <br />";
fwrite($spy,"<<<<<------------END------------>>>>><br />";

fclose($spy);
?>

</table>
</center></td>
</tr>
</table border>
</body>
</html>



Salveaza fisierul cu numele spy.php si creaza un alt fisier de tip dext numit spy.html si scrie in el :


<html>
<head>
<title>Spy on your site by Alpha Thema
<head>
<body>


Salveaza-l ...

Acum deschide fisierul index.html  si scrie intre etichetele <body> urmatorul cod:


<script src='Link-ul catre fisierul spy.php'></script>


© Alpha Thema ~ Kimnotyze


 
   
Pagini: 1  
Mergi la