From 7a2762f4a7b36bcc31ffe1575a655ab60dac5e38 Mon Sep 17 00:00:00 2001 From: FireFart Date: Tue, 24 Sep 2013 20:20:06 +0200 Subject: [PATCH] more regexes --- lib/msf/http/wordpress/users.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/msf/http/wordpress/users.rb b/lib/msf/http/wordpress/users.rb index 282c35544a..f00a0237da 100644 --- a/lib/msf/http/wordpress/users.rb +++ b/lib/msf/http/wordpress/users.rb @@ -48,8 +48,13 @@ module Msf::HTTP::Wordpress::Users print_error("#{peer} - Error getting response.") return nil elsif res.code == 200 and - (res.body =~ /href="http[s]*:\/\/.*\/\?*author.+title="([[:print:]]+)" /i or - res.body =~ /([^<]+)<\/a><\/span>/i or + res.body =~ /.*(\b\w+\b)<\/title>/i + ) return $1 end end