diff --git a/lib/wpscan/wp_target/wp_custom_directories.rb b/lib/wpscan/wp_target/wp_custom_directories.rb index c724abd2..1e60791a 100644 --- a/lib/wpscan/wp_target/wp_custom_directories.rb +++ b/lib/wpscan/wp_target/wp_custom_directories.rb @@ -23,7 +23,7 @@ class WpTarget < WebSite # @return [ Boolean ] def default_wp_content_dir_exists? response = Browser.get(@uri.merge('wp-content').to_s) - hash = WebSite.page_hash(response.body) + hash = Digest::MD5.hexdigest(response.body) if WpTarget.valid_response_codes.include?(response.code) return true if hash != error_404_hash and hash != homepage_hash