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

cowrie/wardenfiler: Only send accepted credentials with the Intrusion.UserCompromise event

parent c4300b84
No related branches found
No related tags found
1 merge request!10cowrie/wardenfiler: Store credentials for both successful and unsuccessful attempts
......@@ -400,7 +400,8 @@ class Output(cowrie.core.output.Output):
attach["ContentEncoding"] = "base64"
event["Attach"] = [attach]
if self.sessions[s]["credentials"]:
event["Credentials"] = self.sessions[s]["credentials"]
accepted_creds = [ c for c in self.sessions[s]["credentials"] if "Accepted" in c ]
event["Credentials"] = list(accepted_creds)
self.save_event(event)
if s in self.sessions:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment