fix bug where api_token auth was being used without token being set
parent
9bb102d72d
commit
7e860571ae
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue