fix bug where api_token auth was being used without token being set

bug/bundler_fix
thesubtlety 2017-08-09 12:30:26 -04:00
parent 9bb102d72d
commit 7e860571ae
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class MetasploitModule < Msf::Exploit::Remote
@cookie = nil
@crumb = nil
if res.code != 200
if datastore['API_TOKEN']
if !datastore['API_TOKEN'].empty?
print_status('Authenticating with token...')
res = send_request_cgi({
'method' => 'GET',