diff --git a/lib/wpscan/modules/wp_usernames.rb b/lib/wpscan/modules/wp_usernames.rb index c9f29cc5..ced4ff72 100644 --- a/lib/wpscan/modules/wp_usernames.rb +++ b/lib/wpscan/modules/wp_usernames.rb @@ -42,7 +42,8 @@ module WpUsernames # Get the real name from the redirect site nickname = get_nickname_from_url(url) elsif response.code == 200 # username in body? - username = response.body[%r{posts by (.*) feed}i, 1] + # get the username from the author feed URL + username = response.body[%r{/author/([^/\b]+)/?}i, 1] nickname = get_nickname_from_response(response) end