Advertisement
Aluf

[PHP] Reverse IP Lookup

Feb 6th, 2015
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.30 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. @set_time_limit(0);
  4. echo "<p align='center'>
  5. <img border='0' src='http://www.seomastering.com/myimages/img/Geolocation.jpg'></p>";
  6. echo "<center><font color='#006600' size='4' face='impact'>Ip Lookup Reverse Domain By Aluf</center></font><div id=result>";
  7.  
  8.  
  9. echo "<center><br /><br /><form><input size='60' value='yahoo.com' name='ghost' /><input type='submit' value='✓'></form></center>";
  10. if(isset($_GET["ghost"]))
  11. {
  12. $site = $_GET["ghost"];
  13. $ghost = "http://domains.yougetsignal.com/domains.php";
  14.  
  15. //Curl Function
  16. $ch = curl_init($ghost);
  17. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
  18. curl_setopt($ch, CURLOPT_POSTFIELDS,  "remoteAddress=$site&ket=");
  19. curl_setopt($ch, CURLOPT_HEADER, 0);
  20. curl_setopt($ch, CURLOPT_POST, 1);
  21. $resp = curl_exec($ch);
  22. $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 ) ) ) ) ) ) ) ) ) ))));
  23. $array = explode(",,", $resp);
  24. unset($array[0]);
  25. echo "<table class=tbl>";
  26. foreach($array as $lnk)
  27. {
  28.         print "<tr><td><a href='$lnk' target=_blank>$lnk</a></td></tr>";
  29. }
  30. echo "</table>";
  31. curl_close($ch);
  32. }
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement