From 299a0ac8daa0768f5c31e32e7626bd8040681aa1 Mon Sep 17 00:00:00 2001 From: sjanusz-r7 Date: Thu, 21 Sep 2023 10:55:30 +0100 Subject: [PATCH] Fix protected method call & init_ui --- lib/msf/base/sessions/postgresql.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/msf/base/sessions/postgresql.rb b/lib/msf/base/sessions/postgresql.rb index 98ea8a38e14d..fd8aa1e97e8b 100644 --- a/lib/msf/base/sessions/postgresql.rb +++ b/lib/msf/base/sessions/postgresql.rb @@ -62,20 +62,16 @@ def desc 'PostgreSQL' end - protected - ## # :category: Msf::Session::Interactive implementors # # Initializes the console's I/O handles. # def init_ui(input, output) - self.user_input = input - self.user_output = output - self.console.init_ui(self.user_input, self.user_output) - self.console.set_log_source(self.log_source) + super(input, output) - super + self.console.init_ui(input, output) + self.console.set_log_source(self.log_source) end ## @@ -88,6 +84,8 @@ def reset_ui self.console.reset_ui end + protected + ## # :category: Msf::Session::Interactive implementors #