import time
# Simulating a Raspberry Pi handling network requests
request_count = 0
max_requests = 100 # Set a threshold to simulate overload
while True:
request_count += 1
print(f"Received Request #{request_count}")
if request_count > max_requests:
print("🚨 System Overloaded! Simulating DDoS Effect 🚨")
break # Simulate server crash
time.sleep(0.1) # Small delay to mimic processing