From 65c290fa396ca2699b6b734f760ce9c8b2924590 Mon Sep 17 00:00:00 2001 From: Matthew Kienow Date: Mon, 16 Jul 2018 16:44:44 -0400 Subject: [PATCH] Make API token optional on data_services cmd --- lib/msf/ui/console/command_dispatcher/db.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index 98471061d3..4694d4caf6 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -1995,11 +1995,6 @@ class Db return end - if opts[:api_token].nil? - print_error("API token is required") - return - end - opts[:https_opts] = https_opts unless https_opts.empty? endpoint = "#{protocol}://#{host}:#{port}" remote_data_service = Metasploit::Framework::DataService::RemoteHTTPDataService.new(endpoint, opts) @@ -2053,7 +2048,7 @@ class Db print_line " -a, --add [ options ] Add a new data service" print_line " Add Data Service Options:" print_line " -p The port the data service is listening on. Default is 8080." - print_line " -t, --token Required API Token for MSF web service" + print_line " -t, --token API Token for MSF web service" print_line " -s, --ssl Enable SSL. Required for HTTPS data services." print_line " -c, --cert Certificate file matching the server's certificate. Needed when using self-signed SSL cert." print_line " --skip-verify Skip validating authenticity of server's certificate. NOT RECOMMENDED."