From 2bb2bbc5bd399cf81541fcccf4ead1353b29697c Mon Sep 17 00:00:00 2001 From: Valentin Lobstein <88535377+Chocapikk@users.noreply.github.com> Date: Sat, 19 Jul 2025 04:07:22 +0200 Subject: [PATCH] Update wp_depicter_sqli_cve_2025_2011.rb --- .../auxiliary/gather/wp_depicter_sqli_cve_2025_2011.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/auxiliary/gather/wp_depicter_sqli_cve_2025_2011.rb b/modules/auxiliary/gather/wp_depicter_sqli_cve_2025_2011.rb index 9930eecf02..0f5b8b1fa2 100644 --- a/modules/auxiliary/gather/wp_depicter_sqli_cve_2025_2011.rb +++ b/modules/auxiliary/gather/wp_depicter_sqli_cve_2025_2011.rb @@ -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