Skip to content
Snippets Groups Projects
Commit 79d88b42 authored by Pavel Valach's avatar Pavel Valach
Browse files

cowrie/wardenfiler: Fix spurious aggregated "Credentials" with values from the...

cowrie/wardenfiler: Fix spurious aggregated "Credentials" with values from the previous IP addresses
parent cccd60d7
No related branches found
No related tags found
1 merge request!10cowrie/wardenfiler: Store credentials for both successful and unsuccessful attempts
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
...@@ -233,6 +233,8 @@ class Output(cowrie.core.output.Output): ...@@ -233,6 +233,8 @@ class Output(cowrie.core.output.Output):
event["Target"][0]["Anonymised"] = True event["Target"][0]["Anonymised"] = True
if a_creds: if a_creds:
event["Credentials"] = a_creds event["Credentials"] = a_creds
else:
event.pop("Credentials", None)
self.save_event(event) self.save_event(event)
self.attackers = {} self.attackers = {}
self.attackers_creds = {} self.attackers_creds = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment