Type: Limit Extension
Scanning: $type .$ext - Limit $x
\n"; $i = 1; while($x >= $i) { /////////////////////////////////////////////////////////////////////////////// // Here is where we generate a random string of 3 in the format XXX // This can be changed easily to the format LLN with this code instead: ///// $current = $chars[rand(0,25)].$chars[rand(0,25)].rand(0,35); // Or to L-N with this code: ///// $current = $chars[rand(0,25)]."-".rand(0,9); // Mix and match. Get what you're looking for! :P switch($type) { case 'L-L': $current = $chars[rand(0,25)]."-".$chars[rand(0,25)]; break; case 'N-N': $current = $chars[rand(26,35)]."-".$chars[rand(26,35)]; break; case 'NNN': $current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)]; break; case 'NNNN': $current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)]; break; case 'NNNNN': $current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)]; break; case 'NNNNNN': $current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)]; break; case 'LNL': $current = $chars[rand(0,25)].$chars[rand(26,35)].$chars[rand(0,25)]; break; case 'LLL': $current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)]; break; case 'LLLL': $current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)]; break; case 'LLLLL': $current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)]; break; case 'LLLLLL': $current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)]; break; default: $current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)]; } /////////////////////////////////////////////////////////////////////////////// // Here is where we start checking domains // Feel free to add/remove domains or change whois servers switch($ext) { case 'COM': case 'NET': $registry = "whois.nsiregistry.net"; break; case 'ORG': $registry = "whois.pir.org"; break; case 'INFO': $registry = "whois.afilias.net"; break; case 'BIZ': $registry = "whois.biz"; break; case 'US': $registry = "whois.nic.us"; break; default: $registry = "whois.nsiregistry.net"; } if(checkdomain($registry, $current.'.'.$ext)) { echo "
$i. "; echo strtoupper($current).".$ext
"; $i++; } ob_flush(); flush(); } echo "
"; } ?>