спамер чатега, кто поможет , поделюсь скриптом)
<?php
/*
$log= file_get_contents('login.pass.txt');
$log_upl = preg_match_all('/::(.+?)\n/', $log, $log_raz);
foreach($log_raz[1] as $login){
$login;
}
*/
$login = 'soscki';
$pass= 'qweqweqwe';
$subject = 'Ну да';
$mess_new= array('текст1:)',
'текст2');
$one_proxy = "65.126.16.67:8089";
$content = file_get_contents('proxy.txt');
$base = explode("\n",$content);
$count = count($base);
$Key = rand(0, $count - 1);
$RandIP = $base[$Key];
include 'browser.php';
$count_online = file_get_contents('http://club.chateg.ru/reg.php');
$count_res = preg_match_all('/On-line <strong>(.+?)<\/strong>/', $count_online, $match);
foreach($match[1] as $on)
echo 'Онлайн: '.$on; ##
$pages = intval($on/10); ##
echo ' Страницы: '.$pages.'<br/>';
### Авторизация
$random_agent = chooseBrowser(); ###
set_time_limit(0); #Н
$url = "http://club.chateg.ru/index.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_REFERER, "http://club.chateg.ru/reg.php"); ##ref
curl_setopt($ch, CURLOPT_PROXY, $RandIP); ###рандомный прокси
#curl_setopt($ch, CURLOPT_PROXY, $one_proxy); ###НЕрандомный прокси
$robot = rand(30,31); ###Совсем как человек
curl_setopt($ch, CURLOPT_HEADER, 0); // пустые заголовки
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, $robot); // times out after 4s
curl_setopt($ch, CURLOPT_USERAGENT, $random_agent);
curl_setopt($ch, CURLOPT_COOKIESESSION, 'cook.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cook.txt');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "login=".$login."&pass=".$pass."&action=login"); // add POST fields
for($i=1;$i<$pages;$i++){
$result = curl_exec($ch);
if(!preg_match('/Добавить аватар/', $result)){
echo 'Что-то пошло не так...Авторизация провалена!Походу нас забанили :(';
exit;
}
$url2 = "http://club.chateg.ru/online/?p=".$i;
curl_setopt($ch, CURLOPT_URL,$url2); // set url to post to
$online = curl_exec($ch); #Получаем онлайн
sleep(20);
$send_check = preg_match_all('/uid=(.+?)">/', $online, $matches);
$matches[1] = array_unique($matches[1]);
foreach($matches[1] as $send){
#echo $send.'<br/>';
sleep(20);
$url3 = "http://club.chateg.ru/writeMail/?uid=".$send;
curl_setopt($ch, CURLOPT_URL,$url3); // set url to post to
$sending = curl_exec($ch);
$lol = preg_match_all('/name="to" value=(.+?)\/>/',$sending, $raz);
$raz[1] = str_replace('"','',$raz[1]); ######Ник
for($z=0;$z<1;$z++)
{
shuffle($mess_new);
$title = $mess_new[0];
$url3 = "http://club.chateg.ru/writeMail/";
curl_setopt($ch, CURLOPT_URL,$url3);
$fps = fopen('reestr/nick.txt','a+');
$nick_add = $raz[1][$i]."\n";
$test_fps = fwrite($fps, $nick_add);
curl_setopt($ch, CURLOPT_POSTFIELDS, "to=".$raz[1][$i]."&subject=".$subject."&title=".$title."&action=1&doMail=ОК"); // add POST fields
$yes_send = curl_exec($ch);
echo 'Отправлено: '.$raz[1][$i].'<br/>';
}
}
}
?>
<?php
/*
$log= file_get_contents('login.pass.txt');
$log_upl = preg_match_all('/::(.+?)\n/', $log, $log_raz);
foreach($log_raz[1] as $login){
$login;
}
*/
$login = 'soscki';
$pass= 'qweqweqwe';
$subject = 'Ну да';
$mess_new= array('текст1:)',
'текст2');
$one_proxy = "65.126.16.67:8089";
$content = file_get_contents('proxy.txt');
$base = explode("\n",$content);
$count = count($base);
$Key = rand(0, $count - 1);
$RandIP = $base[$Key];
include 'browser.php';
$count_online = file_get_contents('http://club.chateg.ru/reg.php');
$count_res = preg_match_all('/On-line <strong>(.+?)<\/strong>/', $count_online, $match);
foreach($match[1] as $on)
echo 'Онлайн: '.$on; ##
$pages = intval($on/10); ##
echo ' Страницы: '.$pages.'<br/>';
### Авторизация
$random_agent = chooseBrowser(); ###
set_time_limit(0); #Н
$url = "http://club.chateg.ru/index.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_REFERER, "http://club.chateg.ru/reg.php"); ##ref
curl_setopt($ch, CURLOPT_PROXY, $RandIP); ###рандомный прокси
#curl_setopt($ch, CURLOPT_PROXY, $one_proxy); ###НЕрандомный прокси
$robot = rand(30,31); ###Совсем как человек
curl_setopt($ch, CURLOPT_HEADER, 0); // пустые заголовки
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, $robot); // times out after 4s
curl_setopt($ch, CURLOPT_USERAGENT, $random_agent);
curl_setopt($ch, CURLOPT_COOKIESESSION, 'cook.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cook.txt');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "login=".$login."&pass=".$pass."&action=login"); // add POST fields
for($i=1;$i<$pages;$i++){
$result = curl_exec($ch);
if(!preg_match('/Добавить аватар/', $result)){
echo 'Что-то пошло не так...Авторизация провалена!Походу нас забанили :(';
exit;
}
$url2 = "http://club.chateg.ru/online/?p=".$i;
curl_setopt($ch, CURLOPT_URL,$url2); // set url to post to
$online = curl_exec($ch); #Получаем онлайн
sleep(20);
$send_check = preg_match_all('/uid=(.+?)">/', $online, $matches);
$matches[1] = array_unique($matches[1]);
foreach($matches[1] as $send){
#echo $send.'<br/>';
sleep(20);
$url3 = "http://club.chateg.ru/writeMail/?uid=".$send;
curl_setopt($ch, CURLOPT_URL,$url3); // set url to post to
$sending = curl_exec($ch);
$lol = preg_match_all('/name="to" value=(.+?)\/>/',$sending, $raz);
$raz[1] = str_replace('"','',$raz[1]); ######Ник
for($z=0;$z<1;$z++)
{
shuffle($mess_new);
$title = $mess_new[0];
$url3 = "http://club.chateg.ru/writeMail/";
curl_setopt($ch, CURLOPT_URL,$url3);
$fps = fopen('reestr/nick.txt','a+');
$nick_add = $raz[1][$i]."\n";
$test_fps = fwrite($fps, $nick_add);
curl_setopt($ch, CURLOPT_POSTFIELDS, "to=".$raz[1][$i]."&subject=".$subject."&title=".$title."&action=1&doMail=ОК"); // add POST fields
$yes_send = curl_exec($ch);
echo 'Отправлено: '.$raz[1][$i].'<br/>';
}
}
}
?>