mirror of
https://github.com/JonasunderscoreJones/turbo-octo-potato.git
synced 2025-10-24 10:39:19 +02:00
added one more
This commit is contained in:
parent
2bf3bb85dc
commit
389ed3d258
1 changed files with 20 additions and 0 deletions
20
localhost-ddos.py
Normal file
20
localhost-ddos.py
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue