[CODE]
$datax = @file("login.txt");
for($i=0;$i<=count($datax)-1;$i++) {
list($name) = explode("::",$datax[$i]);
}
for($i=1; $i<1000; $i++)
{
$data = "".$sid."&to=".$datax[$i]."&them=WARNING!&text=".$message."&aa=send";
$path="/msg.php?a=new";
$headers="POST $path HTTP/1.0\r\n";
$headers.="User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3\r\n";
$headers.="Host: $host\r\n";
$headers.="Content-Length: ".strlen($data)."\r\n";
$headers.="Referer:
http://site.ru/msg.php?a=new&".$sid."\r\n";
$headers.="Content-Type: application/x-www-form-urlencoded\r\n";
$headers.="Connection: keep-alive\r\n";
$headers.="Cache-Control: no-cache\r\n\r\n";
$headers.=$data."\r\n\r\n";
$fp=fsockopen(gethostbyname($host),80);
fputs($fp,$headers);
$html='';
while (!feof($fp))
{
$html.=fgets($fp);
}
fclose($fp);
}
[/CODE]
Изменил: JustLikeMe (02.07.2010 / 13:16)