diff --git a/nxc/modules/mssql_coerce.py b/nxc/modules/mssql_coerce.py index 634b7e502..a4dca25a2 100644 --- a/nxc/modules/mssql_coerce.py +++ b/nxc/modules/mssql_coerce.py @@ -75,5 +75,5 @@ def on_login(self, context, connection): result = self.mssql_conn.sql_query(command) self.context.log.debug(f"Executing command: {command}, Command result: {result}") except Exception as e: - self.context.log.error(f"Failed to execute command: {command}, Error: {e}") + self.context.log.fail(f"Failed to execute command: {command}, Error: {e}") self.context.log.display("Commands executed successfully, check the listener for results")