From 389ed3d25893c2300e7b6cf1d886c07b60d7bf57 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Wed, 6 Sep 2023 15:12:15 +0200 Subject: [PATCH] added one more --- localhost-ddos.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 localhost-ddos.py diff --git a/localhost-ddos.py b/localhost-ddos.py new file mode 100644 index 0000000..039b1bc --- /dev/null +++ b/localhost-ddos.py @@ -0,0 +1,20 @@ +import threading, requests + +# Define a function that prints "uwu" repeatedly +def uwu_printer(): + while True: + requests.get("http://127.0.0.1:8080/api/v1") + +# Define the number of threads to create +num_threads = 300 # You can adjust this number + +# Create and start the threads +threads = [] +for _ in range(num_threads): + thread = threading.Thread(target=uwu_printer) + threads.append(thread) + thread.start() + +# Wait for all threads to finish (you can interrupt this manually) +for thread in threads: + thread.join()