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;