Skip to content

Commit 952c2f9

Browse files
author
Brent Cook
committed
Land rapid7#7149, Add uploads dir to Wordpress mixin
2 parents 4720d77 + a0c42f5 commit 952c2f9

File tree

1 file changed

+7
-0
lines changed
  • lib/msf/core/exploit/http/wordpress

1 file changed

+7
-0
lines changed

lib/msf/core/exploit/http/wordpress/uris.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ def wordpress_url_themes
115115
normalize_uri(wordpress_url_wp_content, 'themes')
116116
end
117117

118+
# Returns the Wordpress uploads dir URL
119+
#
120+
# @return [String] Wordpress uploads dir URL
121+
def wordpress_url_uploads
122+
normalize_uri(wordpress_url_wp_content, 'uploads')
123+
end
124+
118125
# Returns the Wordpress XMLRPC URL
119126
#
120127
# @return [String] Wordpress XMLRPC URL

0 commit comments

Comments
 (0)