Update wp_depicter_sqli_cve_2025_2011.rb

This commit is contained in:
Valentin Lobstein
2025-07-19 04:07:22 +02:00
committed by GitHub
parent ac62c42be8
commit 2bb2bbc5bd
@@ -73,12 +73,8 @@ class MetasploitModule < Msf::Auxiliary
)
next GET_SQLI_OBJECT_FAILED_ERROR_MSG unless res&.code == 200
doc = begin
res.get_json_document
rescue StandardError
nil
end
doc = res.get_json_document
value = if doc.respond_to?(:dig)
doc.dig('hits', 0, 'content', 'id')
else