Добро пожаловать, Гость!
Перехватка доменов - Полезный php код №2
Все категории

Перехватка доменов

Описание: Скрипт перехвата доменов с сервиса http://expire.ru-monitor.ru
Код:

<?php 
set_time_limit
(0); 
$links = array(); 
$content file_get_contents("http://expire.ru-monitor.ru/archive.html?sortby=google_pr&a=1"); 
if (!
$content) continue; 
if (
preg_match('@<b>Страницы:</b>.*?<a href="(.*?)</a>.*?</td></tr>@is'$content$matches)) { 
if (
preg_match_all('@<a href="?sortby=google_pr&page=(.*?)"@is'$matches***91;0***93;, $link)) { 
$maxpage=$link***91;1***93;***91;count($link***91;1***93;)-1***93;;


for (
$j=1$j<=$maxpage$j++) $links***91;***93;="http://expire.ru-monitor.ru/archive.html?sortby=google_pr&page=".$j
for (
$j=0$j<count($links); $j++){ 
$content file_get_contents($links***91;$j***93;); 
if (!
$content) continue; 
if (
preg_match_all('@<td class="table-domain" nowrap><a href="(.*?)".*?http://www.pageranktool.net/google_pr.php?url=.*?">(.*?)</a></td>@is'$content$matches)) { 
$rawdomain=$matches***91;1***93;; 
$domainpr=$matches***91;2***93;; 
$domainpr***91;$i***93;=trim($domainpr***91;$i***93;); 
for (
$i=0$i<count($rawdomain); $i++) { 
$rawdomain***91;$i***93;="http://expire.ru-monitor.ru/".preg_replace('@/(.*?)/@is'''$rawdomain***91;$i***93;); 
$content file_get_contents($rawdomain***91;$i***93;); 
if (!
$content) continue; 
if (
preg_match_all('@Домен является зеркалом?</a></td><td class="table-domain">.*?class="table-domain">(.*?)</a></td>@is'$content$matches)) { 
if (
$matches***91;1***93;***91;1***93;=="Нет"$domain***91;***93;=preg_replace('@http<img src="/style/smiles/1169.gif" alt="smile" />.*?)domain=@is'''$rawdomain***91;$i***93;).";".$domainpr***91;$i***93;; 
if (
$domainpr***91;$i***93;=="0") { $j=count($links); $i=count($rawdomain); } 




for (
$j=0$j<(count($domain)-1); $j++){ 
$param=explode(';'$domain***91;$j***93;); 
$host="www.******.ru"
$port="80"
$path="/whois/"
$data "domainName=".$param***91;0***93;."&Submit=%CF%F0%EE%E2%E5%F0%E8%F2%FC";
$packet="POST ".$path." HTTP/1.0rn"
$packet.="Host: ".$host."rn"
$packet.="Content-Length: ".strlen($data)."rn"
$packet.="Referer: <a href="https://dcms-social.ru/go.php?go=aHR0cDovL1wiLiRob3N0LiRwYXRoLlwicm5cIjs=">Ссылка</a> 
$packet.="Content-Type: application/x-www-form-urlencodedrn"
$packet.="Connection: keep-alivern"
$packet.="Cache-Control: no-cachernrn"
$packet.=$data."rnrn"
$ock=fsockopen(gethostbyname($host),$port); 
fputs($ock,$packet); 
$html=''
while (!
feof($ock)) 

$html.=fgets($ock); 

fclose($ock); 
if (
preg_match('@<font color="#FF0000" size="3"><strong>(.*?)</strong></font>@is'$html$domaincheck)) { 
if(
$domaincheck***91;1***93;==("Домен ".$param***91;0***93;." свободен!")) print_r("Домен - <b>".$param***91;0***93;."</b> - Google PR - <b>".$param***91;1***93;."</b> - Свободен!<br>");; 


?>


Добавил: (27 Мая 2014)

Скачать: TEXTAREA
DCMS-Social.ru - движок социальной сети, вап и веб мастерская, файло-обменник и форум.
Статистика DCMS-Social.ru: Пользователей - 14899, тем на форуме - 30287, сообщений - 298842