From 3c1086741b1a397b54380731502b8149f2f28efb Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 28 Aug 2018 10:49:50 -0500 Subject: [PATCH] Use correct variable name for api_token --- lib/msf/ui/console/command_dispatcher/db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index 1a9c42c340..3c42d2db42 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -1913,7 +1913,7 @@ class Db config_opts['skip_verify'] = true if database.https_opts[:skip_verify] end if database.api_token - config_opts['token'] = database.api_token + config_opts['api_token'] = database.api_token end Msf::Config.save(config_path => config_opts) rescue => e