Skip to content

Commit

Permalink
Add remote webservice deletion notice
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Oct 31, 2023
1 parent 70ae201 commit edfa1e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions msfdb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1062,6 +1066,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)
Expand All @@ -1070,6 +1077,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

0 comments on commit edfa1e6

Please sign in to comment.