Я-Вконтакте.at.ua » Для Вконтакте.ру » Скрипты для ВК |
Автоматическое вступление в группы
Code <? set_time_limit(0); error_reporting(E_ERROR | E_PARSE); $mail='ящик@мэил.ru'; //эмеил $pass='пароль'; //пароль $id='22671298'; //id $cookie='remixmid='.$id.'; remixemail='.$mail.'; remixpass='.md5($pass).';remixlang=3'; 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; } for($i=0;$i<99999999999;$i) { $qwe=$i++; $link = "http://vkontakte.ru/groups.php?act=ajax&n=1&gid=".$qwe; $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); } } ?> | |