Update data_services cmd to new db_connect cmd

GSoC/Meterpreter_Web_Console
Matthew Kienow 2018-08-29 14:26:26 -04:00
parent f8bef79ba5
commit d32297871a
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 7 additions and 7 deletions

14
msfdb
View File

@ -641,13 +641,13 @@ end
def output_web_service_information
puts ''
puts 'MSF web service configuration complete'
puts 'Add the data service in msfconsole using the command:'
# build data services command based on install options
ds_cmd = "data_services --add --token #{@ws_api_token}"
ds_cmd << " --ssl --cert #{@options[:ssl_cert]}" if @options[:ssl]
ds_cmd << " --skip-verify" if skip_ssl_verify?
ds_cmd << " #{get_web_service_host}"
puts "#{ds_cmd}"
puts 'Connect to the data service in msfconsole using the command:'
# build db_connect command based on install options
connect_cmd = "db_connect --token #{@ws_api_token}"
connect_cmd << " --cert #{@options[:ssl_cert]}" if @options[:ssl]
connect_cmd << " --skip-verify" if skip_ssl_verify?
connect_cmd << " #{get_web_service_uri}"
puts "#{connect_cmd}"
puts ''
puts 'The username and password are credentials for the API account:'
puts "#{get_web_service_uri(path: '/api/v1/auth/account')}"