(PHP) Código fonte do admin-find
Segue aqui o trecho de código do sistema de admin find postado alguns dias no blog
function url_exists($url){$handle = curl_init($url);if (false === $handle){return false;}curl_setopt($handle, CURLOPT_HEADER, false);curl_setopt($handle, CURLOPT_FAILONERROR, true);curl_setopt($handle, CURLOPT_HTTPHEADER, Array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15") ); // request as if Firefoxcurl_setopt($handle, CURLOPT_NOBODY, true);curl_setopt($handle, CURLOPT_RETURNTRANSFER, false);$connectable = curl_exec($handle);curl_close($handle);return $connectable;}if(isset($_GET['url'])){$arraySite = parse_url($_GET['url']);$site = $arraySite['scheme'] . "://" . $arraySite['host'] . '/';$try = explode("\n", str_replace("%EXT%", "php", file_get_contents('admins.txt')));$buffer = " ";$achou = 0;foreach($try as $buffer){if(url_exists($site . $buffer)){$achou = 1;break;}ob_flush();flush();}if(!$achou){echo "Nenhum site foi encontrado!";
}}