K4MVR3T717

Subdomain Detector

Nov 11th, 2016
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. Contoh : php script-name.php Website.nya
  5. Bukan : php script-name.php https://Website.nya/
  6. */
  7.  
  8.   if(!$argv[1]){
  9.      die("\n cara penggunaan: php $argv[0] 'nama domain yg akan di scan' \n");
  10.    }
  11.     if(eregi("http://",$argv[1])){
  12.       die("\n Udah gw bilang coeg, tanpa htpp:// \n");
  13.     }else{
  14. $g=@file_get_contents("http://www.pagesinventory.com/search/?s=$argv[1]");
  15. @preg_match_all('#<td><a href="\/domain\/(.*?).html">#',$g,$matches) ;
  16.  
  17. foreach ($matches[1] as $ul){
  18.   echo "http://".$ul."/"."\n";
  19. }
  20.  }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment