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 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -253,7 +253,7 @@ class Output(cowrie.core.output.Output):
if s in self.sessions:
self.sessions[s]["input"] = []
self.sessions[s]["loggedin"] = True
self.sessions[s]["credentials"].append({"Username": u, "Password": p, "Accepted": True})
self.sessions[s]["credentials"].append({"Username": u, "Password": p, "Type": ["AcceptedByServer"]})
elif entry["eventid"] == "cowrie.login.failed":
u, p = entry["username"], entry["password"]
Loading