From b466db266187e648f2ba87b4c86f9de657442974 Mon Sep 17 00:00:00 2001 From: Pavel Valach <pavel.valach@cesnet.cz> Date: Mon, 25 Mar 2024 16:31:30 +0100 Subject: [PATCH] dionaea/log_wardenfiler.py: convert credentials from bytes to string for event output --- dionaea/log_wardenfiler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dionaea/log_wardenfiler.py b/dionaea/log_wardenfiler.py index 1237486..e85d4af 100644 --- a/dionaea/log_wardenfiler.py +++ b/dionaea/log_wardenfiler.py @@ -413,17 +413,17 @@ class LogWardenfilerHandler(ihandler): def handle_incident_dionaea_modules_python_ftp_login(self, icd): con = icd.con - self._register_connection(con, "ftp", cred = {"User": icd.username, "Password": icd.password}) + self._register_connection(con, "ftp", cred = {"User": self._bytes_to_str(icd.username), "Password": self._bytes_to_str(icd.password)}) logger.info("new FTP login within connection from %s:%i to %s:%i" % (con.remote.host, con.remote.port, con.local.host, con.local.port)) def handle_incident_dionaea_modules_python_mssql_login(self, icd): con = icd.con - self._register_connection(con, "ms-sql-s", cred = {"User": icd.username, "Password": icd.password}) + self._register_connection(con, "ms-sql-s", cred = {"User": self._bytes_to_str(icd.username), "Password": self._bytes_to_str(icd.password)}) logger.info("new MSSQL login within connection from %s:%i to %s:%i" % (con.remote.host, con.remote.port, con.local.host, con.local.port)) def handle_incident_dionaea_modules_python_mysql_login(self, icd): con = icd.con - self._register_connection(con, "mysql", cred = {"User": icd.username, "Password": icd.password}) + self._register_connection(con, "mysql", cred = {"User": self._bytes_to_str(icd.username), "Password": self._bytes_to_str(icd.password)}) logger.info("new MySQL login within connection from %s:%i to %s:%i" % (con.remote.host, con.remote.port, con.local.host, con.local.port)) def handle_incident_dionaea_modules_python_p0f(self, icd): -- GitLab