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
|
@cookie = nil
|
||||||
@crumb = nil
|
@crumb = nil
|
||||||
if res.code != 200
|
if res.code != 200
|
||||||
if datastore['API_TOKEN']
|
if !datastore['API_TOKEN'].empty?
|
||||||
print_status('Authenticating with token...')
|
print_status('Authenticating with token...')
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
|
|
Loading…
Reference in New Issue