diff --git a/modules/exploits/multi/http/jenkins_script_console.rb b/modules/exploits/multi/http/jenkins_script_console.rb index 16c7290288..2143eeb556 100644 --- a/modules/exploits/multi/http/jenkins_script_console.rb +++ b/modules/exploits/multi/http/jenkins_script_console.rb @@ -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',