How to find a particular URL inside a domain using PHP? -


i want find specific url inside domain not indexed on google search engine. website isn't mine , don't have privileges @ all.

i have tried using sitemap generator in hope displays it:

http://www.example.com?user=9191919 http://www.example.com?user=3636363 ... 

but allows me see 500 urls.


is there php way search url without using brute force?

i know stored @ path "example.com/pages" + numbers, maybe can shorten search.

there aren't many practical solutions seems talking about. brute forcing simplest solution if have time.

i assume wanting search page content here.

<?php  set_exec_limit(0); ob_start();  $url_prefix = "http://www.example.com?user="; $search = "findme"; $start = 10; $end = 1000000;  for($i = $start; $i < $end; $i++){     $content = file_get_contents($url.$i);     if(stripos($content,$search) !== false){         print $url.$i." \n";         ob_flush();         usleep(500); # take easy     } }  ob_end_flush(); ?> 

this ought started if it's not whole darn thing. easy peasy.


ps: don't turn usleep() down further. if anything, set 1000 safe. it's better take time, not risks.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -