Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions anapyzeranalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down