Land #18440, Add remote webservice deletion notice

This commit is contained in:
cgranleese-r7 2023-11-10 10:24:34 +00:00 committed by GitHub
commit 6659684fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

10
msfdb
View File

@ -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
@ -1051,6 +1055,9 @@ if $PROGRAM_NAME == __FILE__
prompt_for_deletion(command)
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)
@ -1059,6 +1066,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