ddos-mlp-mitigation

git clone git://git.codymlewis.com/ddos-mlp-mitigation.git
Log | Files | Refs | Submodules | README | LICENSE

commit d947857c4bf8db8c0f3f01f09077648091df9806
parent 5e720cc17ef7eeadb929a8e934c786630ac6e7d4
Author: Cody Lewis <cody@codymlewis.com>
Date:   Mon,  8 Jun 2020 11:06:57 +1000

Use my own implementation of DoS attack

Diffstat:
A.gitmodules | 3+++
MREADME.md | 2++
Mbot | 2+-
Mcreate_network | 1-
Ados-attacks | 1+
Asetup.sh | 5+++++
6 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dos-attacks"] + path = dos-attacks + url = https://github.com/codymlewis/dos-attacks diff --git a/README.md b/README.md @@ -5,6 +5,8 @@ mitigation of DDoS attacks ## Requirements - python3 - pip +- rust +- cargo ## Installation ``` diff --git a/bot b/bot @@ -25,4 +25,4 @@ if __name__ == '__main__': TARGET = s.recv(1024).decode() print(f"Order received, attacking {TARGET}") for _ in range(10): - os.system(f"ping -f {TARGET} &") + os.system(f"./dos-attacks/target/release/dos-attacks ping-flood {TARGET} &") diff --git a/create_network b/create_network @@ -114,7 +114,6 @@ def run_network(num_bots): time.sleep(1) info("*** User browsing web service\n") net['u0'].cmdPrint(f"netsurf http://{net['t0'].IP()}:5000/ &") - time.sleep(1) if "--cli" in sys.argv: CLI(net) net.stop() diff --git a/dos-attacks b/dos-attacks @@ -0,0 +1 @@ +Subproject commit 102bf52801940a29803b8b52d13aa67f8482031a diff --git a/setup.sh b/setup.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +git submodule update --init --recursive && + cd dos-attacks && + cargo build --release