Skip to content
Snippets Groups Projects

cowrie/wardenfiler: Store credentials for both successful and unsuccessful attempts

Open Pavel Valach requested to merge cowrie-credentials into master
+ 1
1
@@ -403,7 +403,7 @@ class Output(cowrie.core.output.Output):
attach["ContentEncoding"] = "base64"
event["Attach"] = [attach]
if self.sessions[s]["credentials"]:
accepted_creds = [ c for c in self.sessions[s]["credentials"] if "Accepted" in c ]
accepted_creds = [ c for c in self.sessions[s]["credentials"] if "Type" in c and "AcceptedByServer" in c["Type"] ]
event["Credentials"] = list(accepted_creds)
self.save_event(event)
Loading