From d32297871a2258a42ecb795a760bdf797fe1c465 Mon Sep 17 00:00:00 2001 From: Matthew Kienow Date: Wed, 29 Aug 2018 14:26:26 -0400 Subject: [PATCH] Update data_services cmd to new db_connect cmd --- msfdb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/msfdb b/msfdb index 820df1b88e..6cd58aa85b 100755 --- a/msfdb +++ b/msfdb @@ -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')}"