INNER CODE UNIT · Python
conn_timer
paulveillard/cybersecurity · cyber-security-scripts/Simple_Anti_DDoS.py:25
def conn_timer():
time.sleep(1)
global conn_persec
conn_persec = 0
conn_msg = True
while True:
try:
print("")
max_conn = int(input("[+] What is the max connections that can connect to the server?: "))
break
except:
print("[+] Invalid Input.")
print("[+] Server is up and running!")
time.sleep(1)
print("")
print("[+] Server is now accepting connections.")
def listen():
while True: