You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnExploit::CheckCode::Vulnerable('The server has introspection enabled.')
281
+
returnExploit::CheckCode::Vulnerable('The server has introspection enabled.')
282
+
else
283
+
returnExploit::CheckCode::Safe('The server responded with a 200 status code, but the response did not have the expected structure of an introspection response.')
print_error("#{rhost}:#{rport} - Server responded with a 200 status code, but the response did not have the expected structure of an introspection response")
print_error("#{rhost}:#{rport} - Server encountered the following error(s) (code: '#{res.code}'):\n#{process_errors(parsed_body['errors'] || Array.wrap(parsed_body['error']))}")
331
+
json=res.get_json_document
332
+
ifjson.nil?
333
+
print_error("#{rhost}:#{rport} - Server replied with an unexpected status code: '#{res.code}', and the response was not a valid JSON document.")
334
+
return
335
+
end
336
+
337
+
ifjson.key?('errors') || json.key?('error')
338
+
print_error("#{rhost}:#{rport} - Server encountered the following error(s) (code: '#{res.code}'):\n#{process_errors(json['errors'] || Array.wrap(json['error']))}")
307
339
else
308
340
print_error("#{rhost}:#{rport} - Server replied with an unexpected status code: '#{res.code}'")
0 commit comments