Use correct variable name for api_token

GSoC/Meterpreter_Web_Console
James Barnett 2018-08-28 10:49:50 -05:00
parent 5b7127c826
commit 3c1086741b
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 1 additions and 1 deletions

View File

@ -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