humarb

Simple Subdomain Checker

Sep 26th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. subdomain checker Recoded by X.X
  6.  
  7. use it with cmd / xampp
  8.  
  9. php script.php 'name of ur domain'
  10.  
  11. domaine without http://
  12. */
  13. print"
  14. +-----------------------------------+
  15. |     Simple subdomain checker      |
  16. |         Recoded by X.X            |
  17. |         Greetz to MagSec          |
  18. |  http://humartutor.blogspot.com/  |
  19. +-----------------------------------+
  20.  
  21. ";
  22.  
  23.   if(!$argv[1]){
  24.      die("\n usage $argv[0] 'name of ur domain' \n");
  25.    }
  26.     if(eregi("http://",$argv[1])){
  27.       die("\n pls domain without htpp:// \n");
  28.     }else{
  29. $g=@file_get_contents("http://www.pagesinventory.com/search/?s=$argv[1]");
  30. @preg_match_all('#<td><a href="\/domain\/(.*?).html">#',$g,$matches) ;
  31.  
  32. foreach ($matches[1] as $ul){
  33.   echo "http://".$ul."/"."\n";
  34. }
  35.  }
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment