diff --git a/modules/auxiliary/admin/http/wp_custom_contact_forms.rb b/modules/auxiliary/admin/http/wp_custom_contact_forms.rb index 9d9d96e74a..e6fdb0863c 100644 --- a/modules/auxiliary/admin/http/wp_custom_contact_forms.rb +++ b/modules/auxiliary/admin/http/wp_custom_contact_forms.rb @@ -55,7 +55,7 @@ class Metasploit3 < Msf::Auxiliary return nil if res_file.nil? || res_file.code != 200 || res_file.body.nil? match = res_file.body.match(/insert into `(.+_)customcontactforms_fields`/i) - return nil if match.nil? || match.length == 0 + return nil if match.nil? || match.length < 2 table_prefix = match[1] table_prefix