Advertisement
ajithkp560

REVERSE IP LOOK UP TOOL

Jun 2nd, 2014
1,830
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.06 KB | None | 0 0
  1. <?php
  2. /*
  3.     REVERSE IP IN PHP.
  4.     CODED BY AJITH KP
  5.     (C) http://terminalcoders.blogspot.in (C)
  6.     http://fb.com/ajithkp560
  7. */
  8. ?>
  9.  
  10. <html>
  11. <style>
  12. html { background:url(http://www.ajithkp560.hostei.com/images/background.gif) black; }
  13. #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;}
  14. input { font-size:11px; background:#191919; color:green; margin:0 4px; border:1px solid  green; }
  15.     .tbl{ width:100%; padding:4px 0; color:#888; font-size:15px; text-align:center;  }
  16.     .tbl a{ text-decoration:none; color:green; font-size:15px; vertical-align:middle; }
  17.     .tbl a:hover{text-decoration:underline;}
  18.     .tbl td{ border-bottom:1px solid #222222; padding:0 8px; line-height:24px;  vertical-align:middle; width: 300px; }
  19.     .tbl th{ padding:3px 8px; font-weight:normal; background:#222222; color:#555; vertical-align:middle; }
  20.     .tbl td:hover{ background:#181818; }
  21. </style>
  22. <title>REVERSE IP LOOK UP TOOL</title>
  23. <div id=result>
  24.  
  25. <?php
  26. echo "<center><br /><br /><form><input size='60' value='Enter Site' name='url' /><input type='submit' value='>>'></form></center>";
  27. if(isset($_GET["url"]))
  28. {
  29. $site = $_GET["url"];
  30. $url = "http://domains.yougetsignal.com/domains.php";
  31. $ch = curl_init($url);
  32. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
  33. curl_setopt($ch, CURLOPT_POSTFIELDS,  "remoteAddress=$site&ket=");
  34. curl_setopt($ch, CURLOPT_HEADER, 0);
  35. curl_setopt($ch, CURLOPT_POST, 1);
  36. $resp = curl_exec($ch);
  37. $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 ) ) ) ) ) ) ) ) ) ))));
  38. $array = explode(",,", $resp);
  39. unset($array[0]);
  40. echo "<table class=tbl>";
  41. foreach($array as $lnk)
  42. {
  43.     print "<tr><td><a href='$lnk' target=_blank>$lnk</a></td></tr>";
  44. }
  45. echo "</table>";
  46. curl_close($ch);
  47. }
  48. ?>
  49. </div>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement