Many People are very curious to know the ip of the friend we are chatting using Google talk, Yahoo, Facebook though they don't know how to use it in a good or a bad way. I will In this article show you how to steal/trace ip using a PHP script
NOTE: This tutorial is for educational purposes only, I am NOT responsible in any way for how this information is used, use it at your own risk. :)
check live example here live ip log
How to steal/trace a Ip adress??
Register a Free hosting at 110mb or byethost and follow the steps.
CODE 1:
<html>
<?php
$file = "ips.txt";
$f=fopen($file, 'a');
fwrite($f,$_SERVER['REMOTE_ADDR']."\n");
fclose($f);
?>
<p>Error! Try again </p>
</body>
</html>
Save it as xxx.php
CODE 2:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$dt = date("l dS \of F Y h:i:s A");
$file=fopen("ips.txt","a"); //ips.txt = Where it needs to save to. Here it must be hosted in same map !
$data = $ip.' '.$dt."\n";
fwrite($file, $data);
fclose($file);
header( 'Location: http://www.hackrich.blogspot.com' ) ; //www.hackrich.blogspot.com = Site where it needs to redirected to
?>
Save it as xxx.php
NOTE: This tutorial is for educational purposes only, I am NOT responsible in any way for how this information is used, use it at your own risk. :)
check live example here live ip log
How to steal/trace a Ip adress??
Register a Free hosting at 110mb or byethost and follow the steps.
CODE 1:
<html>
<?php
$file = "ips.txt";
$f=fopen($file, 'a');
fwrite($f,$_SERVER['REMOTE_ADDR']."\n");
fclose($f);
?>
<p>Error! Try again </p>
</body>
</html>
Save it as xxx.php
CODE 2:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$dt = date("l dS \of F Y h:i:s A");
$file=fopen("ips.txt","a"); //ips.txt = Where it needs to save to. Here it must be hosted in same map !
$data = $ip.' '.$dt."\n";
fwrite($file, $data);
fclose($file);
header( 'Location: http://www.hackrich.blogspot.com' ) ; //www.hackrich.blogspot.com = Site where it needs to redirected to
?>
Save it as xxx.php
1.) First of all you need to make a new .txt document on the website you're uploading this to. Name it ips.txt (You can change that in the script. Where it says $file = 'ips.txt'; in the second line)(which i have done already) . Then change the CHMOD to 777.
2.) Now you need to paste the script above in to a xxx.php document, and upload it.
3.) Now you make people visit your site, and they will see only "Error! Try again" ! (for code 1)
4.) To view the IP, you simply add "/ips.txt" after your domain, and you'll see the IP.
Share it give a like :)
0 comments:
Post a Comment
Share our post if you like it..