<? set_time_limit(0); error_reporting(E_ERROR | E_PARSE); $mail='1@yandex.ru'; //<<<<<Сюда почту $pass='123'; //<<<<Сюда пароль $id='222'; //<<<<<Сюда id $cookie='remixmid='.$id.'; remixemail='.$mail.'; remixpass='.md5($pass).';remixlang=3'; for($i=0;$i<99999999999;$i) { $qwe=$i++; $link="http ://vkontakte.ru/matches.php?act=a_sent&to_id=".$qwe."&dec=1"; $res=connect($link, $cookie); //print $result; flush(); print $qwe."\n"; flush(); $ban=substr_count($res, "blank.php"); if ($ban==1){ $i=$qwe; print "####### Ban\n"; sleep(1); } } function connect($link, $cookie){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$link); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_GET, 1); curl_setopt($ch, CURLOPT_HEADER, 1); // Результат будет содержать заголовки curl_setopt($ch, CURLOPT_COOKIE, $cookie); $otvet = curl_exec($ch); curl_close($ch); return $otvet; } ?>