diff --git a/modules/auxiliary/gather/joomla_weblinks_sqli.rb b/modules/auxiliary/gather/joomla_weblinks_sqli.rb index f5bd1c8f99..4c1f4973d9 100644 --- a/modules/auxiliary/gather/joomla_weblinks_sqli.rb +++ b/modules/auxiliary/gather/joomla_weblinks_sqli.rb @@ -62,6 +62,10 @@ class Metasploit3 < Msf::Auxiliary return Exploit::CheckCode::Safe end + if resp.body =~ /404<\/span> Category not found/ + return Exploit::CheckCode::Unknown + end + version = /#{front_marker}(.*)#{back_marker}/.match(resp.body) if !version @@ -95,6 +99,10 @@ class Metasploit3 < Msf::Auxiliary fail_with("Server did not respond in an expected way. Verify the IP address.") end + if resp.body =~ /404<\/span> Category not found/ + fail_with("The category ID was invalid. Please try again with a valid category ID") + end + file = /#{front_marker}(.*)#{back_marker}/.match(resp.body) if !file