From 21364ad9ee87dcdb20db6a0401e763e5897779c8 Mon Sep 17 00:00:00 2001 From: Nathan O'Brien Date: Mon, 11 Jun 2018 16:37:14 -0700 Subject: [PATCH] fixed a bug --- anapyzeranalyzer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/anapyzeranalyzer.py b/anapyzeranalyzer.py index e9f28d8..326074c 100644 --- a/anapyzeranalyzer.py +++ b/anapyzeranalyzer.py @@ -88,8 +88,7 @@ def malicious_activity_report(parsed_log): if counter >= 5 and malicious: report_output += "Malicious activity detected from " + ip + ":\n" for url in url_attempts: - if url != "/": - report_output += url + " was accessed more than five times within one second by " + ip + "\n" + report_output += " " + url + " was accessed more than five times within one second by " + ip + "\n" malicious = False report_output += "\n" current_index += 1;