
28.09.2009, 16:29
|
|
Постоянный
Регистрация: 15.06.2007
Сообщений: 527
С нами:
9950786
Репутация:
214
|
|
UPDATE добавлялки приложений.
$apps_invite = сюда вбиваем приложение с вашим ид
Н-р app1511429_123456
создаем файл accs.txt со списком мыло:пароль
и запускаем скрипт.
приложение добавляется и ставиться разрешение на все.
P.S. акки должны быть валид )
PHP код:
<?php
###############
#apps_adder by svesve ver.2
#icq 8000909
#special for anti4at =)
#P.S. говнокод
###############
set_time_limit(0);
error_reporting(1);
$apps_invite = "app1511429_1234456";
function 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 add_app($email,$pass,$apps_invite){
$result = curl("http://vkontakte.ru/login.php","email=$email&pass=$pass");
$result = curl("http://vkontakte.ru/$apps_invite","");
preg_match("/viewer_id\: \"(.*?)\"/i", $result, $user_id);
preg_match("/app_id = (.*?);/i", $result, $app_id);
preg_match("/app_hash = '(.*?)';/i", $result, $app_hash);
flush();
@ob_flush();
$result = curl("http://vkontakte.ru/apps.php?act=join","id=".$app_id['1']."&hash=".$app_hash['1']."&cn=1&caf=1&caph=1&caa=1&add=0&withdraw=0");
$result = curl("http://vkontakte.ru/apps.php?act=a_settings","app_id=".$app_id['1']."&app_hash=".$app_hash['1']."&cn=1&caf=1&caph=1&caa=1&add=0&withdraw=0");
$result = curl("http://vkontakte.ru/".$app_id['1']."_".$user_id);
echo "#Добавлено<br>";
flush();
@ob_flush();
return $result;
}
echo "<style>body{background-color:#2B2F34;color:#C1C1C7;}input{color:#cccccc;border:1px solid #404040;background-color:#221;}red{color:#FF0000}</style> ";
$is_aks = is_file ("accs.txt");
if($is_aks != 1){
die('Нету файла с аккаунтами! Создайте файл accs.txt с аккаунтами в виде email@mail.com:password');
}
$aks = file("accs.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 = add_app($ak['0'],$ak['1'],$apps_invite);
echo "------------------------------------------<br>";
flush();
@ob_flush();
}
?>
Последний раз редактировалось svesve; 28.09.2009 в 16:33..
|
|
|