Our Feeds

Thursday, 6 November 2014

Ajith Kp

Reverse IP Look Up Code in PHP

          Reverse IP look up is most important step for a defacer hacker. This allow you to find other websites hosted in server. This is a sample code for reverse IP look up using PHP.

Link to Source Code: http://pastebin.com/VU6tXMeq


          Source Code

<?php
/*
 REVERSE IP IN PHP.
 CODED BY AJITH KP
 (C) http://terminalcoders.blogspot.in (C)
 http://fb.com/ajithkp560
*/
?>

<html>
<style>
html { background:url(http://www.ajithkp560.hostei.com/images/background.gif) black; }
#result{ -moz-border-radius: 10px; border-radius: 10px; border:1px solid green; padding:4px 8px; line-height:16px; background:#111111; color:#aaa; margin:0 0 8px 0; min-height:100px;}
input { font-size:11px; background:#191919; color:green; margin:0 4px; border:1px solid  green; }
    .tbl{ width:100%; padding:4px 0; color:#888; font-size:15px; text-align:center;  }
    .tbl a{ text-decoration:none; color:green; font-size:15px; vertical-align:middle; }
    .tbl a:hover{text-decoration:underline;}
    .tbl td{ border-bottom:1px solid #222222; padding:0 8px; line-height:24px;  vertical-align:middle; width: 300px; }
    .tbl th{ padding:3px 8px; font-weight:normal; background:#222222; color:#555; vertical-align:middle; }
    .tbl td:hover{ background:#181818; }
</style>
<title>REVERSE IP LOOK UP TOOL</title>
<div id=result>

<?php
echo "<center><br /><br /><form><input size='60' value='Enter Site' name='url' /><input type='submit' value='>>'></form></center>";
if(isset($_GET["url"]))
{
$site = $_GET["url"];
$url = "http://domains.yougetsignal.com/domains.php";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($ch, CURLOPT_POSTFIELDS,  "remoteAddress=$site&ket=");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
$resp = curl_exec($ch);
$resp = str_replace("[","", str_replace("]","", str_replace("\"\"","", str_replace(", ,",",", str_replace("{","", str_replace("{","", str_replace("}","", str_replace(", ",",", str_replace(", ",",",  str_replace("'","", str_replace("'","", str_replace(":",",", str_replace('"','', $resp ) ) ) ) ) ) ) ) ) ))));
$array = explode(",,", $resp);
unset($array[0]);
echo "<table class=tbl>";
foreach($array as $lnk)
{
 print "<tr><td><a href='$lnk' target=_blank>$lnk</a></td></tr>";
}
echo "</table>";
curl_close($ch);
}
?>
</div>
</html>