From 2a5ff1a0b518e7a785c7101292bea928bbc1af76 Mon Sep 17 00:00:00 2001 From: adfoster-r7 Date: Mon, 9 Oct 2023 11:38:57 +0100 Subject: [PATCH] Add remote webservice deletion notice --- msfdb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/msfdb b/msfdb index 8ea550d99a1e2..85412863ad18e 100755 --- a/msfdb +++ b/msfdb @@ -339,6 +339,10 @@ def reinit_db init_db end +def print_webservice_removal_prompt + $stderr.puts "#{'[WARNING]'.red} The remote web service is being removed. Does this impact you? React here: https://github.com/rapid7/metasploit-framework/issues/18439" +end + class WebServicePIDStatus RUNNING = 0 INACTIVE = 1 @@ -1075,6 +1079,9 @@ if $PROGRAM_NAME == __FILE__ end if @options[:component] == :all @components.each { |component| + if component == :webservice + 3.times { print_webservice_removal_prompt } + end puts '====================================================================' puts "Running the '#{command}' command for the #{component}:" invoke_command(commands, component.to_sym, command) @@ -1083,6 +1090,9 @@ if $PROGRAM_NAME == __FILE__ } else puts "Running the '#{command}' command for the #{@options[:component]}:" + if @options[:component] == :webservice + 3.times { print_webservice_removal_prompt } + end invoke_command(commands, @options[:component], command) end end