Advertisement
CYBERSERKERS

Reverse IP

Nov 14th, 2015
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.92 KB | None | 0 0
  1.  
  2.     <meta content="XPLOITER BY AZZATSSINS CYBERSERKERS OF PSYCHOPATH" name="description" />
  3. <title>REVERSE IP | AZZATSSINS | IDBTE4M</title>
  4. <body style='color: #000000;background:url(http://azzat.wap.mu/files/1049320/IMG_20150725_103425.JPG) repeat scroll center top;background-attachment: fixed;SCROLLBAR-FACE-COLOR: #F1F1F1; MARGIN: 0px;SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; OVERFLOW: auto;'>
  5. <center>
  6. <h1>Reverse IP</h1>
  7. <form method=POST>
  8. IP: <input type=text size=30 name=ip>
  9. <input type=submit value=Start.>
  10. </form>
  11. </center>
  12. <?php
  13. #Reverse iP
  14. @set_time_limit(0);
  15. if(isset($_POST['ip'])){
  16. $ip=trim($_POST['ip']);
  17. echo"<center><font size='2' face='Courier'>Reverse IP results for $ip<br />==============<br /><br />There are ".sizeof(bing($ip))." domains hosted on this server.<br />The complete listing of these is below:<br /><br />";
  18. echo'<table border="1"><tr><td>Domain</td></tr>';
  19. foreach(bing($ip) as $domain){
  20. echo"<tr><td>$domain</td></tr>";
  21. }
  22. echo'</font></center>';
  23. }
  24. function bing($ip){
  25. $ch=curl_init();
  26. $i=1;
  27. while($i){
  28. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  29. curl_setopt($ch,CURLOPT_URL,"http://www.bing.com/search?q=ip%3A$ip&first=$i");
  30. curl_setopt($ch,CURLOPT_COOKIEFILE,'cookie.txt');
  31. curl_setopt($ch,CURLOPT_COOKIEJAR,'cookie.txt');
  32. curl_setopt($ch,CURLOPT_USERAGENT,'msnbot/1.0 (+http://search.msn.com/msnbot.htm)');
  33. curl_setopt($ch,CURLOPT_ENCODING,"gzip, deflate, compress");
  34. $data=curl_exec($ch);
  35. preg_match_all('/<h2><a href="(.*?)"/',$data,$matches);
  36. $links=array_unique($matches[1]);
  37. foreach($links as $link){
  38. $alllinks[]=correctit($link);
  39. }
  40. if(!preg_match('#"sw_next"#',$data)) break;
  41. $i+=10;
  42. }
  43. curl_close($ch);
  44. if(!empty($alllinks) && is_array($alllinks)){
  45. return array_unique($alllinks);
  46. }
  47. }
  48. function correctit($http){
  49. if((strpos(trim($http), "http://") === 0) || (strpos(trim($http), "https://") === 0)){
  50. return parse_url($http, PHP_URL_HOST);
  51. }else{
  52. return trim($http);
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement