From 1c9605940c620c8756322504cb207ac8e1bb9b78 Mon Sep 17 00:00:00 2001 From: "n.diaz" Date: Mon, 25 Nov 2024 20:01:02 +0100 Subject: [PATCH] can we report --- waf3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf3.py b/waf3.py index c71fead..59033b3 100644 --- a/waf3.py +++ b/waf3.py @@ -67,11 +67,11 @@ def report_attacks(): ) hosts = {} for a in Attack.select(): - # print(a.host) if a.host in hosts: hosts[a.host] = hosts[a.host] + 1 else: hosts[a.host] = 1 + print(a.host) sorted_hosts = dict(sorted(hosts.items(), key=lambda x:x[1]))