There aren’t very many practical solutions for what it seems that you are talking about. Brute forcing is the simplest solution if you have the time.
I will assume that you are wanting to search the page for certain 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 it easy
}
}
ob_end_flush();
?>
This ought to get you started if it’s not already the whole darn thing. Easy peasy.
PS: Don’t turn usleep() down any further. If anything, set it up to 1000 just to be safe. It’s better to take time, not risks.
solved How to find a particular URL inside a domain using PHP?