Главная » 2011 » Октябрь » 11 » скрипты в контакте
14:07
скрипты в контакте

Чистим альбом группы от спама картинками



set_time_limit(0); 
error_reporting(E_ERROR | E_PARSE); 

function go($link){ 

$mail=' admin@xakep.ru'; 
$pass='pass'; 
$id='22671298'; 

$cookie='remixmid='.$id.'; remixemail='.$mail.'; remixpass='.md5($pass).'; remixlang=3; remixchk=5; remixap=1; '.$cookie_hash; 
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL,$link); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
curl_setopt($ch, CURLOPT_TIMEOUT, 0); 
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; 
}



$album_id='album-6968868_91639127'; //так выглядит айди альбома 
$how_foto=17; //количество наших фоток. Обязательно установите этот параметр, иначе удалит ваши фотки вместе со спамом) 

$otvet=go('http://vkontakte.ru/'.$album_id); 

$begin = '"summary">'; 
$begin = strpos($otvet, $begin) + strlen($begin); 
$end = ' '; 
$end = strpos($otvet, $end, $begin); 
$all_foto = substr($otvet, $begin, $end - $begin); 

print "\nall foto==".$all_foto."\n\n"; 

$begin = '$begin = strpos($otvet, $begin) + strlen($begin); 
$end = '"'; 
$end = strpos($otvet, $end, $begin); 
$foto_id = substr($otvet, $begin, $end - $begin); 

$otvet=go('http://vkontakte.ru/photo'.$foto_id); 
$count=substr_count($otvet,'["-'); 

$end=0; 
for($i=0;$i<$count;$i++){ 

$otvet=substr($otvet,$end); 

$begin = '["-'; 
$begin = strpos($otvet, $begin) + strlen($begin); 
$end = '"'; 
$end = strpos($otvet, $end, $begin); 
$foto_id = substr($otvet, $begin, $end - $begin); 

if ($i<=$how_foto){ //количество наших фоток 
print 'no spam'; 
}else{ 
$res=go('http://vkontakte.ru/photos.php?id=-'.$foto_id.'&act=do_fdelete'); 


print $i."\n"; 


print "\n\n----------\n(c) Le][\n"; 

?>


 

Как удалить всех друзей

даление всех тем (обсуждения) в группе


set_time_limit(0);
error_reporting(E_ERROR | E_PARSE);



$mail='ящик@мэил.ru'; //эмеил
$pass='пароль'; //пароль
$id='22671298'; //id ]

$group_id='7857703'; //айди группы




$cookie='remixmid='.$id.';

remixemail='.$mail.'; remixpass='.md5($pass).'; remixlang=3; remixchk=5; '.$cookie_hash;

function connect($link, $cookie){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
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;
}



//////////получаем список тем
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
$res=connect($link, $cookie);
//////////
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем

while($c!==0){

for($i=0;$i=1){
$i=$qwe;
print "####### Ban\n";
sleep(3);
}

}
//////////получаем список групп
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
$res=connect($link, $cookie);
//////////
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем
}

print "\n(c) Le][ 2009\n";

?>

 

Запускаем PHP - скрипт


 Многие не знаю как запустить пхп-скрипт, поэтому эта статья для таких людей.

php - скрипт

Для того что б запустить скрипт необходим вебсервер и установленный пакет php определенной версии. Те у кого есть возможность доступа до какого нибудь хостинга просто сохраняют в файл с расширением *.php и заливаем в корень сайта. Открываем свой браузер и вызываем ваш скрипт через адресную строку, достаточно набрать http://www.(назнание сайта)/(название скрипта).

Те кто неимеют хостинга устанавливают и настраивают себе  веб-сервер Apache илиDenwer. Далее заливаете ваш скрипт в корень вашего сайта( создайте просто папку под сайт) ну а дальше думаю ясно, из браузера вызываете ваш script.

Скачать Apache руский бесплатно 
Скачать Denwer 3.0 бесплатно

Удаление всех тем (обсуждения) в группе


set_time_limit(0);
error_reporting(E_ERROR | E_PARSE);



$mail='ящик@мэил.ru'; //эмеил
$pass='пароль'; //пароль
$id='22671298'; //id ]

$group_id='7857703'; //айди группы




$cookie='remixmid='.$id.';

remixemail='.$mail.'; remixpass='.md5($pass).'; remixlang=3; remixchk=5; '.$cookie_hash;

function connect($link, $cookie){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
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;
}



//////////получаем список тем
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
$res=connect($link, $cookie);
//////////
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем

while($c!==0){

for($i=0;$i=1){
$i=$qwe;
print "####### Ban\n";
sleep(3);
}

}
//////////получаем список групп
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
$res=connect($link, $cookie);
//////////
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем
}

print "\n(c) Le][ 2009\n";

?>

 



set_time_limit(0); 
error_reporting(E_ERROR | E_PARSE); 

$mail=' admin@xakep.ru'; 
$pass='pass'; 
$id='22671298'; 

$cookie='remixmid='.$id.'; remixemail='.$mail.'; remixpass='.md5($pass).'; remixlang=3; remixchk=5; remixap=1;'; 

function go($link,$cookie){ 

$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL,$link); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
curl_setopt($ch, CURLOPT_TIMEOUT, 0); 
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; 


$otvet=go('login.userapi.com/auth?site=2&login=force&email='.$mail.'&pass='.$pass,null); 

$begin = 'sid='; 
$begin = strpos($otvet, $begin) + strlen($begin); 
$end = "\r"; 
$end = strpos($otvet, $end, $begin); 
$sid= substr($otvet, $begin, $end - $begin); 
print $sid; 

$otvet=go('http://vkontakte.ru/friendJS.php',$cookie); 

//print $otvet; 

$count=substr_count($otvet,'/u'); 

print "\nall friend---".$count."\n\n"; 

for($i=0;$i<$count;$i++){ 

$otvet=substr($otvet,$end); 

$begin = '/u'; 
$begin = strpos($otvet, $begin) + strlen($begin); 
$end = '/'; 
$end = strpos($otvet, $end, $begin); 
$id = substr($otvet, $begin, $end - $begin); 

$res=go('http://userapi.com/data?act=del_friend&id='.$id.'&sid='.$sid,null); 

print $i."<br>\n"; 


print "\n\n----------\n(c) Le][\n"; 

?>

 


Просмотров: 616 | Добавил: muradkurshumov | Рейтинг: 0.0/0
Всего комментариев: 0
Движок: uCoz
Адаптация by © AID