From c51c19ca88719ddfbc7b7192ccdeb932a8617fc9 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sat, 27 Sep 2014 14:56:34 +0200 Subject: [PATCH] bugfix --- modules/auxiliary/admin/http/wp_custom_contact_forms.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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